-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Labels
enhancementAny new improvement worthy of a entry in the changelogAny new improvement worthy of a entry in the changelog
Description
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
There are two different representations for Field:
- In
Struct,Map,Union,RunEndEncoded, for example:"value": nullable Int32 - In
List-like, for example:nullable Int32, field: 'value'
Describe the solution you'd like
We should use one Display for Field.
Describe alternatives you've considered
None.
Additional context
We already had fn format_field (this is used in Struct, etc.) :
| format!("{name:?}: {maybe_nullable}{data_type}{metadata_str}") |
We can replace List-like display using the above format_field:
arrow-rs/arrow-schema/src/datatype_display.rs
Lines 119 to 122 in b8a1926
| write!( | |
| f, | |
| "FixedSizeList({size} x {maybe_nullable}{data_type}{field_name_str}{metadata_str})", | |
| ) |
Metadata
Metadata
Assignees
Labels
enhancementAny new improvement worthy of a entry in the changelogAny new improvement worthy of a entry in the changelog