aucahuasi commented on a change in pull request #11257: URL: https://github.com/apache/arrow/pull/11257#discussion_r718684786
########## File path: python/pyarrow/tests/test_compute.py ########## @@ -2217,3 +2217,12 @@ def test_list_element(): result = pa.compute.list_element(lists, index) expected = pa.array([{'a': 5.6, 'b': 6}, {'a': .6, 'b': 8}], element_type) assert result.equals(expected) + + +def test_count_distinct(): + seed = datetime.now() + samples = [seed.replace(year=y) for y in range(1992, 2092)] + arr = pa.array(samples, pa.timestamp("ns")) + result = pa.compute.count_distinct(arr) + expected = pa.scalar(len(samples), type=pa.int64()) Review comment: Got it again! Thanks for the explanation @edponce ! I'll add a test for options here! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org