From 82a5f93e3d7aedd1c3106b1ea8dd0848175a38aa Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 19 May 2024 10:59:37 -0400 Subject: [PATCH] fix(deps): update dependency sqlglot to >=23.4,<23.17 (#9209) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Phillip Cloud <417981+cpcloud@users.noreply.github.com> --- .../test_hashbytes/sha1-test-binary/out.sql | 2 +- .../test_hashbytes/sha1-test-string/out.sql | 2 +- ibis/backends/datafusion/compiler.py | 2 +- ibis/backends/mssql/tests/test_client.py | 2 +- poetry.lock | 12 ++++++------ pyproject.toml | 2 +- requirements-dev.txt | 2 +- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/ibis/backends/bigquery/tests/unit/snapshots/test_compiler/test_hashbytes/sha1-test-binary/out.sql b/ibis/backends/bigquery/tests/unit/snapshots/test_compiler/test_hashbytes/sha1-test-binary/out.sql index 4bb7f967efac..ea59fb11a54d 100644 --- a/ibis/backends/bigquery/tests/unit/snapshots/test_compiler/test_hashbytes/sha1-test-binary/out.sql +++ b/ibis/backends/bigquery/tests/unit/snapshots/test_compiler/test_hashbytes/sha1-test-binary/out.sql @@ -1,2 +1,2 @@ SELECT - SHA(CAST('74657374' AS BYTES FORMAT 'HEX')) AS `tmp` \ No newline at end of file + SHA1(CAST('74657374' AS BYTES FORMAT 'HEX')) AS `tmp` \ No newline at end of file diff --git a/ibis/backends/bigquery/tests/unit/snapshots/test_compiler/test_hashbytes/sha1-test-string/out.sql b/ibis/backends/bigquery/tests/unit/snapshots/test_compiler/test_hashbytes/sha1-test-string/out.sql index 14d1aadd4b12..af830a35beea 100644 --- a/ibis/backends/bigquery/tests/unit/snapshots/test_compiler/test_hashbytes/sha1-test-string/out.sql +++ b/ibis/backends/bigquery/tests/unit/snapshots/test_compiler/test_hashbytes/sha1-test-string/out.sql @@ -1,2 +1,2 @@ SELECT - SHA('test') AS `tmp` \ No newline at end of file + SHA1('test') AS `tmp` \ No newline at end of file diff --git a/ibis/backends/datafusion/compiler.py b/ibis/backends/datafusion/compiler.py index b4aebd187736..0652706c3dab 100644 --- a/ibis/backends/datafusion/compiler.py +++ b/ibis/backends/datafusion/compiler.py @@ -164,7 +164,7 @@ def visit_StandardDev(self, op, *, arg, how, where): def visit_ScalarUDF(self, op, **kw): input_type = op.__input_type__ if input_type in (InputType.PYARROW, InputType.BUILTIN): - return self.f[op.__func_name__](*kw.values()) + return self.f.anon[op.__func_name__](*kw.values()) else: raise NotImplementedError( f"DataFusion only supports PyArrow UDFs: got a {input_type.name.lower()} UDF" diff --git a/ibis/backends/mssql/tests/test_client.py b/ibis/backends/mssql/tests/test_client.py index 3cfa48bdbde8..576a4c04ed93 100644 --- a/ibis/backends/mssql/tests/test_client.py +++ b/ibis/backends/mssql/tests/test_client.py @@ -19,7 +19,7 @@ ("NUMERIC(14,3)", dt.Decimal(14, 3)), ("SMALLINT", dt.int16), ("SMALLMONEY", dt.Decimal(10, 4)), - ("TINYINT", dt.int8), + ("TINYINT", dt.uint8), # Approximate numerics ("REAL", dt.float32), ("FLOAT", dt.float64), diff --git a/poetry.lock b/poetry.lock index 5ebee79d7e12..88be6475beb7 100644 --- a/poetry.lock +++ b/poetry.lock @@ -7069,18 +7069,18 @@ sqlcipher = ["sqlcipher3_binary"] [[package]] name = "sqlglot" -version = "23.14.0" +version = "23.16.0" description = "An easily customizable SQL parser and transpiler" optional = false python-versions = ">=3.7" files = [ - {file = "sqlglot-23.14.0-py3-none-any.whl", hash = "sha256:e413e761a74760918ff04548189aaf05224ba4699f16b17b3b8f86f3dca6f063"}, - {file = "sqlglot-23.14.0.tar.gz", hash = "sha256:d5e92fd7f45a5783e7fed0075e3c4d13d59338a69c11ffe0f4e99729352b3973"}, + {file = "sqlglot-23.16.0-py3-none-any.whl", hash = "sha256:e09856de19123c2adf250c28718775a5fd0880d7418cc93aa733ed55ac6ae15d"}, + {file = "sqlglot-23.16.0.tar.gz", hash = "sha256:94f46b59c47f458e085a7f20593cc690b61dd0ea45edc9bb26914411689b8dc8"}, ] [package.extras] -dev = ["duckdb (>=0.6)", "maturin (>=1.4,<2.0)", "mypy", "pandas", "pandas-stubs", "pdoc", "pre-commit", "pyspark", "python-dateutil", "ruff (==0.3.2)", "types-python-dateutil", "typing-extensions"] -rs = ["sqlglotrs (==0.2.0)"] +dev = ["duckdb (>=0.6)", "maturin (>=1.4,<2.0)", "mypy", "pandas", "pandas-stubs", "pdoc", "pre-commit", "pyspark", "python-dateutil", "ruff (==0.4.3)", "types-python-dateutil", "typing-extensions"] +rs = ["sqlglotrs (==0.2.5)"] [[package]] name = "stack-data" @@ -8080,4 +8080,4 @@ visualization = ["graphviz"] [metadata] lock-version = "2.0" python-versions = "^3.9" -content-hash = "b7f88214c3dd8ce0ee1f531ca804ec39669f5369542820bca1429c66be096b83" +content-hash = "e72857e7f3678e39e3f61178bcd23b7d38ad4294f8cc57bf444055128fb2b439" diff --git a/pyproject.toml b/pyproject.toml index cb8d9f494768..3ed78421f16d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,7 +47,7 @@ pyarrow-hotfix = ">=0.4,<1" python-dateutil = ">=2.8.2,<3" pytz = ">=2022.7" rich = ">=12.4.4,<14" -sqlglot = ">=23.4,<23.15" +sqlglot = ">=23.4,<23.17" toolz = ">=0.11,<1" typing-extensions = ">=4.3.0,<5" black = { version = ">=22.1.0,<25", optional = true } diff --git a/requirements-dev.txt b/requirements-dev.txt index 676e72a6376a..f8713ac9a9c4 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -275,7 +275,7 @@ sortedcontainers==2.4.0 ; python_version >= "3.9" and python_version < "4.0" soupsieve==2.5 ; python_version >= "3.10" and python_version < "3.13" sphobjinv==2.3.1 ; python_version >= "3.10" and python_version < "3.13" sqlalchemy==2.0.30 ; python_version >= "3.10" and python_version < "3.13" -sqlglot==23.14.0 ; python_version >= "3.9" and python_version < "4.0" +sqlglot==23.16.0 ; 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.2 ; python_version >= "3.10" and python_version < "3.13" stdlib-list==0.10.0 ; python_version >= "3.9" and python_version < "4.0"