Deprecate methods from footer.rs in favor of ParquetMetaDataReader#6451
Deprecate methods from footer.rs in favor of ParquetMetaDataReader#6451alamb merged 3 commits intoapache:masterfrom
ParquetMetaDataReader#6451Conversation
| } | ||
|
|
||
| #[cfg(test)] | ||
| mod tests { |
There was a problem hiding this comment.
These tests are all replicated in parquet/src/file/metadata/reader.rs
| /// to load the page index by making an object store request. | ||
| pub fn load<T: ChunkReader>(reader: &T, options: ArrowReaderOptions) -> Result<Self> { | ||
| let mut metadata = footer::parse_metadata(reader)?; | ||
| let mut metadata = ParquetMetaDataReader::new().parse_and_finish(reader)?; |
There was a problem hiding this comment.
There will be a small conflict here with #6450. I couldn't use the new API for the page indexes until the behavior change was dealt with.
| /// # See Also | ||
| /// [`decode_metadata`] for decoding the metadata from the bytes. | ||
| /// [`decode_footer`] for decoding the metadata length from the footer. | ||
| #[deprecated(since = "53.1.0", note = "Use ParquetMetaDataReader")] |
| use crate::schema::types::Type as SchemaType; | ||
|
|
||
| #[test] | ||
| fn test_parse_metadata_size_smaller_than_footer() { |
There was a problem hiding this comment.
I verified that these tests have already been ported to the reader module:
arrow-rs/parquet/src/file/metadata/reader.rs
Lines 639 to 654 in 6137e91
Yes, #6392 was monstrous (and reviewing this had to be tedious). I'll do what I can to lighten your load as we move forward. |
|
Looking very nice -- thanks @etseidl |
Which issue does this PR close?
Part of #6447
Rationale for this change
See issue
What changes are included in this PR?
Add deprecation warnings to public methods in footer.rs (
parse_metadata,decode_metadata,decode_footer) and replace usages with equivalent functions fromParquetMetaDataReader.Are there any user-facing changes?
No