in de/cli.py [0:0]
def pyarrow_has_cdc():
# check that pyarrow is compoiled with cdc support
with tempfile.TemporaryDirectory() as temp_dir:
temp_dir = Path(temp_dir)
table = pa.table({"id": [1, 2, 3, 4, 5]})
try:
pq.write_table(
table, temp_dir / "test.parquet", use_content_defined_chunking=True
)
except TypeError:
return False
return True