LadyForest opened a new pull request, #22818:
URL: https://github.com/apache/flink/pull/22818

   ## What is the purpose of the change
   
   This PR extends the `COMPILE PLAN` statement to read/write from/to Flink 
`FileSystem`. 
   
   
   ## Brief change log
   
   This PR contains two commits
   - f397fe6c Fix the issue that the current `COMPILE PLAN` statement cannot 
write the plan to a local path if its parent dir does not exist.
   - 8f744a4e Extend the `COMPILE AND EXECUTE PLAN` statement to read from a 
remote plan with URI like `hdfs://` or `s3://`. The impl leverages the power of 
`ResourceManager` to stage a local file copy, which will be cleaned up when the 
SQL gateway or client close.
   
   
   ## Verifying this change
   
   This change added tests and can be verified as follows:
   
   - The first commit can be verified by rolling back src changes 
`ExecNodeGraphInternalPlan` and running `CompiledPlanITCase`.
   - The second commit adds tests as follows:
     - `FlinkSqlParserImplTest` verifies the syntax works as expected
     - `ResourceManagerTest` verifies the newly introduced methods work as 
expected
     - `insert.q` verifies the changes work on the absolute path without the 
scheme, relative path without the scheme, and absolute path with the scheme for 
the local file system.
     - `CompileAndExecuteRemotePlanITCase` is an E2E case to verify the changes 
work as expected for HDFS remote path.
   
   ## Does this pull request potentially affect one of the following parts:
   
     - Dependencies (does it add or upgrade a dependency): no
     - The public API, i.e., is any changed class annotated with 
`@Public(Evolving)`: no
     - The serializers: no
     - The runtime per-record code paths (performance sensitive): no
     - Anything that affects deployment or recovery: JobManager (and its 
components), Checkpointing, Kubernetes/Yarn, ZooKeeper: no
     - The S3 file system connector: no
   
   ## Documentation
   
     - Does this pull request introduce a new feature? yes
     - If yes, how is the feature documented? FLINK-31957
   


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