Skip to content

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