Skip to content

[CALCITE-5590] NullPointerException when converting 'in' expression that is used inside select list and group by#4058

Merged
dssysolyatin merged 1 commit intoapache:mainfrom
dssysolyatin:CALCITE-5590-v2
Nov 22, 2024
Merged

[CALCITE-5590] NullPointerException when converting 'in' expression that is used inside select list and group by#4058
dssysolyatin merged 1 commit intoapache:mainfrom
dssysolyatin:CALCITE-5590-v2

Conversation

@dssysolyatin
Copy link
Contributor

Note that almost all deleted lines are from my incorrect previous fix for task CALCITE-5209

Copy link
Contributor

@mihaibudiu mihaibudiu left a comment

Choose a reason for hiding this comment

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

This looks a bit like magic, but it seems to work based on the tests.

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

@dssysolyatin
Copy link
Contributor Author

@mihaibudiu @caicancai Thanks for reviewing. I made one more small change—I added a test case from the task https://issues.apache.org/jira/browse/CALCITE-4549 to ensure that it also works.

…hat is used inside select list and group by
@sonarqubecloud
Copy link

@dssysolyatin dssysolyatin merged commit d4b7342 into apache:main Nov 22, 2024
/** Test case for
* <a href="https://issues.apache.org/jira/browse/CALCITE-4549">[CALCITE-4549]
* IndexOutOfBoundsException when group view by a sub query</a>. */
@Test void testGroupView() {
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 test name could be improved, but it doesn't seem to matter.

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