tachyonwill opened a new pull request #12365:
URL: https://github.com/apache/arrow/pull/12365


   DeltaBitPackDecoder was using num_values_(which includes) null to compute 
batch size instead of total_value_count_. This lead to a failed check when 
comparing those counts. Changed to just use total_value_count_ and get rid of 
the check. Alternatively, we could throw an exception instead of the check; I 
think we only enter this state if the file is malformed (assuming no bugs 
elsewhere). 
   
   Also modified decode arrow to check the return value of DecodeInternal; this 
might be pointless as its callers only compare the returned value count as a 
DCHECK. It might be a good idea to standardize at what stage of decoding values 
should be compared to expected values and the behavior when they are not equal 
(preferably an exception and not a check).


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