Fix failure when ACID table column name collides with ACID internal names#12401
Merged
ebyhr merged 1 commit intotrinodb:masterfrom May 18, 2022
Merged
Fix failure when ACID table column name collides with ACID internal names#12401ebyhr merged 1 commit intotrinodb:masterfrom
ebyhr merged 1 commit intotrinodb:masterfrom
Conversation
Member
Author
|
CI hit #12405 |
findepi
reviewed
May 16, 2022
plugin/trino-hive/src/main/java/io/trino/plugin/hive/HiveMetadata.java
Outdated
Show resolved
Hide resolved
Member
There was a problem hiding this comment.
We would probably want disallow creation of such tables
Member
|
What problem(s) is this fixing? |
Member
Author
|
@findepi The below Map<String, Optional<String>> columnComment = builder.buildOrThrow(); |
Member
Thanks for explanation. This makes this change clear to me now. Please add mention of that in the commit message |
75c352f to
a3646b4
Compare
Member
Author
|
@findepi Updated the commit message. |
a3646b4 to
4eff038
Compare
findepi
approved these changes
May 17, 2022
Member
|
pushed; updated the commit title only. |
…ames Previously, HiveMetadata.columnMetadataGetter threw an exception due to duplicated keys when the table contains column names of ACID format columns (e.g. operation) and it's ACID table.
4eff038 to
cc9bede
Compare
Member
Author
Closed
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.

Description
Fix failure when building column metadata in Hive
Documentation
(x) No documentation is needed.
Release notes
(x) Release notes entries required with the following suggested text: