Skip to content

Commit

Permalink
test: add MapLength test
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Feb 12, 2023
1 parent a7ad1db commit 6752399
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ibis/backends/tests/test_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,3 +218,8 @@ def test_map_create_table(con, tmptable):
con.create_table(tmptable, schema=ibis.schema(dict(xyz="map<string, string>")))
t = con.table(tmptable)
assert t.schema()["xyz"].is_map()


def test_map_length(con):
expr = ibis.literal(dict(a="A", b="B")).length()
assert con.execute(expr) == 2

0 comments on commit 6752399

Please sign in to comment.