comphead opened a new issue, #17453:
URL: https://github.com/apache/datafusion/issues/17453

   ### Is your feature request related to a problem or challenge?
   
   DF and DuckDB returns different nullability flag for `map_keys` which makes 
some challenges comparing arrays later like in 
https://github.com/apache/datafusion-comet/issues/2321
   
   
   DF (internal array flag is false )
   ```
   > select arrow_typeof(map_keys(map(['a'], [1])));
   
+------------------------------------------------------------------------------------------------------------------+
   | arrow_typeof(map_keys(map(make_array(Utf8("a")),make_array(Int64(1)))))    
                                      |
   
+------------------------------------------------------------------------------------------------------------------+
   | List(Field { name: "item", data_type: Utf8, nullable: false, dict_id: 0, 
dict_is_ordered: false, metadata: {} }) |
   
+------------------------------------------------------------------------------------------------------------------+
   
   ```
   
   DuckDB (internal array flag is true)
   
   ```
   D describe SELECT map_keys(map(['a'], [1]));
   
┌───────────────────────────────────────────────────────────┬─────────────┬─────────┬─────────┬─────────┬─────────┐
   │                        column_name                        │ column_type │  
null   │   key   │ default │  extra  │
   │                          varchar                          │   varchar   │ 
varchar │ varchar │ varchar │ varchar │
   
├───────────────────────────────────────────────────────────┼─────────────┼─────────┼─────────┼─────────┼─────────┤
   │ map_keys("map"(main.list_value('a'), main.list_value(1))) │ VARCHAR[]   │ 
YES     │         │         │         │
   
└───────────────────────────────────────────────────────────┴─────────────┴─────────┴─────────┴─────────┴─────────┘
   ```
   
   ### Describe the solution you'd like
   
   _No response_
   
   ### Describe alternatives you've considered
   
   _No response_
   
   ### Additional context
   
   _No response_


-- 
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: github-unsubscr...@datafusion.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to