kasakrisz commented on code in PR #5505:
URL: https://github.com/apache/hive/pull/5505#discussion_r1875727213
##########
ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/rules/HiveProjectSortExchangeTransposeRule.java:
##########
@@ -88,6 +88,11 @@ public void onMatch(RelOptRuleCall call) {
RelCollation newCollation =
RelCollationTraitDef.INSTANCE.canonize(RelCollationImpl.of(fieldCollations));
List<Integer> newDistributionKeys = getNewRelDistributionKeys(project,
sortExchange.getDistribution());
+ if (newDistributionKeys == null) {
Review Comment:
When there are no distribution keys the project can be safely pushed down
because there are no columns/expressisons that must present in the project
expression list.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]