Github user fhueske commented on a diff in the pull request:
https://github.com/apache/flink/pull/5867#discussion_r183746951
--- Diff:
flink-libraries/flink-sql-client/src/main/java/org/apache/flink/table/client/config/Environment.java
---
@@ -91,6 +92,22 @@ public Deployment getDeployment() {
return deployment;
}
+ public String explain() {
+ final StringBuilder sb = new StringBuilder();
+ sb.append("===================== Tables
=====================\n");
+ tables.forEach((name, table) -> {
+ sb.append("- name: ").append(name).append("\n");
+ final DescriptorProperties props = new
DescriptorProperties(true);
+ table.addProperties(props);
--- End diff --
Should we make a copy of `table` before modifying it?
---