jizezhang commented on issue #17964:
URL: https://github.com/apache/datafusion/issues/17964#issuecomment-3484142804

   
   ```
   query error
   SELECT array(arrow_cast(array(1), 'LargeList(Int64)'))
   ----
   DataFusion error: Internal error: Function 'array' returned value of type 
'LargeList(Field { name: "element", data_type: LargeList(Field { data_type: 
Int64, nullable: true }), nullable: true })' while the following type was 
promised at planning time and expected: 'List(Field { name: "element", 
data_type: LargeList(Field { data_type: Int64, nullable: true }), nullable: 
true })'.
   This issue was likely caused by a bug in DataFusion's code. Please help us 
to resolve this by filing a bug report in our issue tracker: 
https://github.com/apache/datafusion/issues
   ```
   This would confirm the bug?
   
   Looking over the [PR](https://github.com/apache/datafusion/pull/16936) for 
spark array implementation, I did not seem to find comments related to the 
handling of `LargeList`. In this case, to fix the bug and align with the 
behavior of `make_array`, should the return type be `List` regardless of 
whether the inner data type is `LargeList` or not? 
   
   Thanks!
   
   


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