From 45d0392c18a14cf99a4f9302f4ddb04d1f3deeef Mon Sep 17 00:00:00 2001 From: George Sittas Date: Fri, 18 Jul 2025 20:03:26 +0300 Subject: [PATCH] Chore!: bump sqlglot to v27.1.0 --- pyproject.toml | 2 +- tests/core/test_macros.py | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 204a1c7f3d..3ea3935c1c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,7 +23,7 @@ dependencies = [ "requests", "rich[jupyter]", "ruamel.yaml", - "sqlglot[rs]~=27.0.0", + "sqlglot[rs]~=27.1.0", "tenacity", "time-machine", "json-stream" diff --git a/tests/core/test_macros.py b/tests/core/test_macros.py index f1beeeb3b5..0e3615d6c0 100644 --- a/tests/core/test_macros.py +++ b/tests/core/test_macros.py @@ -876,12 +876,7 @@ def test_date_spine(assert_exp_eq, dialect, date_part): # Generate the expected SQL based on the dialect and date_part if dialect == "duckdb": - if date_part == "week": - interval = "(7 * INTERVAL '1' DAY)" - elif date_part == "quarter": - interval = "(90 * INTERVAL '1' DAY)" - else: - interval = f"INTERVAL '1' {date_part.upper()}" + interval = f"INTERVAL '1' {date_part.upper()}" expected_sql = f""" SELECT date_{date_part}