-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-35531][SQL] Update hive table stats without unnecessary convert #38495
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 6 commits
e763d0a
12e1642
41890de
395b571
8760da9
be0c869
3115a62
ee08735
6ebaa06
bad2444
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 |
|---|---|---|
|
|
@@ -26,6 +26,7 @@ import org.scalatest.{BeforeAndAfter, PrivateMethodTester} | |
|
|
||
| import org.apache.spark.SparkException | ||
| import org.apache.spark.sql.{QueryTest, _} | ||
| import org.apache.spark.sql.catalyst.TableIdentifier | ||
| import org.apache.spark.sql.catalyst.parser.ParseException | ||
| import org.apache.spark.sql.hive.execution.InsertIntoHiveTable | ||
| import org.apache.spark.sql.hive.test.TestHiveSingleton | ||
|
|
@@ -894,12 +895,14 @@ class InsertSuite extends QueryTest with TestHiveSingleton with BeforeAndAfter | |
|
|
||
| sql(insertString.toLowerCase(Locale.ROOT)) | ||
| sql(insertString.toUpperCase(Locale.ROOT)) | ||
| spark.sessionState.catalog.alterTableStats(TableIdentifier("test1"), None) | ||
|
||
|
|
||
| sql(dropString) | ||
| sql(createSpark.toUpperCase(Locale.ROOT)) | ||
|
|
||
| sql(insertString.toLowerCase(Locale.ROOT)) | ||
| sql(insertString.toUpperCase(Locale.ROOT)) | ||
| spark.sessionState.catalog.alterTableStats(TableIdentifier("test1"), None) | ||
| } | ||
| } | ||
| } | ||
|
|
||
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.
can you explain the rationale?