Skip to content

Commit

Permalink
fix(deps): update dependency sqlglot to >=22,<22.5 (#8635)
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 <[email protected]>
  • Loading branch information
renovate[bot] and cpcloud authored Mar 13, 2024
1 parent 01b3f28 commit 267f4bc
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 14 deletions.
5 changes: 1 addition & 4 deletions ibis/backends/bigquery/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,6 @@ def visit_BoundingBox(self, op, *, arg):

visit_GeoXMax = visit_GeoXMin = visit_GeoYMax = visit_GeoYMin = visit_BoundingBox

def visit_ArrayStringJoin(self, op, *, arg, sep):
return self.f.anon.array_to_string(arg, sep)

def visit_GeoSimplify(self, op, *, arg, tolerance, preserve_collapsed):
if (
not isinstance(op.preserve_collapsed, ops.Literal)
Expand Down Expand Up @@ -236,7 +233,7 @@ def visit_StrRight(self, op, *, arg, nchars):
return self.f.substr(arg, -self.f.least(self.f.length(arg), nchars))

def visit_StringJoin(self, op, *, arg, sep):
return self.f.anon.array_to_string(self.f.array(*arg), sep)
return self.f.array_to_string(self.f.array(*arg), sep)

def visit_DayOfWeekIndex(self, op, *, arg):
return self.f.mod(self.f.extract(self.v.dayofweek, arg) + 5, 7)
Expand Down
3 changes: 0 additions & 3 deletions ibis/backends/postgres/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,9 +345,6 @@ def visit_MapGet(self, op, *, arg, key, default):
def visit_MapMerge(self, op, *, left, right):
return sge.DPipe(this=left, expression=right)

def visit_ArrayStringJoin(self, op, *, arg, sep):
return self.f.anon.array_to_string(arg, sep)

def visit_TypeOf(self, op, *, arg):
typ = self.cast(self.f.pg_typeof(arg), dt.string)
return self.if_(
Expand Down
1 change: 0 additions & 1 deletion ibis/backends/sql/dialects.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ class Generator(Postgres.Generator):
TRANSFORMS = Postgres.Generator.TRANSFORMS.copy() | {
sge.ApproxDistinct: rename_func("approx_count_distinct"),
sge.Pow: rename_func("power"),
sge.ArrayJoin: rename_func("array_to_string"),
}


Expand Down
9 changes: 5 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 = ">=22,<22.4"
sqlglot = ">=22.4,<22.6"
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 @@ -235,7 +235,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.28 ; python_version >= "3.9" and python_version < "4.0"
sqlglot==22.3.1 ; python_version >= "3.9" and python_version < "4.0"
sqlglot==22.4.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.1 ; 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 267f4bc

Please sign in to comment.