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

[CALCITE-6337] Distinguish naked measure inside and outside aggregation #3738

Merged

Conversation

barrkel
Copy link
Contributor

@barrkel barrkel commented Mar 20, 2024

Split nakedMeasures flag into two flags:

  • nakedMeasuresInsideAggregatingQuery : allowed in group-by queries
  • nakedMeasuresOutsideAggregatingQuery : allowed in non-group-by queries

The existing nakedMeasures flag is marked as deprecated. Its functionality is equivalent to setting the above two flags to the same value.

@barrkel barrkel force-pushed the bk-upstream-configurable-measure-parsing branch 3 times, most recently from 85f2fa6 to 310fa01 Compare March 20, 2024 15:54
Copy link
Contributor

@tanclary tanclary left a comment

Choose a reason for hiding this comment

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

Looks good to me aside from the test, can you surround the JIRA case in brackets in the PR description/commit message?

@barrkel barrkel changed the title CALCITE-6337 Distinguish naked measure inside and outside aggregation [CALCITE-6337] Distinguish naked measure inside and outside aggregation Mar 21, 2024
@barrkel barrkel force-pushed the bk-upstream-configurable-measure-parsing branch from 310fa01 to a2096ff Compare March 21, 2024 12:14
…utside aggregation

Split nakedMeasures flag into two flags:
- nakedMeasuresInsideAggregatingQuery : allowed in group-by queries
- nakedMeasuresOutsideAggregatingQuery : allowed in non-group-by queries

The existing nakedMeasures flag is marked as deprecated. Its functionality
is equivalent to setting the above two flags to the same value.
@barrkel barrkel force-pushed the bk-upstream-configurable-measure-parsing branch from a2096ff to 8f91e6d Compare March 21, 2024 12:24
Copy link

sonarcloud bot commented Mar 21, 2024

@barrkel
Copy link
Contributor Author

barrkel commented Mar 22, 2024

Looks good to me aside from the test, can you surround the JIRA case in brackets in the PR description/commit message?

This is done.

Copy link
Contributor

@tanclary tanclary left a comment

Choose a reason for hiding this comment

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

Seems like you addressed all of my and @julianhyde 's comments, will merge soon !

@tanclary tanclary merged commit 14ade3a into apache:main Mar 24, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants