duongcongtoai commented on issue #12162: URL: https://github.com/apache/datafusion/issues/12162#issuecomment-2614787632
i think this can be similar to an operation of aliasing an unnest on struct column, and this operation does not make much sense. It's clearer to see if in the example, the struct has two field ``` > select unnest(struct('a','b')); +----------------------------------------------------+----------------------------------------------------+ | unnest_placeholder(struct(Utf8("a"),Utf8("b"))).c0 | unnest_placeholder(struct(Utf8("a"),Utf8("b"))).c1 | +----------------------------------------------------+----------------------------------------------------+ | a | b | +----------------------------------------------------+----------------------------------------------------+ ``` Then adding allias like ``` select unnest(struct('a','b')) as some_alias; ``` Does not make sense, I wonder should we find a new syntax to alias for individual unnested fields for struct column -- 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 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