Skip to content

Commit

Permalink
fix(druid): array_string_join and to_polars extra column
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Mar 12, 2024
1 parent fbfc3c1 commit 2311d4f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions ibis/backends/sql/dialects.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ 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
3 changes: 3 additions & 0 deletions ibis/backends/tests/test_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,9 @@ def test_to_pandas_batches_scalar(backend, con):


@pytest.mark.parametrize("limit", limit_no_limit)
@pytest.mark.never(
["druid"], raises=AssertionError, reason="Druid has an extra __time column"
)
def test_table_to_polars(limit, awards_players):
pl = pytest.importorskip("polars")
res = awards_players.to_polars(limit=limit)
Expand Down

0 comments on commit 2311d4f

Please sign in to comment.