You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2020/03/13 07:22:11 UTC

[GitHub] [spark] AngersZhuuuu opened a new pull request #25290: [SPARK-28551][SQL]Add a Checker Rule when CTAS SQL with LOCATION

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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org