Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

index out of range while using ReadByNumber #549

Open
egor-ryashin opened this issue Jul 31, 2023 · 0 comments
Open

index out of range while using ReadByNumber #549

egor-ryashin opened this issue Jul 31, 2023 · 0 comments

Comments

@egor-ryashin
Copy link
Contributor

I've copy pasted this sample code from the example (https://github.com/xitongsys/parquet-go/blob/master/example/convert_to_json.go) and tried to read a file but got an error at the last line:

	reader, err := reader.NewParquetReader(fw, schema, 1)
	require.NoError(t, err)

	num := int(reader.GetNumRows())
	require.Equal(t, 2, num)

	data, err := reader.ReadByNumber(num)

runtime error: index out of range [1] with length 1

I can open this file by another application though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant