-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-19261][SQL] Alter add columns for Hive serde and some datasource tables #16626
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
Closed
Closed
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
52ca902
alter_add_col: initial changes
xwu0226 f498fa6
add testcases
xwu0226 522443e
negative testcases
xwu0226 1af2654
remove non-support testcase
xwu0226 ec57ee9
fix testcase
xwu0226 ec74849
update testcases
xwu0226 8fca889
update testcases
xwu0226 4a17529
update testcases
xwu0226 9699128
comments for command caseclass
xwu0226 9860e5c
udate comments based on review
xwu0226 dfff364
SPARK-19261: update to support datasource table and add new testcases
xwu0226 9f23254
remove workaournd for parquet issue since parquet-1.8.2 is now supported
xwu0226 180092f
SPARK-19261: using white list for datasource table types that support…
xwu0226 5a8aa80
fix code style
xwu0226 d3860e6
fix coding style
xwu0226 55577aa
update upon review
xwu0226 6fa913a
refactor code from alterTable function
xwu0226 7231efe
rebase and resolve conflict
xwu0226 e4e9ecf
resolve conflicts
xwu0226 75e7441
using ExternalCatalog.alterTableSchema
xwu0226 9847030
add InMemoryCatalog testcases
xwu0226 1a383bb
revert change in HiveExernalCatalog.scala
xwu0226 f994ce9
update upon review
xwu0226 5bf7360
add checking for duplicate column names
xwu0226 599c45e
add case sensativity for duplicate name checking and new testcases
xwu0226 b3edfea
typo
xwu0226 7d8a515
resolve conflicts and modify testcases
xwu0226 e895278
update testcases
xwu0226 e171ac4
move checkduplicate and schema arrangement to SessionCatalog.alterTab…
xwu0226 4391edd
change SessionCatalog.alterTableAddColumn back to alterTableSchema
xwu0226 a3fef12
update upon review comments
xwu0226 1eb7cd3
some minor updates upon review comments
xwu0226 04ce8f4
update based on review
xwu0226 7d8437d
update on minor comments
xwu0226 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev
Previous commit
update on minor comments
- Loading branch information
commit 7d8437dbba76e1e88c9f230dc7ea895d343dceb8
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -344,10 +344,10 @@ class SessionCatalog( | |
| } | ||
|
|
||
| // assuming the newSchema has all partition columns at the end as required | ||
| externalCatalog.alterTableSchema(db, table, StructType(newSchema)) | ||
| externalCatalog.alterTableSchema(db, table, newSchema) | ||
| } | ||
|
|
||
| def columnNameResolved(schema: StructType, colName: String): Boolean = { | ||
| private def columnNameResolved(schema: StructType, colName: String): Boolean = { | ||
| schema.fields.map(_.name).exists(conf.resolver(_, colName)) | ||
| } | ||
|
||
|
|
||
|
|
||
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
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.
Uh oh!
There was an error while loading. Please reload this page.
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.
Let us output the column names.