-
Notifications
You must be signed in to change notification settings - Fork 29.3k
[SPARK-19784][SPARK-25403][SQL] Refresh the table even table stats is empty #22721
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
Changes from 10 commits
8a7f4af
37fed41
cc9b4df
983c5a8
6c8a73f
ebe8276
1e62a24
88d8d9e
c601b67
c91c154
a4a5313
2612167
c6a1a7d
817d2de
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -189,6 +189,7 @@ case class InsertIntoHadoopFsRelationCommand( | |||||
| sparkSession.catalog.refreshByPath(outputPath.toString) | ||||||
|
|
||||||
| if (catalogTable.nonEmpty) { | ||||||
| sparkSession.sessionState.catalog.refreshTable(catalogTable.get.identifier) | ||||||
| CommandUtils.updateTableStats(sparkSession, catalogTable.get) | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we switch line 193 and 192?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is a issue here: It may refresh the table twice. I moved this logical to spark/sql/core/src/main/scala/org/apache/spark/sql/execution/command/CommandUtils.scala Lines 54 to 55 in 2612167
|
||||||
| } | ||||||
|
|
||||||
|
|
||||||
Uh oh!
There was an error while loading. Please reload this page.