You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[SPARK-52684][SQL] Make CACHE TABLE Commands atomic while encountering execution errors
### What changes were proposed in this pull request?
This PR makes CACHE TABLE commands atomic while encountering execution errors
### Why are the changes needed?
For now, when an AnalysisException occurs, no cache or view will be created, but an execution one occurs, a view or an erroneous 'cache' is created.
### Does this PR introduce _any_ user-facing change?
Yes, but it's a bugfix. It only affects rare corner case that a user leverages this bug to create an erroneous 'cache'/view for some particular purposes
### How was this patch tested?
new tests
### Was this patch authored or co-authored using generative AI tooling?
no
Closes#51374 from yaooqinn/SPARK-52684.
Authored-by: Kent Yao <yao@apache.org>
Signed-off-by: Kent Yao <yao@apache.org>
0 commit comments