slinkydeveloper commented on a change in pull request #18573: URL: https://github.com/apache/flink/pull/18573#discussion_r801367541
########## File path: flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/internal/TableEnvironmentImpl.java ########## @@ -752,6 +757,38 @@ public StatementSet createStatementSet() { return new StatementSetImpl(this); } + @Override + public CompiledPlan loadPlan(PlanReference planReference) throws IOException { + return planner.load(planReference); + } + + @Override + public CompiledPlan compilePlanSql(String stmt) { + List<Operation> operations = getParser().parse(stmt); + + if (operations.size() != 1 || !(operations.get(0) instanceof ModifyOperation)) { + throw new TableException(UNSUPPORTED_QUERY_IN_COMPILE_PLAN_SQL_MSG); + } + + return planner.compile(Collections.singletonList((ModifyOperation) operations.get(0))); + } + + @Override + public TableResult executePlan(CompiledPlan plan) { + List<Transformation<?>> transformations = planner.translate(plan); + List<String> sinkIdentifierNames = new ArrayList<>(); + for (int i = 0; i < transformations.size(); ++i) { + // TODO serialize the sink table names to json plan ? Review comment: Can you check it now? -- 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: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org