From 6752399634a9f8ce50ea31f6718da83f7e77f04b Mon Sep 17 00:00:00 2001 From: Phillip Cloud <417981+cpcloud@users.noreply.github.com> Date: Sun, 12 Feb 2023 08:59:59 -0500 Subject: [PATCH] test: add `MapLength` test --- ibis/backends/tests/test_map.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ibis/backends/tests/test_map.py b/ibis/backends/tests/test_map.py index 4e26fd297247..eceb6abb2638 100644 --- a/ibis/backends/tests/test_map.py +++ b/ibis/backends/tests/test_map.py @@ -218,3 +218,8 @@ def test_map_create_table(con, tmptable): con.create_table(tmptable, schema=ibis.schema(dict(xyz="map"))) 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