T-J-L opened a new issue, #623:
URL: https://github.com/apache/arrow-go/issues/623
### Describe the bug, including details regarding any error messages,
version, and platform.
I'm testing using the variant encoding for JSON fields, and can't seem to
read back the values which has been created from JSON using the
`parquet/variant` package.
I've managed to narrow it down to a simple reproducer, the issue occurs when
I have an array of objects over a certain size. See below:
```go
package variant
import (
"testing"
"github.com/apache/arrow-go/v18/parquet/variant"
)
func TestVariantJSONRoundTrip(t *testing.T) {
jsonBytes := []byte(`{
"object_array": [
{
"a_field_name_1": "some value
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"a_field_name_2": "some value
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"a_field_name_3": "some value",
"a_field_name_4": "some value",
"a_field_name_5": "some value",
"a_field_name_6": "some value",
"a_field_name_7": "some value",
"a_field_name_8": "some value",
"a_field_name_9": "some value",
"a_field_name_10": "some value"
}
]
}`)
variantFromJSON, err := variant.ParseJSONBytes(jsonBytes, false)
if err != nil {
panic(err)
}
t.Log(variantFromJSON.String()) // Calls json.Marshal, which iterates
all fields.
// panic: runtime error: slice bounds out of range [234881546:269]
[recovered, repanicked]
// github.com/apache/arrow-go/v18/parquet/variant/variant.go:313
}
```
### Component(s)
Parquet
--
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]