-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Keep last parameters when updating Glue in Delta #23138
Keep last parameters when updating Glue in Delta #23138
Conversation
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.
Could you add some more detail about the failure scenario like the error stacktrace or steps to get to the error ?
@raunaqmorarka This is the sample stacktrace when executed
|
@@ -63,7 +63,7 @@ public void commitToExistingTable(SchemaTableName schemaTableName, long version, | |||
ImmutableMap.Builder<String, String> parameters = ImmutableMap.builder(); | |||
parameters.putAll(getTableParameters(currentTable)); | |||
parameters.putAll(tableMetadataParameters(version, schemaString, tableComment)); | |||
tableInput.withParameters(parameters.buildOrThrow()); | |||
tableInput.withParameters(parameters.buildKeepingLast()); |
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.
May be we can handle it by filtering out old TRINO_LAST_TRANSACTION_VERSION from a previous step instead ?
Using buildKeepingLast
relies on keys being inserted in certain order which somebody might change without knowing we relied on it to keep only latest TRINO_LAST_TRANSACTION_VERSION
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 me handle in a follow-up because buildKeepingLast()
is consistent with other metatore logic at this time.
Description
Otherwise, DeltaLakeTableMetadataScheduler fails internally.
I manually tested and didn't add a test because this issue is specific to V1 (legacy).
Release notes
(x) This is not user-visible or is docs only, and no release notes are required.