Skip to content

Commit 44c4de8

Browse files
fix(deps): update dependency sqlglot to >=23.4,<25.22 (#10109)
Co-authored-by: Phillip Cloud <[email protected]>
1 parent 9c8aea1 commit 44c4de8

File tree

8 files changed

+192
-151
lines changed

8 files changed

+192
-151
lines changed

ibis/backends/clickhouse/tests/test_datatypes.py

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import hypothesis.strategies as st
55
import pytest
66
import sqlglot as sg
7-
import sqlglot.expressions as sge
87
from packaging.version import parse as vparse
98
from pytest import param
109

@@ -311,16 +310,5 @@ def test_type_roundtrip(ibis_type):
311310

312311

313312
def test_arrays_nullable():
314-
# if dtype.nullable and not (dtype.is_map() or dtype.is_array()):
315313
sge_type = ClickHouseType.from_ibis(dt.Array("float"))
316-
typecode = sge.DataType.Type
317-
318-
assert sge_type == sge.DataType(
319-
this=typecode.ARRAY,
320-
expressions=[
321-
sge.DataType(
322-
this=typecode.NULLABLE, expressions=[sge.DataType(this=typecode.DOUBLE)]
323-
)
324-
],
325-
nested=True,
326-
)
314+
assert sge_type.sql("clickhouse") == "Array(Nullable(Float64))"

ibis/backends/sql/compilers/datafusion.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,5 +505,8 @@ def visit_GroupConcat(self, op, *, arg, sep, where, order_by):
505505
def visit_ArrayFlatten(self, op, *, arg):
506506
return self.if_(arg.is_(NULL), NULL, self.f.flatten(arg))
507507

508+
def visit_RandomUUID(self, op, **kw):
509+
return self.f.anon.uuid()
510+
508511

509512
compiler = DataFusionCompiler()

0 commit comments

Comments
 (0)