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

   ## What is the purpose of the change
   
   This PR fixes the issue that `COMPILED PLAN` statement may generate invalid 
JSON when overwriting the existing JSON with a shorter version.
   
   
   ## Brief change log
   
   -  Add `TRUNCATE_EXISTING` to `ExecNodeGraphInternalPlan#writeToFile`
   
   
   ## Verifying this change
   
   This change is already covered by existing tests, such as 
`CompilePlanITCase#testCompilePlanOverwrite`.
   
   - Roll back the changes made on src and run this case will reproduce the 
error. Apply the changes made on src and re-run the case to verify the fix.
   
   ## 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? No
     - If yes, how is the feature documented? N.A.
   


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

Reply via email to