Au-Miner commented on code in PR #28681:
URL: https://github.com/apache/flink/pull/28681#discussion_r3557791416


##########
flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/plan/utils/RelTreeWriterImpl.scala:
##########
@@ -279,6 +240,122 @@ class RelTreeWriterImpl(
     pw.println()
   }
 
+  override def item(term: String, value: AnyRef): RelWriter = {
+    if (withQueryHint || withQueryBlockAlias) {
+      value match {
+        case rexNode: RexNode if containsSubQuery(rexNode) =>
+          return super.item(term, toHintAwareSubQueryString(rexNode))
+        case _ =>
+      }
+    }
+    super.item(term, value)
+  }
+

Review Comment:
   Currently, the join hints of each subquery are updated recursively, ensuring 
that all hints, including the join hints, of each subquery are printed



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

Reply via email to