From c976fe542a0dee8473e34d65a4e89843a22b6811 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 7 Feb 2024 22:52:37 +0000 Subject: [PATCH 1/3] fix(deps): update dependency sqlglot to v21 --- poetry.lock | 10 +++++----- pyproject.toml | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/poetry.lock b/poetry.lock index 4436f5975738..6c99f080e3d4 100644 --- a/poetry.lock +++ b/poetry.lock @@ -6484,17 +6484,17 @@ sqlalchemy = ">=1.0.0" [[package]] name = "sqlglot" -version = "20.8.0" +version = "21.0.1" description = "An easily customizable SQL parser and transpiler" optional = false python-versions = ">=3.7" files = [ - {file = "sqlglot-20.8.0-py3-none-any.whl", hash = "sha256:cb73b81a26da462c34b12b98cf193d679d4b5693703d309db236d9784cef60bb"}, - {file = "sqlglot-20.8.0.tar.gz", hash = "sha256:5636e97fab9efdb4a8690c0e32bbd2d657fe91eb650f10e913a56b4bd979faef"}, + {file = "sqlglot-21.0.1-py3-none-any.whl", hash = "sha256:eed0f1b1506e25e34d91a24eb8c90eb078ec2dcee9e541d1fbc75f0e55e0f543"}, + {file = "sqlglot-21.0.1.tar.gz", hash = "sha256:747cc1cc1b69024bbce8e38581115bf0888fb6748cbad6d09f8153fc1dc82af8"}, ] [package.extras] -dev = ["autoflake", "black", "duckdb (>=0.6)", "isort", "maturin (>=1.4,<2.0)", "mypy (>=0.990)", "pandas", "pdoc", "pre-commit", "pyspark", "python-dateutil", "types-python-dateutil"] +dev = ["duckdb (>=0.6)", "maturin (>=1.4,<2.0)", "mypy", "pandas", "pdoc", "pre-commit", "pyspark", "python-dateutil", "ruff", "types-python-dateutil", "typing-extensions"] rs = ["sqlglotrs (==0.1.0)"] [[package]] @@ -7445,4 +7445,4 @@ visualization = ["graphviz"] [metadata] lock-version = "2.0" python-versions = "^3.9" -content-hash = "3e9fad9badab8b70856437d3bd009797e7910bb8bfd358960f072593249a2af6" +content-hash = "f5d82772af26d262eb3df745659750bd76602bfaaea7e0b7799486a76b3e3ceb" diff --git a/pyproject.toml b/pyproject.toml index 62bd330ed647..8bebb366c760 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,7 +48,7 @@ pyarrow-hotfix = ">=0.4,<1" python-dateutil = ">=2.8.2,<3" pytz = ">=2022.7" rich = ">=12.4.4,<14" -sqlglot = ">=18.12.0,<=20.11" +sqlglot = ">=18.12.0,<=21.0.1" toolz = ">=0.11,<1" typing-extensions = ">=4.3.0,<5" black = { version = ">=22.1.0,<25", optional = true } From db0fdf2f643a7c236b2f1ce8fdc0d41e33a2e19a Mon Sep 17 00:00:00 2001 From: Phillip Cloud <417981+cpcloud@users.noreply.github.com> Date: Thu, 8 Feb 2024 05:30:09 -0500 Subject: [PATCH 2/3] chore(deps): relock --- requirements-dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 4cf8ab14dfef..dcf0f12ef5c5 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -242,7 +242,7 @@ sqlalchemy-exasol==4.6.3 ; python_version >= "3.9" and python_version < "4.0" sqlalchemy-risingwave==1.0.0 ; python_version >= "3.9" and python_version < "4.0" sqlalchemy-views==0.3.2 ; python_version >= "3.9" and python_version < "4.0" sqlalchemy==1.4.51 ; python_version >= "3.9" and python_version < "4.0" -sqlglot==20.8.0 ; python_version >= "3.9" and python_version < "4.0" +sqlglot==21.0.1 ; python_version >= "3.9" and python_version < "4.0" stack-data==0.6.3 ; python_version >= "3.9" and python_version < "4.0" statsmodels==0.14.1 ; python_version >= "3.10" and python_version < "3.13" stdlib-list==0.10.0 ; python_version >= "3.9" and python_version < "4.0" From 109e59b5ba37544ad5a11fbb995eff92cf499b58 Mon Sep 17 00:00:00 2001 From: Phillip Cloud <417981+cpcloud@users.noreply.github.com> Date: Thu, 8 Feb 2024 05:38:22 -0500 Subject: [PATCH 3/3] chore(trino): regen sql --- .../snapshots/test_sql/test_union_aliasing/trino/out.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ibis/backends/tests/snapshots/test_sql/test_union_aliasing/trino/out.sql b/ibis/backends/tests/snapshots/test_sql/test_union_aliasing/trino/out.sql index beed99d33761..8dd0e17e3ea2 100644 --- a/ibis/backends/tests/snapshots/test_sql/test_union_aliasing/trino/out.sql +++ b/ibis/backends/tests/snapshots/test_sql/test_union_aliasing/trino/out.sql @@ -16,8 +16,8 @@ WITH t0 AS ( t1.field_of_study AS field_of_study, t1.years AS years, t1.degrees AS degrees, - FIRST_VALUE(t1.degrees) OVER (PARTITION BY t1.field_of_study ORDER BY t1.years ASC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) AS earliest_degrees, - LAST_VALUE(t1.degrees) OVER (PARTITION BY t1.field_of_study ORDER BY t1.years ASC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) AS latest_degrees + ARBITRARY(t1.degrees) OVER (PARTITION BY t1.field_of_study ORDER BY t1.years ASC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) AS earliest_degrees, + ARBITRARY(t1.degrees) OVER (PARTITION BY t1.field_of_study ORDER BY t1.years ASC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) AS latest_degrees FROM t1 ), t3 AS ( SELECT