mdayakar commented on code in PR #5978: URL: https://github.com/apache/hive/pull/5978#discussion_r2209983689
########## ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/rules/HiveUnionSimpleSelectsToInlineTableRule.java: ########## @@ -218,6 +218,9 @@ private boolean isInlineTableOperand(RelNode input) { if (input.getInputs().size() == 0) { return true; } + if (!(((RexCall)((HiveTableFunctionScan) input).getCall()).getOperands().get(0) instanceof RexCall)) { + return false; + } Review Comment: Added required checks now with separate if conditions. We cannot use "inline" text here as for VALUES also it creates dummy table. -- 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: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org