You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "LucaCappelletti94 (via GitHub)" <gi...@apache.org> on 2026/06/06 18:18:00 UTC
[PR] Support aliased function arguments (expr AS name) [datafusion-sqlparser-rs]
LucaCappelletti94 opened a new pull request, #2368:
URL: https://github.com/apache/datafusion-sqlparser-rs/pull/2368
PostgreSQL XML functions such as `XMLFOREST` and `XMLATTRIBUTES` take aliased arguments, e.g. `XMLFOREST(a AS x, b)`. This syntax currently fails to parse with "Expected: ), found: AS".
This PR adds a `supports_aliased_function_args()` dialect method (true for PostgreSQL and Generic) and makes the function-call parser wrap `expr AS name` arguments into the existing `Expr::Named` variant, so no new AST types are needed.
Part of the work to support PostgreSQL XML functions (split from #2252, follows #2299).
--
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-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] Support aliased function arguments (expr AS name) [datafusion-sqlparser-rs]
Posted by "yoavcloud (via GitHub)" <gi...@apache.org>.
yoavcloud merged PR #2368:
URL: https://github.com/apache/datafusion-sqlparser-rs/pull/2368
--
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-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org