Skip to content

Commit

Permalink
fix(deps): update dependency sqlglot to >=23.4,<23.14 (#9118)
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored May 4, 2024
1 parent ea8e718 commit d8119fb
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 11 deletions.
8 changes: 8 additions & 0 deletions ibis/backends/sql/datatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,14 @@ def _from_sqlglot_TIMESTAMPLTZ(cls, scale=None) -> dt.Timestamp:
nullable=cls.default_nullable,
)

@classmethod
def _from_sqlglot_TIMESTAMPNTZ(cls, scale=None) -> dt.Timestamp:
return dt.Timestamp(
timezone=None,
scale=cls.default_temporal_scale if scale is None else int(scale.this.this),
nullable=cls.default_nullable,
)

@classmethod
def _from_sqlglot_INTERVAL(
cls, precision_or_span: sge.IntervalSpan | None = None
Expand Down
5 changes: 0 additions & 5 deletions ibis/backends/tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,11 +292,6 @@ def test_create_table_from_schema(con, new_schema, temp_table):
"be switched from using atexit to weakref.finalize",
)
@mark.notimpl(["trino", "druid"], reason="doesn't implement temporary tables")
@mark.never(
["mssql"],
reason="mssql supports support temporary tables through naming conventions",
raises=PyODBCProgrammingError,
)
@mark.notimpl(["exasol"], reason="Exasol does not support temporary tables")
@pytest.mark.notimpl(
["impala", "pyspark"],
Expand Down
8 changes: 4 additions & 4 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 @@ -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.13"
sqlglot = ">=23.4,<23.14"
toolz = ">=0.11,<1"
typing-extensions = ">=4.3.0,<5"
black = { version = ">=22.1.0,<25", 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 @@ -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.29 ; python_version >= "3.10" and python_version < "3.13"
sqlglot==23.12.2 ; python_version >= "3.9" and python_version < "4.0"
sqlglot==23.13.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"
Expand Down

0 comments on commit d8119fb

Please sign in to comment.