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

   ### Describe the bug
   
   per https://github.com/apache/datafusion/pull/13706 the list functions are 
modeled after DuckDB[^1]
   
   per  https://duckdb.org/docs/sql/functions/list.html#flattenlist_of_lists, 
`flatten` should flatten one level, not recursive
   
   
   [^1]: i would prefer a more established point of reference with close 
alignment to the SQL standard, but this issue is not about this
   
   ### To Reproduce
   
   ```
   query ???
   select flatten(arrow_cast(make_array([[1.1]], [[2.2]], [[3.3], [4.4]]), 
'LargeList(LargeList(LargeList(Float64)))'));
   ----
   [1.1, 2.2, 3.3, 4.4]
   ```
   
   ### Expected behavior
   
   ```
   query ???
   select flatten(arrow_cast(make_array([[1.1]], [[2.2]], [[3.3], [4.4]]), 
'LargeList(LargeList(LargeList(Float64)))'));
   ----
   [[1.1], [2.2], [3.3], [4.4]]
   ```
   
   ### 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: [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