Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency sqlglot to >=22,<22.5 #8635

Merged
merged 3 commits into from
Mar 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading