-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-23263][TEST] CTAS should update stat if autoUpdate statistics is enabled #20430
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
Conversation
…update table size is enabled
|
Test build #86790 has finished for PR 20430 at commit
|
felixcheung
left a comment
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.
sql/core/src/main/scala/org/apache/spark/sql/execution/command/CommandUtils.scala
Outdated
Show resolved
Hide resolved
|
CC @wzhfy |
|
Can we specialize this CTAS case? For data changing commands like INSERT, I think we should remove the stats if auto update is disabled, because the previous stats are inaccurate after the insertion. |
|
Thanks @HyukjinKwon How about close this? |
|
Sure, please close and go ahead in the best way you could perform better. |
# Conflicts: # sql/core/src/main/scala/org/apache/spark/sql/execution/command/CommandUtils.scala # sql/core/src/test/scala/org/apache/spark/sql/StatisticsCollectionSuite.scala # sql/hive/src/test/scala/org/apache/spark/sql/hive/StatisticsSuite.scala
|
Test build #105272 has finished for PR 20430 at commit
|
|
Retest this please. |
sql/hive/src/test/scala/org/apache/spark/sql/hive/StatisticsSuite.scala
Outdated
Show resolved
Hide resolved
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.
@wangyum . I added two comments. Could you address them?
|
Test build #105365 has finished for PR 20430 at commit
|
|
retest this please |
|
Test build #105553 has finished for PR 20430 at commit
|
|
retest this please |
|
Test build #105560 has finished for PR 20430 at commit
|
|
retest this please |
|
Test build #105563 has finished for PR 20430 at commit
|
|
Test build #105826 has finished for PR 20430 at commit
|
|
@wangyum, can you replace and update? I think it's close to go. |
|
Test build #106518 has finished for PR 20430 at commit
|
|
Test build #106555 has finished for PR 20430 at commit
|
|
Merged to master. |
What changes were proposed in this pull request?
The SPARK-27403 fixed CTAS cannot update statistics even if
spark.sql.statistics.size.autoUpdate.enabledis enabled, as mentioned in SPARK-23263.This pr adds tests for that fix.
How was this patch tested?
N/A