-
Notifications
You must be signed in to change notification settings - Fork 28.1k
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
[SPARK-36902][SQL] Migrate CreateTableAsSelectStatement to v2 command #34667
Conversation
CC @huaxingao FYI, Please take a look when you find some time, thanks! |
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/v2Commands.scala
Outdated
Show resolved
Hide resolved
Kubernetes integration test starting |
Kubernetes integration test status failure |
Test build #145451 has finished for PR 34667 at commit
|
Kubernetes integration test starting |
Kubernetes integration test status failure |
Test build #145767 has finished for PR 34667 at commit
|
CC @huaxingao @cloud-fan FYI, thanks! |
sql/core/src/main/scala/org/apache/spark/sql/DataFrameWriter.scala
Outdated
Show resolved
Hide resolved
sql/core/src/main/scala/org/apache/spark/sql/DataFrameWriter.scala
Outdated
Show resolved
Hide resolved
sql/core/src/main/scala/org/apache/spark/sql/DataFrameWriterV2.scala
Outdated
Show resolved
Hide resolved
...core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/DataSourceV2Strategy.scala
Outdated
Show resolved
Hide resolved
...core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/DataSourceV2Strategy.scala
Outdated
Show resolved
Hide resolved
Kubernetes integration test starting |
Kubernetes integration test status failure |
Test build #145837 has finished for PR 34667 at commit
|
Kubernetes integration test starting |
Kubernetes integration test status failure |
|
||
val tableSpec = TableSpec( | ||
bucketSpec = None, | ||
properties = Map(TableCatalog.PROP_PROVIDER -> source) ++ location, |
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.
I think this should not include the location property. We already specify it in TableSpec.location
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.
Actually, we should put Map.empty
here. provide is also specified in TableSpec.provider
Test build #145876 has finished for PR 34667 at commit
|
Kubernetes integration test starting |
Kubernetes integration test status failure |
Test build #145890 has finished for PR 34667 at commit
|
thanks, merging to master! |
thanks! |
Hi, @dchvn and @cloud-fan .
|
Map.empty, | ||
Some(source), | ||
df.queryExecution.analyzed, | ||
tableSpec, | ||
Map.empty, |
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.
@huaxingao can you fix this similar bug as well when you open the PR?
…write options in CTAS and RTAS ### What changes were proposed in this pull request? `DataFrameWriter.saveAsTable` should pass `extraOptions.toMap` as the write options in CTAS and RTAS ### Why are the changes needed? bug fixing please see #34754 (comment) #34667 (comment) ### Does this PR introduce _any_ user-facing change? no ### How was this patch tested? new test Closes #34997 from huaxingao/write_option. Authored-by: Huaxin Gao <huaxin_gao@apple.com> Signed-off-by: Wenchen Fan <wenchen@databricks.com>
What changes were proposed in this pull request?
Migrate CreateTableAsSelectStatement to v2 command
Why are the changes needed?
Migrate CreateTableAsSelectStatement to v2 command
Does this PR introduce any user-facing change?
No
How was this patch tested?
existing tests