You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by "Taoli (Jira)" <ji...@apache.org> on 2021/06/21 10:22:00 UTC

[jira] [Created] (CARBONDATA-4220) Should't delete the entire directory recursively when the table creation fails

Taoli created CARBONDATA-4220:
---------------------------------

             Summary: Should't delete the entire directory recursively when the table creation fails 
                 Key: CARBONDATA-4220
                 URL: https://issues.apache.org/jira/browse/CARBONDATA-4220
             Project: CarbonData
          Issue Type: Bug
          Components: spark-integration
            Reporter: Taoli


when the table creation fails,  carbondata delete the entire directory  of tablePath recursively when catch the AnalysisException.

the tablePath  may be specified by the user through location. 

if the specified location include any other folders, they may be delete by this protection mechanism.

Delete should only contain files and folders created by createtable command.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)