From 72e6f7b4d6f3a44b5f18ddefc3336f3ff57b9f0a Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 6 Nov 2024 12:39:07 +0000 Subject: [PATCH] fix(deps): update dependency sqlglot to >=23.4,<25.30 (#10444) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Phillip Cloud <417981+cpcloud@users.noreply.github.com> --- ibis/backends/sql/dialects.py | 2 ++ poetry.lock | 10 +++++----- pyproject.toml | 2 +- requirements-dev.txt | 2 +- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/ibis/backends/sql/dialects.py b/ibis/backends/sql/dialects.py index 61f79adbf0bc..2e49f144ecf7 100644 --- a/ibis/backends/sql/dialects.py +++ b/ibis/backends/sql/dialects.py @@ -31,6 +31,7 @@ class Generator(_ClickHouse.Generator): sge.ArraySort: rename_func("arraySort"), sge.LogicalAnd: rename_func("min"), sge.LogicalOr: rename_func("max"), + sge.Median: rename_func("median"), } def except_op(self, expression: sge.Except) -> str: @@ -54,6 +55,7 @@ class Generator(Postgres.Generator): sge.Array: rename_func("make_array"), sge.ArrayContains: rename_func("array_has"), sge.ArraySize: rename_func("array_length"), + sge.Median: rename_func("median"), } diff --git a/poetry.lock b/poetry.lock index 199e11efb7f8..ea5a522ab6c6 100644 --- a/poetry.lock +++ b/poetry.lock @@ -7407,17 +7407,17 @@ sqlcipher = ["sqlcipher3_binary"] [[package]] name = "sqlglot" -version = "25.28.0" +version = "25.29.0" description = "An easily customizable SQL parser and transpiler" optional = false python-versions = ">=3.7" files = [ - {file = "sqlglot-25.28.0-py3-none-any.whl", hash = "sha256:01a6b76dd916c2ce39a5f808559e337600ea261873d25be0dc7f99da3d24860d"}, - {file = "sqlglot-25.28.0.tar.gz", hash = "sha256:1bfcadada28bcab873382b271ed30138597cbf8893d90cc259563f9498bd1b49"}, + {file = "sqlglot-25.29.0-py3-none-any.whl", hash = "sha256:ab79c50439d77860eb49a0e5d7e0d0b8d19024796f21dec3fd607a3d969c013b"}, + {file = "sqlglot-25.29.0.tar.gz", hash = "sha256:fcb4e2f5cb9a17ca3f003f6c165afcbe0001c0a57d477252727fef56b8f8b352"}, ] [package.extras] -dev = ["duckdb (>=0.6)", "maturin (>=1.4,<2.0)", "mypy", "pandas", "pandas-stubs", "pdoc", "pre-commit", "python-dateutil", "pytz", "ruff (==0.4.3)", "types-python-dateutil", "types-pytz", "typing-extensions"] +dev = ["duckdb (>=0.6)", "maturin (>=1.4,<2.0)", "mypy", "pandas", "pandas-stubs", "pdoc", "pre-commit", "python-dateutil", "pytz", "ruff (==0.7.2)", "types-python-dateutil", "types-pytz", "typing-extensions"] rs = ["sqlglotrs (==0.2.13)"] [[package]] @@ -8412,4 +8412,4 @@ visualization = ["graphviz"] [metadata] lock-version = "2.0" python-versions = "^3.10" -content-hash = "dec661738e546128bc9101dd5bc1de850f8415de6ee37c9fe2286a09f2f4e38d" +content-hash = "1128c8645cd185fc92d6430365d5a4fe22c8ca2c419fa75c8ed69e4bd8d26799" diff --git a/pyproject.toml b/pyproject.toml index d9b448141582..84bb4eb28f0c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,7 +41,7 @@ atpublic = ">=2.3,<6" parsy = ">=2,<3" python-dateutil = ">=2.8.2,<3" pytz = ">=2022.7" -sqlglot = ">=23.4,<25.29" +sqlglot = ">=23.4,<25.30" toolz = ">=0.11,<2" typing-extensions = ">=4.3.0,<5" numpy = { version = ">=1.23.2,<3", optional = true } diff --git a/requirements-dev.txt b/requirements-dev.txt index 397c587d5849..3c37b7f14b92 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -262,7 +262,7 @@ sortedcontainers==2.4.0 ; python_version >= "3.10" and python_version < "4.0" soupsieve==2.6 ; python_version >= "3.10" and python_version < "3.13" sphobjinv==2.3.1.1 ; python_version >= "3.10" and python_version < "3.13" sqlalchemy==2.0.36 ; python_version >= "3.10" and python_version < "4.0" -sqlglot==25.28.0 ; python_version >= "3.10" and python_version < "4.0" +sqlglot==25.29.0 ; python_version >= "3.10" and python_version < "4.0" stack-data==0.6.3 ; python_version >= "3.10" and python_version < "4.0" statsmodels==0.14.4 ; python_version >= "3.10" and python_version < "3.13" tabulate==0.9.0 ; python_version >= "3.10" and python_version < "3.13"