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

Use schema instead of row field count during columnar conversion #6274

Merged
merged 1 commit into from
Aug 10, 2022

Conversation

jlowe
Copy link
Contributor

@jlowe jlowe commented Aug 10, 2022

Fixes #6269. Iceberg is returning a custom row object, StructInternalRow, that has fields in it despite the read schema not wanting to read them. The columnar conversion code was assuming the row field count matches the read schema field count, and that caused the index error. This changes the columnar conversion code to use the schema field count rather than relying on the row field count matching the read schema field count.

Signed-off-by: Jason Lowe <jlowe@nvidia.com>
@jlowe jlowe added this to the Aug 8 - Aug 19 milestone Aug 10, 2022
@jlowe jlowe self-assigned this Aug 10, 2022
@jlowe
Copy link
Contributor Author

jlowe commented Aug 10, 2022

build

@jlowe jlowe merged commit eb36525 into NVIDIA:branch-22.08 Aug 10, 2022
@jlowe jlowe deleted the fix-iceberg-meta-count branch August 10, 2022 15:17
@sameerz sameerz added the bug Something isn't working label Aug 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Reading the iceberg metadata failed with java.lang.ArrayIndexOutOfBoundsException
4 participants