Skip to content

Chore:! bump sqlglot to v22.0.1 (got rid of Subqueryable, Unionable)#2174

Merged
georgesittas merged 6 commits intomainfrom
jo/bump_sqlglot_21_3_0
Feb 26, 2024
Merged

Chore:! bump sqlglot to v22.0.1 (got rid of Subqueryable, Unionable)#2174
georgesittas merged 6 commits intomainfrom
jo/bump_sqlglot_21_3_0

Conversation

@georgesittas
Copy link
Contributor

@georgesittas georgesittas commented Feb 22, 2024

This PR is early in anticipation of tobymao/sqlglot@2507aa2 (TL;DR merged Subqueryable and Unionable into Query).

Initial motivation was to fix #2137 but after discussion we decided it would be generally good to consolidate these two classes. I haven't fully investigated what this means for SQLMesh - these changes were made using search-and-replace, but I intend to audit them more closely soon. I verified that at least make style && make fast-test passed locally.

  • Add test for 2137 (not sure if it runs yet - I imagine we may not be expecting a wrapped query in some places, so there may be more syntax errors down the line)
  • Bump SQLGlot version

@georgesittas georgesittas requested review from a team, izeigerman and tobymao February 22, 2024 23:23
Copy link
Contributor

@tobymao tobymao left a comment

Choose a reason for hiding this comment

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

probably a major for sqlglot

@georgesittas
Copy link
Contributor Author

probably a major for sqlglot

Sure, can edit the title whenever we bump

@georgesittas georgesittas force-pushed the jo/bump_sqlglot_21_3_0 branch from 24b49b6 to 9328aa7 Compare February 26, 2024 17:40
@georgesittas georgesittas changed the title Chore:! bump sqlglot to v21.3.0 (got rid of Subqueryable, Unionable) Chore:! bump sqlglot to v22.0.0 (got rid of Subqueryable, Unionable) Feb 26, 2024
@georgesittas georgesittas changed the title Chore:! bump sqlglot to v22.0.0 (got rid of Subqueryable, Unionable) Chore:! bump sqlglot to v22.0.1 (got rid of Subqueryable, Unionable) Feb 26, 2024
@georgesittas georgesittas force-pushed the jo/bump_sqlglot_21_3_0 branch from 5035e49 to b2f8f78 Compare February 26, 2024 23:06
@georgesittas georgesittas merged commit 3b970bd into main Feb 26, 2024
@georgesittas georgesittas deleted the jo/bump_sqlglot_21_3_0 branch February 26, 2024 23:33
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.

Parenthesis wrapping the last statement in SQL is valid but not supported

2 participants