Skip to content

[CALCITE-6374] LatticeSuggester throw NullPointerException when agg c…#3963

Merged
macroguo-ghy merged 1 commit into
apache:mainfrom
YiwenWu:CALCITE-6374
Sep 23, 2024
Merged

[CALCITE-6374] LatticeSuggester throw NullPointerException when agg c…#3963
macroguo-ghy merged 1 commit into
apache:mainfrom
YiwenWu:CALCITE-6374

Conversation

@YiwenWu
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

YiwenWu commented Sep 23, 2024

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

@sonarqubecloud
Copy link
Copy Markdown

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