-
Notifications
You must be signed in to change notification settings - Fork 41
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
throw if no fields #235
throw if no fields #235
Conversation
bump |
Should this be considered breaking? In that case, may it would be best to coordinate merging this one with other breaking changes. |
As I understand, the StructArray construction for types without fields just silently returned a wrong and totally unexpected result. This PR makes it an error. The ideal would be to actually support such types, but I don't see a simple place to plug that support in. |
I think IndexedTables used the "StructArray with no fields" in some cases (cc: @shashi), which is why the constructor is there in the first place, but I confess I don't remember the exact usecase. |
Great, looking forward for this to be released! There were multiple changes recently that are arguably more breaking, but didn't get a breaking release. Anyway, a breaking release would also be fine for me. |
* throw if no fields * after code review
Before,
StructArray([nothing])
orStructArray([1, 2, 3])
created empty (zero-length) arrays. That was silent and pretty confusing.