
Assert that a Parquet file is structurally sound.
Source:R/parquet_integrity.R
assert_parquet_integrity.RdBuild-time gate over a Parquet artifact. Aborts when
check_parquet_integrity() reports any anomaly, so a corrupt
multi-gigabyte cube fails loudly at the moment it is written
instead of being read back truncated for months (whep#531).
Examples
path <- tempfile(fileext = ".parquet")
nanoparquet::write_parquet(data.frame(x = 1:10), path)
assert_parquet_integrity(path)
unlink(path)