tobixdev opened a new issue, #8821: URL: https://github.com/apache/arrow-rs/issues/8821
**Is your feature request related to a problem or challenge? Please describe what you are trying to do.** When calling `pretty_format_columns_with_options`, I would like to have the ability to provide a custom pretty printing function that overrides the default behavior. In the case of DataFusion, this would help for pretty-printing extension types in record batches. For example, in a UUID which has a DataType of `FixedSizeBinary`, the printer could insert the `-` to separate the groups. **Describe the solution you'd like** Allow users to provide custom functions for formatting values in an array. This custom function could work based on the existing `ArrayFormatter` or an `Fn(ArrayRef, usize) -> String`. **Describe alternatives you've considered** An alternative would be to let dependent systems handle the issue themselves. I.e., DataFusion builds its own formatter. **Additional context** We are exploring extension type support in DataFusion and pretty-printing record batches could be the first issue. See https://github.com/apache/datafusion/issues/18223 for more details. -- 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]
