Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix[BREAKING]: simplify from to one expression and auto expand multi … #1620

Merged
merged 1 commit into from
May 15, 2023

Conversation

tobymao
Copy link
Owner

@tobymao tobymao commented May 14, 2023

…table selects closes #1618

@tobymao tobymao force-pushed the toby/simplify_from branch from 79fa112 to 266d02a Compare May 15, 2023 03:21
@tobymao tobymao force-pushed the toby/simplify_from branch from 266d02a to b8fef06 Compare May 15, 2023 05:38
@tobymao tobymao force-pushed the toby/simplify_from branch from b8fef06 to 16adca9 Compare May 15, 2023 05:40
@tobymao tobymao force-pushed the toby/simplify_from branch from 16adca9 to 5483f4c Compare May 15, 2023 05:42
@tobymao tobymao requested review from georgesittas and barakalon May 15, 2023 05:42
@tobymao tobymao force-pushed the toby/simplify_from branch from 5483f4c to c0d8166 Compare May 15, 2023 05:46
@tobymao tobymao force-pushed the toby/simplify_from branch from c0d8166 to 5bb2c78 Compare May 15, 2023 06:14
Copy link
Collaborator

@georgesittas georgesittas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like several sections have been greatly simplified. Awesome!

I left some comments.

sqlglot/dialects/bigquery.py Outdated Show resolved Hide resolved
sqlglot/dialects/bigquery.py Outdated Show resolved Hide resolved
sqlglot/dialects/bigquery.py Show resolved Hide resolved
sqlglot/dialects/bigquery.py Show resolved Hide resolved
sqlglot/expressions.py Outdated Show resolved Hide resolved
sqlglot/generator.py Show resolved Hide resolved
sqlglot/optimizer/merge_subqueries.py Show resolved Hide resolved
sqlglot/parser.py Outdated Show resolved Hide resolved
tests/test_parser.py Show resolved Hide resolved
sqlglot/optimizer/merge_subqueries.py Show resolved Hide resolved
@georgesittas
Copy link
Collaborator

FYI @tobymao I haven't checked the tpc changes in detail, just did a first pass on the PR. I'll try to check them later.

@tobymao tobymao force-pushed the toby/simplify_from branch from 5bb2c78 to 6d7aa05 Compare May 15, 2023 15:47
@tobymao tobymao force-pushed the toby/simplify_from branch from 6d7aa05 to 4f0b4a1 Compare May 15, 2023 15:53
@tobymao tobymao force-pushed the toby/simplify_from branch from 4f0b4a1 to 080a9ed Compare May 15, 2023 15:56
Copy link
Collaborator

@georgesittas georgesittas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@tobymao tobymao merged commit 4833953 into main May 15, 2023
@tobymao tobymao deleted the toby/simplify_from branch May 15, 2023 16:03
adrianisk pushed a commit to adrianisk/sqlglot that referenced this pull request Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect join parse?
2 participants