segmentio / parquet-go

Go library to read/write Parquet files
https://pkg.go.dev/github.com/segmentio/parquet-go
Apache License 2.0
341 stars 102 forks source link

Cannot use some go types after upgrade (uint8) #465

Open vbmithr opened 1 year ago

vbmithr commented 1 year ago
panic: cannot convert Go values of type uint8 to parquet value

goroutine 1 [running]:
github.com/segmentio/parquet-go.writeRowsFuncOf({0x965a40, 0x826660}, 0x0?, {0xc00021c0a0, 0x1, 0x1})
        /home/vb/go/pkg/mod/github.com/segmentio/parquet-go@v0.0.0-20230105042710-2b1478bf222a/column_buffer_go18.go:73 +0x486
github.com/segmentio/parquet-go.writeRowsFuncOfStruct({0x965a40?, 0x87d7a0?}, 0x0?, {0x0, 0x0, 0x0?})
        /home/vb/go/pkg/mod/github.com/segmentio/parquet-go@v0.0.0-20230105042710-2b1478bf222a/column_buffer_go18.go:305 +0x33a
github.com/segmentio/parquet-go.writeRowsFuncOf({0x965a40, 0x87d7a0}, 0x0?, {0x0, 0x0, 0x0})
        /home/vb/go/pkg/mod/github.com/segmentio/parquet-go@v0.0.0-20230105042710-2b1478bf222a/column_buffer_go18.go:67 +0x39e
github.com/segmentio/parquet-go.makeWriteFunc[...]({0x965a40, 0x87d7a0?}, 0x0?)
        /home/vb/go/pkg/mod/github.com/segmentio/parquet-go@v0.0.0-20230105042710-2b1478bf222a/writer_go18.go:125 +0x3c
github.com/segmentio/parquet-go.writeFuncOf[...]({0x965a40, 0x87d7a0}, 0x0)

After some upgrade, I got this. Why is converting uint8 values is a problem?