#58 -AS clause always injected in generated SQL#59
Open
Luigi6821 wants to merge 6 commits intoTylerBrinks:mainfrom
Open
#58 -AS clause always injected in generated SQL#59Luigi6821 wants to merge 6 commits intoTylerBrinks:mainfrom
Luigi6821 wants to merge 6 commits intoTylerBrinks:mainfrom
Conversation
Owner
|
Thanks for the PRs. I will take a look at all the PR activity and merge changes in at the end of this week. |
Author
|
Thanks Tyler.
…On Tue, May 27, 2025 at 1:21 AM Tyler Brinks ***@***.***> wrote:
*TylerBrinks* left a comment (TylerBrinks/SqlParser-cs#59)
<#59 (comment)>
Thanks for the PRs. I will take a look at all the PR activity and merge
changes in at the end of this week.
—
Reply to this email directly, view it on GitHub
<#59 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMWUXYQFER3YT2MTOULMJGD3AOOW5AVCNFSM6AAAAAB52O6W7CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDSMJQG42TIMZTGA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Author
|
Hi Tyler,
Sorry to bother you.. any news for me?
Thanks in advance
…On Tue, May 27, 2025 at 9:08 AM Luigi Esposito ***@***.***> wrote:
Thanks Tyler.
On Tue, May 27, 2025 at 1:21 AM Tyler Brinks ***@***.***>
wrote:
> *TylerBrinks* left a comment (TylerBrinks/SqlParser-cs#59)
> <#59 (comment)>
>
> Thanks for the PRs. I will take a look at all the PR activity and merge
> changes in at the end of this week.
>
> —
> Reply to this email directly, view it on GitHub
> <#59 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AMWUXYQFER3YT2MTOULMJGD3AOOW5AVCNFSM6AAAAAB52O6W7CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDSMJQG42TIMZTGA>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
Owner
|
Looking through the Rust project, the current main branch has a widely accepted suite of passing tests that contradict most of the AS changes in this PR. I don't disagree that some dialects may need to handle the keyword differently, but these changes deviate from the accepted dialect tests for both projects. I'd suggest opening a dialog with the Rust project team (which I contribute to) to discuss whether there is indeed an issue, and if so with which dialect. |
Author
|
Hi Tyller,
The issue anyway is that AS keyword raise exception on Oracle DBMS.
The solution I proposed is simply to check is that AS keyword was present
on the original SQL statement.
If you have or think to other solution I am open to it
Regards
Luigi
…On Thu, Jun 5, 2025 at 4:17 AM Tyler Brinks ***@***.***> wrote:
*TylerBrinks* left a comment (TylerBrinks/SqlParser-cs#59)
<#59 (comment)>
Looking through the Rust project, the current main branch has a widely
accepted suite of passing tests that contradict most of the AS changes in
this PR. I don't disagree that some dialects may need to handle the keyword
differently, but these changes deviate from the accepted dialect tests for
both projects. I'd suggest opening a dialog with the Rust project team
(which I contribute to) to discuss whether there is indeed an issue, and if
so with which dialect.
For example,
https://github.com/apache/datafusion-sqlparser-rs/blob/5327f0ce132e12de71db7d03711397c5ac6c0031/tests/sqlparser_snowflake.rs#L1035
—
Reply to this email directly, view it on GitHub
<#59 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMWUXYSH2I7PDSW5KACJ5TD3B6SEDAVCNFSM6AAAAAB52O6W7CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDSNBSGUZTANJSGU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Author
|
Hi Tyler,
I am using Generic dialect for Oracle which is not the right thing but
unfortunately I didn't find a way to create a dedicated
dialect class and override the AS added by default.
Probably the Rust team will have same issue if they try to check SQL
statement generated on Oracle.
Regards
Luigi
…On Thu, Jun 5, 2025 at 1:53 PM Luigi Esposito ***@***.***> wrote:
Hi Tyller,
The issue anyway is that AS keyword raise exception on Oracle DBMS.
The solution I proposed is simply to check is that AS keyword was present
on the original SQL statement.
If you have or think to other solution I am open to it
Regards
Luigi
On Thu, Jun 5, 2025 at 4:17 AM Tyler Brinks ***@***.***>
wrote:
> *TylerBrinks* left a comment (TylerBrinks/SqlParser-cs#59)
> <#59 (comment)>
>
> Looking through the Rust project, the current main branch has a widely
> accepted suite of passing tests that contradict most of the AS changes in
> this PR. I don't disagree that some dialects may need to handle the keyword
> differently, but these changes deviate from the accepted dialect tests for
> both projects. I'd suggest opening a dialog with the Rust project team
> (which I contribute to) to discuss whether there is indeed an issue, and if
> so with which dialect.
>
> For example,
>
> https://github.com/apache/datafusion-sqlparser-rs/blob/5327f0ce132e12de71db7d03711397c5ac6c0031/tests/sqlparser_snowflake.rs#L1035
>
> —
> Reply to this email directly, view it on GitHub
> <#59 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AMWUXYSH2I7PDSW5KACJ5TD3B6SEDAVCNFSM6AAAAAB52O6W7CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDSNBSGUZTANJSGU>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This solves issue #58