You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "rferraton (via GitHub)" <gi...@apache.org> on 2025/03/31 00:13:20 UTC
[I] Allow the possibility to optionnality add "AS" in the From clause for CustomDialect [datafusion-sqlparser-rs]
rferraton opened a new issue, #1784:
URL: https://github.com/apache/datafusion-sqlparser-rs/issues/1784
Some dialect like Oracle do not support "AS" in the from clause and failed for some query :
eg that is working or Oracle :
```sql
SELECT SRC.*, SYSDATE AS CopyDate FROM TPCH_IN.ORDERS_FLAT SRC WHERE 1 = 1 AND O_ORDERKEY BETWEEN 100 and 1000
```
whereas this is not working (on Oracle)
```sql
SELECT SRC.*, SYSDATE AS CopyDate FROM TPCH_IN.ORDERS_FLAT AS SRC WHERE 1 = 1 AND O_ORDERKEY BETWEEN 100 and 1000
```
Currently the sqlparser force the addition of the keyword AS between the table and it's alias even the original query does not contains "AS" in its from clause.
I don't see the ability to create a custom dialect to avoid this behavior.
I am not sure but i think the "problem" could be here :
https://github.com/apache/datafusion-sqlparser-rs/blob/62495f2f0d998690495f111063a0b0a3466ffa69/src/ast/query.rs#L662
--
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.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: [I] Allow the possibility to optionnaly add "AS" in the From clause for CustomDialect [datafusion-sqlparser-rs]
Posted by "rferraton (via GitHub)" <gi...@apache.org>.
rferraton commented on issue #1784:
URL: https://github.com/apache/datafusion-sqlparser-rs/issues/1784#issuecomment-2774544565
> [@rferraton](https://github.com/rferraton) I could support this if you're not on it.
Please do. I have not the level to code in rust :-)
--
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: [I] Allow the possibility to optionnaly add "AS" in the From clause for CustomDialect [datafusion-sqlparser-rs]
Posted by "git-hulk (via GitHub)" <gi...@apache.org>.
git-hulk commented on issue #1784:
URL: https://github.com/apache/datafusion-sqlparser-rs/issues/1784#issuecomment-2774130527
@rferraton I could support this if you're not on it.
--
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: [I] Allow the possibility to optionnaly add "AS" in the From clause for CustomDialect [datafusion-sqlparser-rs]
Posted by "LucaCappelletti94 (via GitHub)" <gi...@apache.org>.
LucaCappelletti94 commented on issue #1784:
URL: https://github.com/apache/datafusion-sqlparser-rs/issues/1784#issuecomment-5780363239
Closing as resolved in https://github.com/apache/datafusion-sqlparser-rs/pull/2103
--
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: [I] Allow the possibility to optionnaly add "AS" in the From clause for CustomDialect [datafusion-sqlparser-rs]
Posted by "LucaCappelletti94 (via GitHub)" <gi...@apache.org>.
LucaCappelletti94 closed issue #1784: Allow the possibility to optionnaly add "AS" in the From clause for CustomDialect
URL: https://github.com/apache/datafusion-sqlparser-rs/issues/1784
--
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