waterlx edited a comment on pull request #1077: URL: https://github.com/apache/iceberg/pull/1077#issuecomment-636017299
When calling `count()` on entries, Spark passes newRequestedSchema (with size = 0) to Reader#pruneColumns(). As a result, a wrong schema (empty) is generated by Reader#lazySchema(). Schema#lazyNameToId() returns an empty BiMap. get() from this empty map return null. NPE is thrown when trying to convert the null interger into int as the input to findType(). ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
