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

Refactor SqlSelects and Filters into SqlAggregators #3241

Merged
merged 3 commits into from
Dec 14, 2023

Conversation

jnsrnhld
Copy link
Collaborator

@jnsrnhld jnsrnhld commented Dec 7, 2023

Im Prinzip auch ein No-Op PR. Die Gemeinsamkeiten zwischen Select/Filter-Conversion werden jetzt über den gemeinsamen SqlAggregator abgebildet.

@jnsrnhld jnsrnhld requested a review from awildturtok December 7, 2023 15:50
Field<String> likePattern = DSL.inline(prefix + "%");
String sqlTemplate = "'[' || STRING_AGG(CASE WHEN {0} LIKE {1} THEN {0} ELSE NULL END, ', ') || ']'";
return DSL.field(DSL.sql(sqlTemplate, field, likePattern));
return DSL.field(DSL.sql(sqlTemplate, field, likePattern), String.class);
Copy link
Collaborator

Choose a reason for hiding this comment

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

War das dann nicht sogar ein potentieller bug?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ja, ich kann mich auch nicht erinnern warum es nicht von Anfang an so war 😄

@jnsrnhld jnsrnhld enabled auto-merge (squash) December 14, 2023 14:10
@jnsrnhld jnsrnhld merged commit f221725 into develop Dec 14, 2023
6 checks passed
@delete-merged-branch delete-merged-branch bot deleted the sql/refactoring/sql-aggregators branch December 14, 2023 14:21
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