Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parquet Writer: Make column descriptor public on the writer
This is so that it's possible to gather information from the column we're about to write to. That information was already present in the column but burried inside the internal of the Writer. Because the ColumnDescPtr is an Arc, it is not expensive to clone the arc and make it publicly available to the column writer. ```rust while let Ok(Some(mut col)) = writer.next_column() { let descriptor = col.descriptor(); let name = descriptor.name(); } ``` Without this patch, it's required to implement a sort of book keeping by the caller to make sure the data we're about to write to matches the column we have. With the patch, it removes the need to guess which column the code refers to.
- Loading branch information