info = parquetinfo(filename)
| Parameter | Description |
|---|---|
| filename | a string: Parquet file to inspect. |
| Parameter | Description |
|---|---|
| info | a nelson.io.parquet.ParquetInfo object. |
info = parquetinfo(filename) reads Parquet metadata without importing the full table data.
The returned object exposes file-level metadata such as filename, file size, number of rows, number of variables, number of row groups, row group sizes, variable names, variable types, compression, and the writer description when available.
filename = [tempdir(), 'doc_parquetinfo.parquet'];
T = table(int32([1; 2; 3]), [10; 20; 30], 'VariableNames', {'Id', 'Value'});
parquetwrite(filename, T, 'RowGroupHeights', 2);
info = parquetinfo(filename);
info.NumRows
info.VariableNames
info.RowGroups
| Version | Description |
|---|---|
| 2.0.0 | initial version |