Skip to content

Commit

Permalink
fix(deps): update dependency sqlglot to >=23.4,<25.22 (#10109)
Browse files Browse the repository at this point in the history
Co-authored-by: Phillip Cloud <[email protected]>
  • Loading branch information
renovate[bot] and cpcloud committed Sep 15, 2024
1 parent 9c8aea1 commit 44c4de8
Show file tree
Hide file tree
Showing 8 changed files with 192 additions and 151 deletions.
14 changes: 1 addition & 13 deletions ibis/backends/clickhouse/tests/test_datatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import hypothesis.strategies as st
import pytest
import sqlglot as sg
import sqlglot.expressions as sge
from packaging.version import parse as vparse
from pytest import param

Expand Down Expand Up @@ -311,16 +310,5 @@ def test_type_roundtrip(ibis_type):


def test_arrays_nullable():
# if dtype.nullable and not (dtype.is_map() or dtype.is_array()):
sge_type = ClickHouseType.from_ibis(dt.Array("float"))
typecode = sge.DataType.Type

assert sge_type == sge.DataType(
this=typecode.ARRAY,
expressions=[
sge.DataType(
this=typecode.NULLABLE, expressions=[sge.DataType(this=typecode.DOUBLE)]
)
],
nested=True,
)
assert sge_type.sql("clickhouse") == "Array(Nullable(Float64))"
3 changes: 3 additions & 0 deletions ibis/backends/sql/compilers/datafusion.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,5 +505,8 @@ def visit_GroupConcat(self, op, *, arg, sep, where, order_by):
def visit_ArrayFlatten(self, op, *, arg):
return self.if_(arg.is_(NULL), NULL, self.f.flatten(arg))

def visit_RandomUUID(self, op, **kw):
return self.f.anon.uuid()


compiler = DataFusionCompiler()
Loading

0 comments on commit 44c4de8

Please sign in to comment.