parthchandra commented on issue #1941:
URL: 
https://github.com/apache/datafusion-comet/issues/1941#issuecomment-3120675532

   Oh well.
   For Maps, you might want to look at the mapping of Spark's MapType to a 
Parquet Schema here: 
   
https://github.com/apache/datafusion-comet/blob/320ce55eec9f4c846ad7a68bb69c182ae1fcd3ce/common/src/main/scala/org/apache/spark/sql/comet/parquet/CometSparkToParquetSchemaConverter.scala#L254
   
https://github.com/apache/datafusion-comet/blob/320ce55eec9f4c846ad7a68bb69c182ae1fcd3ce/common/src/main/scala/org/apache/spark/sql/comet/parquet/CometSparkToParquetSchemaConverter.scala#L287
   
   Essentially a Map type is a repeated group of key and value fields. Note 
however that both key and value can themselves be complex types as in this test 
file: 
https://github.com/apache/datafusion-comet/blob/320ce55eec9f4c846ad7a68bb69c182ae1fcd3ce/spark/src/test/scala/org/apache/spark/sql/CometTestBase.scala#L719
  


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to