zeroshade commented on code in PR #38413:
URL: https://github.com/apache/arrow/pull/38413#discussion_r1368986904


##########
go/parquet/internal/encoding/delta_bit_packing.go:
##########
@@ -172,6 +174,10 @@ func (d *DeltaBitPackInt32Decoder) Decode(out []int32) 
(int, error) {
        for len(out) > 0 { // unpack mini blocks until we get all the values we 
need
                if d.currentBlockVals == 0 {
                        err = d.initBlock()
+                       if err != nil {
+                               return 0, err
+                       }
+                       d.currentMiniBlockVals = 0

Review Comment:
   isn't this redundant due to the above if statement?



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