Skip to content

Conversation

@soumyakanti3578
Copy link
Contributor

…ption when SORT BY columns are not in SELECT list

What changes were proposed in this pull request?

If a target mapping is missing, we get a Mappings.NoElementException from Calcite. We can just return null and skip HiveProjectSortExchangeTransposeRule as it's not possible to push the Project below the Sort in that case.

Why are the changes needed?

We get an Exception, which can be reproduced as described in https://issues.apache.org/jira/browse/HIVE-29456

Does this PR introduce any user-facing change?

No

How was this patch tested?

mvn test -pl itests/qtest -Pitests -Dtest=TestMiniLlapLocalCliDriver -Dtest.output.overwrite=true -o -Dqfile="select_columns_subset_of_sort_by.q"

…ption when SORT BY columns are not in SELECT list
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants