zabetak commented on code in PR #6092:
URL: https://github.com/apache/hive/pull/6092#discussion_r2821583169


##########
ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/CommonTableExpressionPrintSuggester.java:
##########
@@ -35,10 +36,11 @@ public class CommonTableExpressionPrintSuggester implements 
CommonTableExpressio
   @Override
   public List<RelNode> suggest(final RelNode input, final Configuration 
configuration) {
     List<RelNode> result = internal.suggest(input, configuration);
-    // Ensure CTEs are printed deterministically to avoid test flakiness
-    result.stream().map(RelOptUtil::toString).sorted()
-        .forEach(cte -> SessionState.getConsole().printInfo("CTE 
Suggestion:\n" + cte, false));
-    return result;
+    // Ensure CTEs are printed and returned deterministically to avoid test 
flakiness
+    return result.stream()

Review Comment:
   Applied the suggestion in 
https://github.com/apache/hive/pull/6092/commits/9709e8ba2b5508edb7c8a91ff68ace6a55b41cde



-- 
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]

Reply via email to