Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Done
-
None
-
None
Description
Since FLINK-20435 is finished, an ExecNode graph can be serialized to a json plan or a json plan can deserialized to an ExecNode graph. Only Blink planner introduce ExecNode, so legacy planner does not supports this feature.
We will introduce the following methods to support json plan operations:
// Get the json plan for the given statement. String getJsonPlan(String stmt); // Returns the execution plan for the given json plan. String explainJsonPlan(String jsonPlan, ExplainDetail... extraDetails); // Execute the given json plan, and return the execution result. TableResult executeJsonPlan(String jsonPlan);
Currently, these methods are experimental features, so we introduce them into TableEnvironmentInternal as first step.
This is an umbrella issue, we will create more related sub-tasks, including:
1. introduce the above methods
2. support json serialization/deserialization for all StreamExecNodes
3. introduce complete testing to verify ExecNode serialization/deserialization for different queries