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

Function test_hashing_struct_scalar

python/pyarrow/tests/test_scalars.py:187–193  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

185
186
187def test_hashing_struct_scalar():
188 # GH-35360
189 a = pa.array([[{'a': 5}, {'a': 6}], [{'a': 7}, None]])
190 b = pa.array([[{'a': 7}, None]])
191 hash1 = hash(a[1])
192 hash2 = hash(b[0])
193 assert hash1 == hash2
194
195
196@pytest.mark.timezone_data

Callers

nothing calls this directly

Calls 2

hashFunction · 0.85
arrayMethod · 0.45

Tested by

no test coverage detected