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

Function _check_contains_null

python/pyarrow/parquet/core.py:52–63  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

50
51
52def _check_contains_null(val):
53 if isinstance(val, bytes):
54 for byte in val:
55 if isinstance(byte, bytes):
56 compare_to = chr(0)
57 else:
58 compare_to = 0
59 if byte == compare_to:
60 return True
61 elif isinstance(val, str):
62 return '\x00' in val
63 return False
64
65
66def _check_filters(filters, check_null_strings=True):

Callers 1

_check_filtersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected