turboFei edited a comment on issue #25795: [WIP][SPARK-29037][Core] Spark gives duplicate result when an application was killed URL: https://github.com/apache/spark/pull/25795#issuecomment-533494021 > The problem here is that, how do you detect `insert overwrite table ta select ...`? `.spark-staging-${UUID}` always exists if there is an ongoing write. We will find a longest path with `sp_` prefix. For `insert overwrite table ta select ...`, its output path is `.spark-staging-${UUID}` and its longest path with `sp_` prefix is `""`. Then we can detect that there is a write operation for whole table, all other write operation for this table are not allowed.
---------------------------------------------------------------- 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]
