-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Core,Format: Deprecate embedded manifests #11586
base: main
Are you sure you want to change the base?
Conversation
77138b8
to
bfa9560
Compare
/** | ||
* Constructor with embedded manifests | ||
* | ||
* @deprecated since 1.8.0, will be removed 1.9.0 or 2.0.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @deprecated since 1.8.0, will be removed 1.9.0 or 2.0.0 | |
* @deprecated since 1.8.0, will be removed in 1.9.0 |
@@ -81,6 +84,9 @@ static void toJson(Snapshot snapshot, JsonGenerator generator) throws IOExceptio | |||
// write just the location. manifests should not be embedded in JSON along with a list | |||
generator.writeStringField(MANIFEST_LIST, manifestList); | |||
} else { | |||
LOG.warn( | |||
"Support for embedded manifests are deprecated since Java 1.8.0, will be removed in either 1.9.0 or 2.0.0"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Support for embedded manifests are deprecated since Java 1.8.0, will be removed in either 1.9.0 or 2.0.0"); | |
"Support for embedded manifests is deprecated since Iceberg 1.8.0 and will be removed in 2.0.0"); |
@@ -158,6 +164,9 @@ static Snapshot fromJson(JsonNode node) { | |||
manifestList); | |||
|
|||
} else { | |||
LOG.warn( | |||
"Support for embedded manifests are deprecated since Java 1.8.0, will be removed in either 1.9.0 or 2.0.0"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Support for embedded manifests are deprecated since Java 1.8.0, will be removed in either 1.9.0 or 2.0.0"); | |
"Support for embedded manifests is deprecated since Iceberg 1.8.0 and will be removed in 2.0.0"); |
bfa9560
to
f4903e3
Compare
f4903e3
to
bc2f291
Compare
LOG.warn( | ||
"Support for embedded manifests are deprecated since Iceberg 1.8.0, will be removed in either 1.9.0 or 2.0.0"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, I'm a bit concerned about deprecating the ability to read embedded manifests.
I certainly think it makes sense to stop writing them, but there may still be some v1 tables out there that we don't want to break reads on those in a later Iceberg version.
@@ -81,6 +84,9 @@ static void toJson(Snapshot snapshot, JsonGenerator generator) throws IOExceptio | |||
// write just the location. manifests should not be embedded in JSON along with a list | |||
generator.writeStringField(MANIFEST_LIST, manifestList); | |||
} else { | |||
LOG.warn( | |||
"Support for embedded manifests are deprecated since Iceberg 1.8.0, will be removed in either 1.9.0 or 2.0.0"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question: do we plan to go from 1.9.0 to 2.0.0, instead of 1.10.0?
The embedded manifests are not used outside of the company where Iceberg found its inception. I think it is a good thing to officially deprecate this field, and be able to remove the
DummyFileIO
from the Java codebase at some point.