Skip to content

Commit 9e52edb

Browse files
fix(deps): update dependency sqlglot to >=23.4,<25.17 (#9907)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Phillip Cloud <[email protected]>
1 parent de1595c commit 9e52edb

File tree

7 files changed

+14
-12
lines changed

7 files changed

+14
-12
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
SELECT
2-
CAST("t0"."string_col" AS Nullable(DATETIME)) AS "Cast(string_col, timestamp)"
2+
CAST("t0"."string_col" AS Nullable(DateTime)) AS "Cast(string_col, timestamp)"
33
FROM "functional_alltypes" AS "t0"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
SELECT
2-
CAST("t0"."timestamp_col" AS DATETIME) AS "Cast(timestamp_col, !timestamp)"
2+
CAST("t0"."timestamp_col" AS DateTime) AS "Cast(timestamp_col, !timestamp)"
33
FROM "functional_alltypes" AS "t0"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
SELECT
2-
CAST("t0"."int_col" AS DATETIME) AS "Cast(int_col, !timestamp)"
2+
CAST("t0"."int_col" AS DateTime) AS "Cast(int_col, !timestamp)"
33
FROM "functional_alltypes" AS "t0"

ibis/backends/sql/compilers/base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,9 @@ def if_(self, condition, true, false: sge.Expression | None = None) -> sge.If:
534534
)
535535

536536
def cast(self, arg, to: dt.DataType) -> sge.Cast:
537-
return sg.cast(sge.convert(arg), to=self.type_mapper.from_ibis(to), copy=False)
537+
return sge.Cast(
538+
this=sge.convert(arg), to=self.type_mapper.from_ibis(to), copy=False
539+
)
538540

539541
def _prepare_params(self, params):
540542
result = {}

poetry.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ atpublic = ">=2.3,<6"
4141
parsy = ">=2,<3"
4242
python-dateutil = ">=2.8.2,<3"
4343
pytz = ">=2022.7"
44-
sqlglot = ">=23.4,<25.16"
44+
sqlglot = ">=23.4,<25.17"
4545
toolz = ">=0.11,<1"
4646
typing-extensions = ">=4.3.0,<5"
4747
numpy = { version = ">=1.23.2,<3", optional = true }

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ sortedcontainers==2.4.0 ; python_version >= "3.10" and python_version < "4.0"
256256
soupsieve==2.6 ; python_version >= "3.10" and python_version < "3.13"
257257
sphobjinv==2.3.1.1 ; python_version >= "3.10" and python_version < "3.13"
258258
sqlalchemy==2.0.32 ; python_version >= "3.10" and python_version < "3.13"
259-
sqlglot==25.15.0 ; python_version >= "3.10" and python_version < "4.0"
259+
sqlglot==25.16.0 ; python_version >= "3.10" and python_version < "4.0"
260260
stack-data==0.6.3 ; python_version >= "3.10" and python_version < "4.0"
261261
statsmodels==0.14.2 ; python_version >= "3.10" and python_version < "3.13"
262262
tabulate==0.9.0 ; python_version >= "3.10" and python_version < "3.13"

0 commit comments

Comments
 (0)