You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "RussellSpitzer (via GitHub)" <gi...@apache.org> on 2024/07/23 21:57:39 UTC
[PR] Core: Adds Basic Classes for Iceberg Table Version 3 [iceberg]
RussellSpitzer opened a new pull request, #10760:
URL: https://github.com/apache/iceberg/pull/10760
Fixes #10747
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Core: Adds Basic Classes for Iceberg Table Version 3 [iceberg]
Posted by "RussellSpitzer (via GitHub)" <gi...@apache.org>.
RussellSpitzer commented on PR #10760:
URL: https://github.com/apache/iceberg/pull/10760#issuecomment-2263347965
Thanks @nastra and @amogh-jahagirdar ! Let's get to work on V3 now :)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Core: Adds Basic Classes for Iceberg Table Version 3 [iceberg]
Posted by "RussellSpitzer (via GitHub)" <gi...@apache.org>.
RussellSpitzer commented on code in PR #10760:
URL: https://github.com/apache/iceberg/pull/10760#discussion_r1699026456
##########
core/src/main/java/org/apache/iceberg/ManifestLists.java:
##########
@@ -66,6 +66,9 @@ static ManifestListWriter write(
case 2:
return new ManifestListWriter.V2Writer(
manifestListFile, snapshotId, parentSnapshotId, sequenceNumber);
+ case 3:
+ return new ManifestListWriter.V3Writer(
+ manifestListFile, snapshotId, parentSnapshotId, sequenceNumber);
Review Comment:
Yeah I was figuring for now we keep things the same as between V1 and V2, also protects us a little more from inadvertently breaking V2 as we begin mucking about with V3.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Core: Adds Basic Classes for Iceberg Table Version 3 [iceberg]
Posted by "amogh-jahagirdar (via GitHub)" <gi...@apache.org>.
amogh-jahagirdar commented on PR #10760:
URL: https://github.com/apache/iceberg/pull/10760#issuecomment-2259268270
Sorry for the delay on reviewing @RussellSpitzer I'm taking a look!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Core: Adds Basic Classes for Iceberg Table Version 3 [iceberg]
Posted by "RussellSpitzer (via GitHub)" <gi...@apache.org>.
RussellSpitzer commented on code in PR #10760:
URL: https://github.com/apache/iceberg/pull/10760#discussion_r1688772674
##########
core/src/main/java/org/apache/iceberg/V3Metadata.java:
##########
@@ -0,0 +1,575 @@
+/*
Review Comment:
This is a direct copy of V2Metadata.json
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Core: Adds Basic Classes for Iceberg Table Version 3 [iceberg]
Posted by "RussellSpitzer (via GitHub)" <gi...@apache.org>.
RussellSpitzer merged PR #10760:
URL: https://github.com/apache/iceberg/pull/10760
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Core: Adds Basic Classes for Iceberg Table Version 3 [iceberg]
Posted by "RussellSpitzer (via GitHub)" <gi...@apache.org>.
RussellSpitzer commented on PR #10760:
URL: https://github.com/apache/iceberg/pull/10760#issuecomment-2258539702
> Thanks @RussellSpitzer. I looked at the changes. They look good to me. Is the plan to add V3 specific changes in later PRs?
Yes! If you check on the right, there is a link to the Project where i'm trying to collect other required changes. I wanted to make sure we had all the base classes setup so folks can start working on the specific new implementations.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Core: Adds Basic Classes for Iceberg Table Version 3 [iceberg]
Posted by "amogh-jahagirdar (via GitHub)" <gi...@apache.org>.
amogh-jahagirdar commented on code in PR #10760:
URL: https://github.com/apache/iceberg/pull/10760#discussion_r1697664698
##########
core/src/main/java/org/apache/iceberg/ManifestWriter.java:
##########
@@ -217,6 +217,79 @@ public void close() throws IOException {
writer.close();
}
+ static class V3Writer extends ManifestWriter<DataFile> {
+ private final V3Metadata.IndexedManifestEntry<DataFile> entryWrapper;
+
+ V3Writer(PartitionSpec spec, EncryptedOutputFile file, Long snapshotId) {
Review Comment:
Oh nvm, forgot about inheritance of the snapshot ID
##########
core/src/test/java/org/apache/iceberg/TestMetadataTableScans.java:
##########
@@ -1574,7 +1573,7 @@ public void testPositionDeletesWithBaseTableFilterNot() {
@TestTemplate
public void testPositionDeletesResiduals() {
- assumeThat(formatVersion).as("Position deletes supported only for v2 tables").isEqualTo(2);
+ assumeThat(formatVersion).as("Position deletes not supported by V1 Tables").isNotEqualTo(1);
Review Comment:
Nit: Position deletes *are* not supported .. .
##########
core/src/main/java/org/apache/iceberg/ManifestLists.java:
##########
@@ -66,6 +66,9 @@ static ManifestListWriter write(
case 2:
return new ManifestListWriter.V2Writer(
manifestListFile, snapshotId, parentSnapshotId, sequenceNumber);
+ case 3:
+ return new ManifestListWriter.V3Writer(
+ manifestListFile, snapshotId, parentSnapshotId, sequenceNumber);
Review Comment:
Something I've been thinking about is abstracting away the different fields required for V1/V2/V3 without having to have a separate writer implementation for each. But it may not be worth it since the number of table format versions doesn't change too much and that sort of refactoring can happen down the line if it's determined to be needed (since these classes are package private, not in the public API I think there's that flexibility)
##########
core/src/main/java/org/apache/iceberg/ManifestWriter.java:
##########
@@ -217,6 +217,79 @@ public void close() throws IOException {
writer.close();
}
+ static class V3Writer extends ManifestWriter<DataFile> {
+ private final V3Metadata.IndexedManifestEntry<DataFile> entryWrapper;
+
+ V3Writer(PartitionSpec spec, EncryptedOutputFile file, Long snapshotId) {
Review Comment:
Shouldn't it be a `long` primitive snapshotID?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org