-
Notifications
You must be signed in to change notification settings - Fork 12
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
Conversation
d21f73c
to
af01524
Compare
...nd/src/main/java/com/bakdata/conquery/sql/conversion/dialect/PostgreSqlFunctionProvider.java
Outdated
Show resolved
Hide resolved
/** | ||
* @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); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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!
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.