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

Function test_compare_chunked_array_mixed

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

Source from the content-addressed store, hash-verified

1910
1911
1912def test_compare_chunked_array_mixed():
1913 arr = pa.array([1, 2, 3, 4, None])
1914 arr_chunked = pa.chunked_array([[1, 2, 3], [4, None]])
1915 arr_chunked2 = pa.chunked_array([[1, 2], [3, 4, None]])
1916
1917 expected = pa.chunked_array([[True, True, True, True, None]])
1918
1919 for left, right in [
1920 (arr, arr_chunked),
1921 (arr_chunked, arr),
1922 (arr_chunked, arr_chunked2),
1923 ]:
1924 result = pc.equal(left, right)
1925 assert result.equals(expected)
1926
1927
1928def test_arithmetic_add():

Callers

nothing calls this directly

Calls 3

chunked_arrayMethod · 0.80
equalsMethod · 0.80
arrayMethod · 0.45

Tested by

no test coverage detected