izveigor opened a new issue, #6779:
URL: https://github.com/apache/arrow-datafusion/issues/6779
### Describe the bug
`ArrayFill` function can return lists with different dimensions:
```
postgres=# select array_fill(a, b) from fills;
array_fill
-----------------------------------
{{2,2}}
{5,5,5,5,5,5,5}
{{{{1}}}}
{{4,4,4},{4,4,4},{4,4,4},{4,4,4}}
(4 rows)
```
The standard `return_type` function cannot determine the type for 'dynamic'
functions. because it prefers to assign one type to the whole column and does
not take into account their arguments.
### To Reproduce
_No response_
### Expected behavior
_No response_
### Additional context
About `array_fill` function:
https://www.postgresql.org/docs/current/functions-array.html.
--
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]