Repository navigation
Proper way to initialize an ListArray.Builder
#321
|
I've been using this library for a while now, but I have found a few places where I miss an invariant over how to initialize a arrow-dotnet/src/Apache.Arrow/Arrays/ListArray.cs Lines 46 to 52 in 3e235ea When initializing the builder the I recently spent a time running down a bug that was effectively that I forgot to call Is there a reason an empty Thank you |
Replies: 1 comment
|
I'm not sure anyone actively involved in the project today could tell you why the code is the way it is; it seems to date back a little over six years. A better question would be whether there are any improvements that could be made that would be compatible with existing code, and I think that's a pretty hard constraint to meet. Perhaps I often think it would be nice to redesign the builder APIs. |
I'm not sure anyone actively involved in the project today could tell you why the code is the way it is; it seems to date back a little over six years. A better question would be whether there are any improvements that could be made that would be compatible with existing code, and I think that's a pretty hard constraint to meet. Perhaps
ListArrayBuilder.Buildcould throw an exception if the first offset is anything other than zero? The only programs which would be broken by this should be those that are already producing invalid arrays.I often think it would be nice to redesign the builder APIs.