dawidwys commented on a change in pull request #8973:
[FLINK-13081][table-planner][table-api-java] Supports explain DAG plan
URL: https://github.com/apache/flink/pull/8973#discussion_r300248597
##########
File path:
flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/TableEnvironment.java
##########
@@ -275,8 +275,28 @@
*
* @param table The table for which the AST and execution plan will be
returned.
*/
+ @Deprecated
String explain(Table table);
+ /**
+ * Returns the AST of the specified Table API and SQL queries and the
execution plan to compute
+ * the result of the given {@link Table}.
+ *
+ * @param table The table for which the AST and execution plan will be
returned.
+ * @param extended if the plan should contain additional properties
such as
+ * e.g. estimated cost, traits
+ */
+ String explain(Table table, boolean extended);
+
+ /**
+ * Returns the AST of the specified Table API and SQL queries and the
execution plan to compute
+ * the result of multiple-sinks plan.
+ *
+ * @param extended if the plan should contain additional properties
such as
+ * e.g. estimated cost, traits
+ */
+ String explain(boolean extended);
Review comment:
Let's add this in the second PR. We do not have the concept of lazy
evaluation yet.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services