Skip to content

Chore!: bump sqlglot v30.2.1#5755

Merged
georgesittas merged 2 commits into
mainfrom
jo/bump_sqlglot_to_30_2_0
Apr 2, 2026
Merged

Chore!: bump sqlglot v30.2.1#5755
georgesittas merged 2 commits into
mainfrom
jo/bump_sqlglot_to_30_2_0

Conversation

@georgesittas

@georgesittas georgesittas commented Apr 1, 2026

Copy link
Copy Markdown
Collaborator

Description

Test Plan

Checklist

  • I have run make style and fixed any issues
  • I have added tests for my changes (if applicable)
  • All existing tests pass (make fast-test)
  • My commits are signed off (git commit -s) per the DCO
Signed-off-by: George Sittas <giwrgos.sittas@gmail.com>
@georgesittas georgesittas force-pushed the jo/bump_sqlglot_to_30_2_0 branch from f9a72b1 to 2ffd03c Compare April 2, 2026 09:58
Signed-off-by: George Sittas <giwrgos.sittas@gmail.com>
@georgesittas georgesittas force-pushed the jo/bump_sqlglot_to_30_2_0 branch from abebd57 to 1c1f32a Compare April 2, 2026 11:52
Comment thread tests/dbt/test_config.py
assert (
kind.merge_filter.sql(dialect=model.dialect) # type: ignore
== """55 > "__MERGE_SOURCE__"."b" AND "__MERGE_TARGET__"."session_start" > CURRENT_DATE + INTERVAL '7'"""
== """55 > "__MERGE_SOURCE__"."b" AND "__MERGE_TARGET__"."session_start" > CURRENT_DATE + INTERVAL '7 DAY'"""

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

The previous SQL was incorrect - there was a bug in the postgres dialect for a long time where we would drop the unit. CURRENT_DATE + INTERVAL '7' means add 7 seconds to the current date, whereas the actual filter had "add 7 days to the current date".

I fixed this upstream, hence the bump to v30.2.1.

@georgesittas georgesittas changed the title Chore!: bump sqlglot v30.2.0 Apr 2, 2026
@georgesittas georgesittas merged commit 41a9d29 into main Apr 2, 2026
31 checks passed
@georgesittas georgesittas deleted the jo/bump_sqlglot_to_30_2_0 branch April 2, 2026 12:15
WhammyLeaf pushed a commit to trygforsikring/sqlmesh that referenced this pull request May 15, 2026
Signed-off-by: George Sittas <giwrgos.sittas@gmail.com>
fresioAS pushed a commit to fresioAS/sqlmesh that referenced this pull request May 31, 2026
Signed-off-by: George Sittas <giwrgos.sittas@gmail.com>
Signed-off-by: fresioAS <andreas.fredhoi@three60energy.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants