MCPcopy Create free account
hub / github.com/apache/arrow / test_count_distinct

Function test_count_distinct

python/pyarrow/tests/test_compute.py:3914–3917  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3912
3913
3914def test_count_distinct():
3915 samples = [datetime.datetime(year=y, month=1, day=1) for y in range(1992, 2092)]
3916 arr = pa.array(samples, pa.timestamp("ns"))
3917 assert pc.count_distinct(arr) == pa.scalar(len(samples), type=pa.int64())
3918
3919
3920def test_count_distinct_options():

Callers

nothing calls this directly

Calls 4

lenFunction · 0.85
datetimeMethod · 0.80
arrayMethod · 0.45
scalarMethod · 0.45

Tested by

no test coverage detected