-
Notifications
You must be signed in to change notification settings - Fork 493
[SPARK] UCCatalog preserve old table properties in REPLACE TABLE AS SELECT #984
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
} | ||
|
||
def loadTableProperties(ident: Identifier, properties: util.Map[String, String]): util.Map[String, String] = { | ||
if (ucProxy != null && ucProxy == this.delegate && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need this new ucProxy
variable, we already have UCSingleCatalog.DELTA_CATALOG_LOADED
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
connectors/spark/src/main/scala/io/unitycatalog/spark/UCSingleCatalog.scala
Outdated
Show resolved
Hide resolved
connectors/spark/src/main/scala/io/unitycatalog/spark/UCSingleCatalog.scala
Outdated
Show resolved
Hide resolved
connectors/spark/src/main/scala/io/unitycatalog/spark/UCSingleCatalog.scala
Outdated
Show resolved
Hide resolved
This depends on a spark side fix: apache/spark@aea5836 |
3e785b4
to
dac3127
Compare
d63f578
to
d667b11
Compare
PR Checklist
docs
is updatedDescription of changes
UC Catalog can implement
StagingTableCatalog
to customizeREPLACE TABLE AS SELECT
behavior. With this change, UC Catalog when handling Delta tables, will preserve the old Delta table properties in the new created table.