AngersZhuuuu opened a new pull request #25290: [SPARK-28551][SQL]Add a Checker 
Rule when CTAS SQL with LOCATION 
URL: https://github.com/apache/spark/pull/25290
 
 
   ## What changes were proposed in this pull request?
   
   When we run SQL like 
   
   `CRETE TABLE TBL `
   `LOCATION 'PATH_URI`
   `AS`
   `SELECT QUERY `
   It won't check PATH_URI status, if there is some data under this path, it 
will just overwrite this path.
   
   If user careless write a path with important data store under the path, it 
will be a disaster。 
   
   So I wish to add a checker rule in PreWriteChecker to avoid this situation 
happens
   
   ## How was this patch tested?
   UT & MT
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to