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

Fix empty struct type in selectNot call #59

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

rzhang10
Copy link
Member

@rzhang10 rzhang10 commented Mar 16, 2021

Issue: we encounter dali2 spark exception reading a specific table, upon analysis, this table has a empty struct inside its schema, and this cause iceberg internally to not be able to construct the correct number of readers to match the fiedls, and thus throws a NPE. Upon debugging and analysis, the code that doesn't handle the empty struct correctly is in GetProjectedIds.java via TypeUtil.getIdsInternal call.

Tested the table with the empty struct schema using spark-shell, the table could now be read without exception.

…pty-struct' into rzhang-fix-buildOrcProjection-empty-struct

# Conflicts:
#	api/src/test/java/org/apache/iceberg/types/TestTypeUtil.java
@shardulm94
Copy link
Contributor

@rzhang10 Can you file this upstream? Since this touches the API module, it will be helpful to not diverge from upstream.

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