Skip to content
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

SNOW-1806157 Fix field id mismatch during schema evolution for structured data type #906

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

sfc-gh-alhuang
Copy link
Contributor

Fix the error when the column ordinal of structured data is out of order. The logic used to assume that the root columns are the first k smallest of whole schema, which is incorrect after schema evolution. Add a map for column ordinal to column to fix this.

@sfc-gh-alhuang sfc-gh-alhuang merged commit a233f7e into master Nov 14, 2024
47 of 49 checks passed
@sfc-gh-alhuang sfc-gh-alhuang deleted the alhuang-schema-evolution-IT-2 branch November 14, 2024 23:28
() ->
new SFException(
ErrorCode.INTERNAL_ERROR,
String.format("Column not found. ordinal=%d.", ordinal)))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also log more info like columnDotPath / columnDescriptor / fieldId ?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.dev didn't post this comment just realized!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants