-
Notifications
You must be signed in to change notification settings - Fork 764
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
IPC reader fails to decode a struct array with zero fields #4643
Labels
Comments
When fn try_new_impl(
schema: SchemaRef,
columns: Vec<ArrayRef>,
options: &RecordBatchOptions,
)
column in columns len is 0.
options.rowcount is 3 |
Should the expected behaviour be that it fails to encode the data in the first place? (instead of roundtrip conversion) Or, is it possible for the reader to decode the struct array without knowledge of what fields it has? |
If it can decode a struct array with a non-zero number of fields, it should be able to decode one with zero fields as well. |
I opened a PR: #5918 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Encoding succeeds, but decoding fails with an error
InvalidArgumentError("all columns in a record batch must have the specified row count")
.To Reproduce
Expected behavior
Successful roundtrip conversion
Additional context
The text was updated successfully, but these errors were encountered: