Skip to content

Commit

Permalink
fix(deps): update dependency sqlglot to >=23.4,<25.17 (#9907)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Phillip Cloud <417981+cpcloud@users.noreply.github.com>
  • Loading branch information
renovate[bot] and cpcloud authored Aug 23, 2024
1 parent de1595c commit 9e52edb
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
SELECT
CAST("t0"."string_col" AS Nullable(DATETIME)) AS "Cast(string_col, timestamp)"
CAST("t0"."string_col" AS Nullable(DateTime)) AS "Cast(string_col, timestamp)"
FROM "functional_alltypes" AS "t0"
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
SELECT
CAST("t0"."timestamp_col" AS DATETIME) AS "Cast(timestamp_col, !timestamp)"
CAST("t0"."timestamp_col" AS DateTime) AS "Cast(timestamp_col, !timestamp)"
FROM "functional_alltypes" AS "t0"
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
SELECT
CAST("t0"."int_col" AS DATETIME) AS "Cast(int_col, !timestamp)"
CAST("t0"."int_col" AS DateTime) AS "Cast(int_col, !timestamp)"
FROM "functional_alltypes" AS "t0"
4 changes: 3 additions & 1 deletion ibis/backends/sql/compilers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,9 @@ def if_(self, condition, true, false: sge.Expression | None = None) -> sge.If:
)

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

def _prepare_params(self, params):
result = {}
Expand Down
12 changes: 6 additions & 6 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ atpublic = ">=2.3,<6"
parsy = ">=2,<3"
python-dateutil = ">=2.8.2,<3"
pytz = ">=2022.7"
sqlglot = ">=23.4,<25.16"
sqlglot = ">=23.4,<25.17"
toolz = ">=0.11,<1"
typing-extensions = ">=4.3.0,<5"
numpy = { version = ">=1.23.2,<3", optional = true }
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,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.32 ; python_version >= "3.10" and python_version < "3.13"
sqlglot==25.15.0 ; python_version >= "3.10" and python_version < "4.0"
sqlglot==25.16.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.2 ; python_version >= "3.10" and python_version < "3.13"
tabulate==0.9.0 ; python_version >= "3.10" and python_version < "3.13"
Expand Down

0 comments on commit 9e52edb

Please sign in to comment.