Commit ed805bf
Allow reading Parquet files without explicit projection
Currently, `ParquetReader` requires `ReaderOptions::projection` to be set, otherwise it returns an error. This change allows the reader to infer the schema from the Parquet file metadata if the projection is not provided.
- Modified `src/iceberg/parquet/parquet_reader.cc` to fallback to inferring schema from the file if `projection` is null.
- Added `src/iceberg/test/parquet_reader_no_projection_test.cc` to verify the fix.
- Used `ArrowSchemaGuard` to prevent memory leaks when handling Arrow C schemas.
Co-authored-by: wgtmac <4684607+wgtmac@users.noreply.github.com>1 parent 346f13d commit ed805bf
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
0 commit comments