andrei-ionescu opened a new issue, #3322:
URL: https://github.com/apache/arrow-rs/issues/3322

   **Describe the bug**
   
   The pretty print implementation for Map is missing.
   
   ```
   Error: ArrowError(InvalidArgumentError("Pretty printing not implemented for 
Map(Field { name: \"map\", data_type: Struct([Field { name: \"key\", data_type: 
Utf8, nullable: false, dict_id: 0, dict_is_ordered: false, metadata: {} }, 
Field { name: \"value\", data_type: Utf8, nullable: true, dict_id: 0, 
dict_is_ordered: false, metadata: {} }]), nullable: false, dict_id: 0, 
dict_is_ordered: false, metadata: {} }, false) type"))
   ```
   
   **To Reproduce**
   ```
   let df = ctx.read_parquet(glob_path, ParquetReadOptions::default()).await?;
   df.show().await?
   ```
   
   **Expected behavior**
   To print either the map's content or a hash representation of that map.
   
   **Additional context**
   This is in the context of using DataFusion and loading some parquet files 
containing Maps.
   
   The code that does the pretty print is here: 
https://github.com/apache/arrow-rs/blob/master/arrow-cast/src/display.rs


-- 
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]

Reply via email to