Uh oh!
There was an error while loading. Please reload this page.
Core, Flink, Spark: Deprecate Manifest read methods which rely manifest Metadata - #15575
Conversation
…st Metadata Similar to apache#15241, this deprecates the ManifestFiles methods that rely on reading partition specs from manifest file metadata. This prepares for future integrations which use the internal reader api which does not have access to the file metadata or files which do not have metadata. Specifically this is for our Parquet Manifests works in Table Spec V4 Deprecate read(ManifestFile, FileIO) in favor of read(ManifestFile, FileIO, Map) - Deprecate readPaths(ManifestFile, FileIO) in favor of readPaths(ManifestFile, FileIO, Map) - Deprecate package-private open(ManifestFile, FileIO) - Add LOG.warn when specsById is null to surface the deprecated code path - Migrate all internal callers and tests to pass specsById explicitly
087ff9b to
38ea14eCompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
pvary
commented
Mar 10, 2026
Do we have any place where we still test the old, deprecated methods? Shall we have at least 1 call, just to check they are working? |
I can add in a test for the old path, this pr removes all the old calls (everything was in tests I think) |
stevenzwu
left a comment
There was a problem hiding this comment.
LGTM. just a couple of nit comments
| * @param manifest a ManifestFile | ||
| * @param io a FileIO | ||
| * @return a manifest reader | ||
| * @deprecated since 1.10.0, will be removed in 1.12.0; use {@link #readPaths(ManifestFile, |
There was a problem hiding this comment.
next release is 1.11.0. so it should be since 1.11.0
| } else { | ||
| LOG.warn( | ||
| "Reading partition spec from manifest file metadata is deprecated and will be " | ||
| + "removed in a future release. Pass specsById to avoid reading from file metadata: {}", |
There was a problem hiding this comment.
nit: future release --> 1.12.0 release.
singhpk234
left a comment
There was a problem hiding this comment.
LGTM too, thanks @RussellSpitzer !
Uh oh!
There was an error while loading. Please reload this page.
RussellSpitzer
commented
Mar 11, 2026
Thanks for review @pvary@singhpk234@stevenzwu and @huaxingao ! Merged |
Similar to #15241, this deprecates the ManifestFiles methods that rely on reading partition specs from manifest file metadata.
This prepares for future integrations which use the internal reader api which does not have access to the file metadata or files which do not have metadata. Specifically this is for our Parquet Manifests works in Table Spec V4
Deprecate read(ManifestFile, FileIO) in favor of read(ManifestFile, FileIO, Map)
Coded with Cursor - Claude-4.6-opus-high