tustvold commented on pull request #1180:
URL: https://github.com/apache/arrow-rs/pull/1180#issuecomment-1017397095


   I've pushed a commit that fixes the handling of empty dictionaries. I 
vacillated between returning an error if trying to read data from a column with 
an empty dictionary, or just returning 0 values read. In the end I went with 
the latter as it isn't always known how many non-null values a column contains. 
   
   If GenericColumnReader thinks there should be non-null values, as determined 
from the definition levels, it will return an error along the lines of 
"insufficient values read from column".
   
   Whilst doing this I also changed to return an error instead of panicking if 
there is no dictionary page present


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to