waterlx commented 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(). Those eventually trigger the NPE when calling 
get() against an empty BiMap returned by Schema#lazyNameToId().


----------------------------------------------------------------
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]

Reply via email to