Skip to content

Commit

Permalink
fix decoding bug
Browse files Browse the repository at this point in the history
  • Loading branch information
joellubi committed Jul 16, 2024
1 parent 6c7194f commit d7ccb4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/parquet/internal/encoding/delta_bit_packing.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func (d *deltaBitPackDecoder[T]) unpackNextMini() error {
// Decode retrieves min(remaining values, len(out)) values from the data and returns the number
// of values actually decoded and any errors encountered.
func (d *deltaBitPackDecoder[T]) Decode(out []T) (int, error) {
max := shared_utils.Min(len(out), int(d.totalValues))
max := shared_utils.Min(len(out), int(d.nvals))
if max == 0 {
return 0, nil
}
Expand Down

0 comments on commit d7ccb4c

Please sign in to comment.