Convenience method to create DataType::List
correctly
#4544
Labels
arrow
Changes to the arrow crate
enhancement
Any new improvement worthy of a entry in the changelog
good first issue
Good for newcomers
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
The embedded field type of a List must always be called "item" -- you can see this is done everywhere in the arrow-rs codebase that a
DataType::List
is created: https://github.com/search?q=repo%3Aapache%2Farrow-rs+%22%5C%22item%5C%22%22&type=codeWhile working on https://github.com/influxdata/influxdb_iox/pull/8247 I had to make this change
to align the type with expected
Having to do this is both verbose/annoying but more to the point means we are exposing some sort of implementation detail that must be cargo-culted in many places
Describe the solution you'd like
I would like a method like this (with good documentation) to create a
That would do the same thing as
cc @tustvold for your thoughts
Describe alternatives you've considered
Do nothing
Additional context
The text was updated successfully, but these errors were encountered: