Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add COUNT_QUARTERS SQL conversion for DATE columns #3263

Merged
merged 10 commits into from
Jan 23, 2024

Conversation

jnsrnhld
Copy link
Collaborator

@jnsrnhld jnsrnhld commented Jan 5, 2024

Wie erwähnt: Die Conversion von COUNT_QUARTERS auf DATE_RANGE Columns für HANA wird aufwändig, daher erstmal nur für einfache DATE columns.

@jnsrnhld jnsrnhld force-pushed the sql/feature/count-quarters branch from d21f73c to af01524 Compare January 5, 2024 13:38
/**
* @return The numerical year and quarter of the given date column as "yyyy-Qx" string expression with x being the quarter.
*/
Field<String> quartersPerYear(Field<Date> dateField);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

der name ist recht ungeschickt gewählt, ich hab das einfach YearQuarter genannt. quartersInYear ist ein anderer Select, der die Quartale in einem Jahr zählt.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jnsrnhld der PR ist noch offen, kannst du das bitte fixen, dann kann auch gemerged werden.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, ich dachte ich hätte das längst gemacht - hab es jetzt nachgeholt!

Base automatically changed from sql/feature/complete-sum-conversion to develop January 9, 2024 11:58
@jnsrnhld jnsrnhld requested a review from awildturtok January 11, 2024 13:01
@jnsrnhld jnsrnhld merged commit 2be24f0 into develop Jan 23, 2024
6 checks passed
@jnsrnhld jnsrnhld deleted the sql/feature/count-quarters branch January 23, 2024 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants