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.
[SPARK-17477]: SparkSQL cannot handle schema evolution from Int -> Lo… #15035
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
Uh oh!
There was an error while loading. Please reload this page.
[SPARK-17477]: SparkSQL cannot handle schema evolution from Int -> Lo… #15035
Changes from 1 commit
9a6658cd978d4b965d966a30257bbca8f30705fbdc9e6680e71d6291eb10a068ce0d5e1d4165f7d309ffed112bd7afab77d608f9910b1feb28f63797037d03cb6e59c19842891c60199671d8ec77808e067b0a5e2dda3bb33fd9a7d020ea39b485468cbdf797cd75c0c37fda684dced425ca2de2125957f9f2c6b08b9c75a1d246ea63556fe5814cc3b80d1f795d83ef1a0223de885a85ee52aa037565f6f0e76074bf9a2396a6ce4b293401430e3b129e87bbe726e217f7ce3609e6ce2dc869f2bb1a198098b29fdb91540ef4313ef7fa83ccff86d60c287f19f894eae3b76bb7d192306684bb19132d5defe9aa21035a6d6cbf8d3357bc77d24523e460dcd032335e5930e0b98dfd173b182142b7ebffe6a9a72f6aeaf29fc18a48efd4dda1bdea0File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
### What changes were proposed in this pull request? For the following `ALTER TABLE` DDL, we should issue an exception when the target table is a `VIEW`: ```SQL ALTER TABLE viewName SET LOCATION '/path/to/your/lovely/heart' ALTER TABLE viewName SET SERDE 'whatever' ALTER TABLE viewName SET SERDEPROPERTIES ('x' = 'y') ALTER TABLE viewName PARTITION (a=1, b=2) SET SERDEPROPERTIES ('x' = 'y') ALTER TABLE viewName ADD IF NOT EXISTS PARTITION (a='4', b='8') ALTER TABLE viewName DROP IF EXISTS PARTITION (a='2') ALTER TABLE viewName RECOVER PARTITIONS ALTER TABLE viewName PARTITION (a='1', b='q') RENAME TO PARTITION (a='100', b='p') ``` In addition, `ALTER TABLE RENAME PARTITION` is unable to handle data source tables, just like the other `ALTER PARTITION` commands. We should issue an exception instead. ### How was this patch tested? Added a few test cases. Author: gatorsmile <[email protected]> Closes #15004 from gatorsmile/altertable.Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing