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

Function test_hashing_struct_scalar

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

hashFunction · 0.85
arrayMethod · 0.45

Tested by

no test coverage detected