sunny19930321 commented on PR #62211: URL: https://github.com/apache/doris/pull/62211#issuecomment-4204345976
1.What problem was fixed (it's best to include specific error reporting information). How it was fixed. The truncate partition does not check the existence of the partition, resulting in the deletion of the partition can not find the partition. The IF EXISTS is added to determine whether the partition exists 2.Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be. IF EXISTS PARTITION was not supported before, but now the syntax supports IF EXISTS PARTITION 3.What features were added. Why was this function added? Create an automatic partition, since the write does not have this partition, before the write will have a prefix function to clean the partition data, and then write,this time will throw an error, the write task fails 4.Which code was refactored and why was this part of the code refactored? The sql parsing functions DorisParser.g4 and sql_parser.cup are involved, and the classes TruncateTableStmt.java and InternalCatalog.java handle the IF EXISTS logic -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
