duongcongtoai opened a new issue, #10656:
URL: https://github.com/apache/datafusion/issues/10656
### Describe the bug
Given this slt
```
statement ok
CREATE TABLE temp
AS VALUES
([struct(1,2)])
;
query ?
select unnest(column1) as struct_elem from temp;
----
{c0: 1, c1: 2}
```
The code will throw error
```
Internal error: unnest on struct can ony be applied at the root level of
select expression
```
### To Reproduce
perform unnest on List(Struct) column, but with unnest as a child expr (e.g
an alias)
### Expected behavior
The type beling unnested is with type List, and unnesting(List(Struct))
should result into Struct correctly
### 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]