emilk opened a new pull request, #8290:
URL: https://github.com/apache/arrow-rs/pull/8290
# Which issue does this PR close?
- Closes #7048
- Continues and closes #7051
# Rationale for this change
DataType:s are often shown in error messages, both using `Display` and
`Debug`. Making these error messages readable is _very important_.
# What changes are included in this PR?
Improve `Display` and `Debug` formatting of:
* `DataType::List`
* `DataType::LargeList`
* `DataType::FixedSizeList`
# Are these changes tested?
Yes - new tests cover them
# Are there any user-facing changes?
Yes! Formatting is MUCH improved:
**Before**: `List(Field { name: \"item\", data_type: Int32, nullable: true,
dict_id: 0, dict_is_ordered: false, metadata: {} })`
**After**: `List(nullable Int32)`
**Before**: `FixedSizeList(Field { name: \"item\", data_type: Int32,
nullable: false, dict_id: 0, dict_is_ordered: false, metadata: {} }, 5)`
**After**: `FixedSizeList(5 x Int32)`
Care has been taken that the formatting is reversible, though the actual
`FromStr` implementation is still not written (it is missing on `main`, and
missing in this PR - so no change).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]