-
Notifications
You must be signed in to change notification settings - Fork 14
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
fix: groupby path expression with overlapping identifier #992
Merged
johannes-vogel
merged 8 commits into
main
from
fix-groupby-navigation-duplicate-identifier
Jan 27, 2025
Merged
fix: groupby path expression with overlapping identifier #992
johannes-vogel
merged 8 commits into
main
from
fix-groupby-navigation-duplicate-identifier
Jan 27, 2025
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PDT42
requested review from
danjoa,
johannes-vogel,
stewsk,
patricebender,
sjvans and
David-Kunz
as code owners
January 23, 2025 14:44
BobdenOs
reviewed
Jan 24, 2025
BobdenOs
reviewed
Jan 24, 2025
PDT42
changed the title
fix: groupby nav property with overlapping identifier results in unknown column name
fix: groupby navigation property with overlapping identifier
Jan 24, 2025
PDT42
changed the title
fix: groupby navigation property with overlapping identifier
fix: groupby path expression with overlapping identifier
Jan 24, 2025
Co-authored-by: Bob den Os <108393871+BobdenOs@users.noreply.github.com>
Co-authored-by: Bob den Os <108393871+BobdenOs@users.noreply.github.com>
johannes-vogel
approved these changes
Jan 27, 2025
johannes-vogel
deleted the
fix-groupby-navigation-duplicate-identifier
branch
January 27, 2025 15:32
Merged
johannes-vogel
added a commit
that referenced
this pull request
Jan 28, 2025
🤖 I have created a release *beep* *boop* --- <details><summary>db-service: 1.17.0</summary> ## [1.17.0](db-service-v1.16.2...db-service-v1.17.0) (2025-01-27) ### Added * support for cds.Map ([#889](#889)) ([cde7514](cde7514)) ### Fixed * **`UPDATE`:** no assocs in list which matches subquery results ([4bcb88a](4bcb88a)) * **`UPDATE`:** only perform subselect matching if necessary ([#989](#989)) ([4bcb88a](4bcb88a)) * contains not evaluting to bool ([#980](#980)) ([760484b](760484b)) * nested ternary in calculated element ([#981](#981)) ([5f4a1fe](5f4a1fe)) * reject virtual elements in all expressions ([#972](#972)) ([d0c949d](d0c949d)) * starts endswith for null values ([#975](#975)) ([f0330bc](f0330bc)) * use "$$value$$" as internal column name for UPSERT ([#976](#976)) ([8c86b86](8c86b86)) </details> <details><summary>sqlite: 1.8.0</summary> ## [1.8.0](sqlite-v1.7.8...sqlite-v1.8.0) (2025-01-27) ### Added * support for cds.Map ([#889](#889)) ([cde7514](cde7514)) </details> <details><summary>postgres: 1.11.0</summary> ## [1.11.0](postgres-v1.10.5...postgres-v1.11.0) (2025-01-27) ### Added * support for cds.Map ([#889](#889)) ([cde7514](cde7514)) ### Fixed * starts endswith for null values ([#975](#975)) ([f0330bc](f0330bc)) </details> <details><summary>hana: 1.6.0</summary> ## [1.6.0](hana-v1.5.2...hana-v1.6.0) (2025-01-27) ### Added * support driver self-wrapping (for Dynatrace) ([#974](#974)) ([5346bc4](5346bc4)) * support for cds.Map ([#889](#889)) ([cde7514](cde7514)) ### Fixed * Fix expand aliasing ([#959](#959)) ([f39097c](f39097c)) * groupby path expression with overlapping identifier ([#992](#992)) ([b579da8](b579da8)) * multi raw SQL queries ([#973](#973)) ([b953480](b953480)) * Remove `orderBy` ref check for `sql_simple_queries` ([#964](#964)) ([1b77725](1b77725)) </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: Johannes Vogel <johannes.vogel@sap.com>
johannes-vogel
added a commit
that referenced
this pull request
Jan 28, 2025
🤖 I have created a release *beep* *boop* --- <details><summary>db-service: 1.17.0</summary> ## [1.17.0](db-service-v1.16.2...db-service-v1.17.0) (2025-01-28) ### Added * support for cds.Map ([#889](#889)) ([cde7514](cde7514)) ### Fixed * **`UPDATE`:** no assocs in list which matches subquery results ([4bcb88a](4bcb88a)) * **`UPDATE`:** only perform subselect matching if necessary ([#989](#989)) ([4bcb88a](4bcb88a)) * contains not evaluting to bool ([#980](#980)) ([760484b](760484b)) * nested ternary in calculated element ([#981](#981)) ([5f4a1fe](5f4a1fe)) * reject virtual elements in all expressions ([#972](#972)) ([d0c949d](d0c949d)) * starts endswith for null values ([#975](#975)) ([f0330bc](f0330bc)) * use "$$value$$" as internal column name for UPSERT ([#976](#976)) ([8c86b86](8c86b86)) </details> <details><summary>sqlite: 1.8.0</summary> ## [1.8.0](sqlite-v1.7.8...sqlite-v1.8.0) (2025-01-28) ### Added * support for cds.Map ([#889](#889)) ([cde7514](cde7514)) </details> <details><summary>postgres: 1.11.0</summary> ## [1.11.0](postgres-v1.10.5...postgres-v1.11.0) (2025-01-28) ### Added * support for cds.Map ([#889](#889)) ([cde7514](cde7514)) ### Fixed * starts endswith for null values ([#975](#975)) ([f0330bc](f0330bc)) </details> <details><summary>hana: 1.6.0</summary> ## [1.6.0](hana-v1.5.2...hana-v1.6.0) (2025-01-28) ### Added * support driver self-wrapping (for Dynatrace) ([#974](#974)) ([5346bc4](5346bc4)) * support for cds.Map ([#889](#889)) ([cde7514](cde7514)) ### Fixed * Fix expand aliasing ([#959](#959)) ([f39097c](f39097c)) * groupby path expression with overlapping identifier ([#992](#992)) ([b579da8](b579da8)) * multi raw SQL queries ([#973](#973)) ([b953480](b953480)) * Remove `orderBy` ref check for `sql_simple_queries` ([#964](#964)) ([1b77725](1b77725)) </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: Johannes Vogel <johannes.vogel@sap.com>
johannes-vogel
added a commit
that referenced
this pull request
Jan 28, 2025
🤖 I have created a release *beep* *boop* --- <details><summary>db-service: 1.17.0</summary> ## [1.17.0](db-service-v1.16.2...db-service-v1.17.0) (2025-01-28) ### Added * support for cds.Map ([#889](#889)) ([cde7514](cde7514)) ### Fixed * **`UPDATE`:** no assocs in list which matches subquery results ([4bcb88a](4bcb88a)) * **`UPDATE`:** only perform subselect matching if necessary ([#989](#989)) ([4bcb88a](4bcb88a)) * contains not evaluting to bool ([#980](#980)) ([760484b](760484b)) * nested ternary in calculated element ([#981](#981)) ([5f4a1fe](5f4a1fe)) * reject virtual elements in all expressions ([#972](#972)) ([d0c949d](d0c949d)) * starts endswith for null values ([#975](#975)) ([f0330bc](f0330bc)) * use "$$value$$" as internal column name for UPSERT ([#976](#976)) ([8c86b86](8c86b86)) </details> <details><summary>sqlite: 1.8.0</summary> ## [1.8.0](sqlite-v1.7.8...sqlite-v1.8.0) (2025-01-28) ### Added * support for cds.Map ([#889](#889)) ([cde7514](cde7514)) </details> <details><summary>postgres: 1.11.0</summary> ## [1.11.0](postgres-v1.10.5...postgres-v1.11.0) (2025-01-28) ### Added * support for cds.Map ([#889](#889)) ([cde7514](cde7514)) ### Fixed * starts endswith for null values ([#975](#975)) ([f0330bc](f0330bc)) </details> <details><summary>hana: 1.6.0</summary> ## [1.6.0](hana-v1.5.2...hana-v1.6.0) (2025-01-28) ### Added * support driver self-wrapping (for Dynatrace) ([#974](#974)) ([5346bc4](5346bc4)) * support for cds.Map ([#889](#889)) ([cde7514](cde7514)) ### Fixed * Fix expand aliasing ([#959](#959)) ([f39097c](f39097c)) * groupby path expression with overlapping identifier ([#992](#992)) ([b579da8](b579da8)) * multi raw SQL queries ([#973](#973)) ([b953480](b953480)) * Remove `orderBy` ref check for `sql_simple_queries` ([#964](#964)) ([1b77725](1b77725)) </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: Johannes Vogel <johannes.vogel@sap.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Currently, the HANA service is unable to
GROUP BY foobar.foobar
, raising an error likeinvalid column name: foobar.foobar
, if the query includes an aggregation andsql syntax error: incorrect syntax near "FROM"
, if it does not. The problem is caused by the overlapping column names and the HANA service not correctly injecting the column groupby requires into the parent select - if the parent includes a column with the samecolumn_name
as the 'grouped-by' column.This fix enables the required injection, by skipping the overlapping names check for columns that contain a select.