[SPARK-15596][SPARK-15635][SQL] ALTER TABLE RENAME fixes#13416
Closed
andrewor14 wants to merge 3 commits intoapache:masterfrom
Closed
[SPARK-15596][SPARK-15635][SQL] ALTER TABLE RENAME fixes#13416andrewor14 wants to merge 3 commits intoapache:masterfrom
andrewor14 wants to merge 3 commits intoapache:masterfrom
Conversation
added 3 commits
May 27, 2016 17:49
|
Test build #59665 has finished for PR 13416 at commit
|
Contributor
Author
|
retest this please |
|
Test build #59675 has finished for PR 13416 at commit
|
Contributor
Author
Contributor
|
lgtm |
Contributor
|
merging to master and branch 2.0 |
asfgit
pushed a commit
that referenced
this pull request
Jun 1, 2016
## What changes were proposed in this pull request? **SPARK-15596**: Even after we renamed a cached table, the plan would remain in the cache with the old table name. If I created a new table using the old name then the old table would return incorrect data. Note that this applies only to Hive tables. **SPARK-15635**: Renaming a datasource table would render the table not query-able. This is because we store the location of the table in a "path" property, which was not updated to reflect Hive's change in table location following a rename. ## How was this patch tested? DDLSuite Author: Andrew Or <andrew@databricks.com> Closes #13416 from andrewor14/rename-table. (cherry picked from commit 9e2643b) Signed-off-by: Yin Huai <yhuai@databricks.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
SPARK-15596: Even after we renamed a cached table, the plan would remain in the cache with the old table name. If I created a new table using the old name then the old table would return incorrect data. Note that this applies only to Hive tables.
SPARK-15635: Renaming a datasource table would render the table not query-able. This is because we store the location of the table in a "path" property, which was not updated to reflect Hive's change in table location following a rename.
How was this patch tested?
DDLSuite