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-6374] LatticeSuggester throw NullPointerException when agg c… #3963

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

YiwenWu
Copy link
Contributor

@YiwenWu YiwenWu commented Sep 12, 2024

…all covered with cast
https://issues.apache.org/jira/browse/CALCITE-6374

Ensure that the name field of MutableMeasure is not empty. If name is empty, an alias will be automatically generated.

/** Test case for
* <a href="https://issues.apache.org/jira/browse/CALCITE-6374">[CALCITE-6374]
* LatticeSuggester throw NullPointerException when agg call covered with cast </a>. */
@Test void testCastExpression() throws Exception {
Copy link
Member

Choose a reason for hiding this comment

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

Maybe the name testCastExpression is not clear enough. Is there a clearer way to use it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Adjusted test method name.

Copy link
Member

@caicancai caicancai left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@macroguo-ghy macroguo-ghy 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, please squash your commits

@YiwenWu
Copy link
Contributor Author

YiwenWu commented Sep 23, 2024

@macroguo-ghy thank you for the review, I have squashed commits.

Copy link

sonarcloud bot commented Sep 23, 2024

@macroguo-ghy macroguo-ghy merged commit 1beb5ff into apache:main Sep 23, 2024
19 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
Development

Successfully merging this pull request may close these issues.

3 participants