chelseajonesr commented on issue #37712:
URL: https://github.com/apache/arrow/issues/37712#issuecomment-1719805064

   @zeroshade Thanks for the quick response.  I have a fork of arrow that I've 
just synched to the head of main; I copied the panic test there and I'm still 
seeing the same behaviour.
   
   
https://github.com/chelseajonesr/arrow/blob/panic-using-go-1.21/go/parquet/panic_test.go
   
   Go 1.20.8:
   ```
   parquet % go test ./panic_test.go               
   ok   command-line-arguments  0.224s
   ```
   
   And then Go 1.21.1:
   ```
   parquet % ~/go/bin/go1.21.1 test ./panic_test.go            
   panic: runtime error: slice bounds out of range [:5] with capacity 0
   
   goroutine 14 [running]:
   
github.com/apache/arrow/go/v14/parquet/internal/encoding.(*PlainByteArrayDecoder).DecodeSpaced(0x0?,
 {0x0?, 0x1400030bce8?, 0x1031e5200?}, 0x103b86ab8?, {0x140000ce900?, 
0x10030bc01?, 0x2?}, 0x400010000001f?)
        
/Users/chelseajones/src/arrow-fork/go/parquet/internal/encoding/byte_array_decoder.go:83
 +0x130
   
github.com/apache/arrow/go/v14/parquet/file.(*byteArrayRecordReader).ReadValuesSpaced(0x140000feb00,
 0x0, 0x20?)
        /Users/chelseajones/src/arrow-fork/go/parquet/file/record_reader.go:841 
+0x134
   
github.com/apache/arrow/go/v14/parquet/file.(*recordReader).ReadRecordData(0x14000095260,
 0x1)
        /Users/chelseajones/src/arrow-fork/go/parquet/file/record_reader.go:548 
+0x288
   
github.com/apache/arrow/go/v14/parquet/file.(*recordReader).ReadRecords(0x14000095260,
 0x1)
        /Users/chelseajones/src/arrow-fork/go/parquet/file/record_reader.go:632 
+0x32c
   
github.com/apache/arrow/go/v14/parquet/pqarrow.(*leafReader).LoadBatch(0x140000952c0,
 0x1)
        
/Users/chelseajones/src/arrow-fork/go/parquet/pqarrow/column_readers.go:104 
+0xd8
   
github.com/apache/arrow/go/v14/parquet/pqarrow.(*structReader).LoadBatch.func1()
        
/Users/chelseajones/src/arrow-fork/go/parquet/pqarrow/column_readers.go:242 
+0x30
   golang.org/x/sync/errgroup.(*Group).Go.func1()
        
/Users/chelseajones/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:75 
+0x58
   created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 18
        
/Users/chelseajones/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:72 
+0x98
   FAIL command-line-arguments  0.315s
   FAIL
   ```
   
   If this is working for you... I wonder if there's some sort of configuration 
issue I'm running into.  


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