You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "laskoviymishka (via GitHub)" <gi...@apache.org> on 2026/02/15 22:24:17 UTC

[PR] feat: Wire V3 snapshot producer to row-lineage state [iceberg-go]

laskoviymishka opened a new pull request, #728:
URL: https://github.com/apache/iceberg-go/pull/728

   first part of https://github.com/apache/iceberg-go/issues/727


-- 
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] feat: Wire V3 snapshot producer to row-lineage state [iceberg-go]

Posted by "dttung2905 (via GitHub)" <gi...@apache.org>.
dttung2905 commented on code in PR #728:
URL: https://github.com/apache/iceberg-go/pull/728#discussion_r2818527221


##########
table/snapshot_producers.go:
##########
@@ -703,17 +703,34 @@ func (sp *snapshotProducer) commit() (_ []Update, _ []Requirement, err error) {
 		parentSnapshot = &sp.parentSnapshotID
 	}
 
+	firstRowID := int64(0)
+	var addedRows int64
+
 	out, err := sp.io.Create(manifestListFilePath)
 	if err != nil {
 		return nil, nil, err
 	}
 	defer internal.CheckedClose(out, &err)
 
-	// TODO: Implement v3 here
-	err = iceberg.WriteManifestList(sp.txn.meta.formatVersion, out,
-		sp.snapshotID, parentSnapshot, &nextSequence, 0, newManifests)
-	if err != nil {
-		return nil, nil, err
+	if sp.txn.meta.formatVersion == 3 {

Review Comment:
   Do you think we should result to use the single API `WriteManifestList` for all 3 version instead of branching out like this ?



-- 
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] feat: Wire V3 snapshot producer to row-lineage state [iceberg-go]

Posted by "laskoviymishka (via GitHub)" <gi...@apache.org>.
laskoviymishka commented on PR #728:
URL: https://github.com/apache/iceberg-go/pull/728#issuecomment-3917107042

   @zeroshade could you please take a look?
   
   I’d also like to align on the plan with @twuebi, since he originally drove the v3 implementation epic.


-- 
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] feat: Wire V3 snapshot producer to row-lineage state [iceberg-go]

Posted by "laskoviymishka (via GitHub)" <gi...@apache.org>.
laskoviymishka commented on code in PR #728:
URL: https://github.com/apache/iceberg-go/pull/728#discussion_r2818702361


##########
table/snapshot_producers.go:
##########
@@ -703,17 +703,34 @@ func (sp *snapshotProducer) commit() (_ []Update, _ []Requirement, err error) {
 		parentSnapshot = &sp.parentSnapshotID
 	}
 
+	firstRowID := int64(0)
+	var addedRows int64
+
 	out, err := sp.io.Create(manifestListFilePath)
 	if err != nil {
 		return nil, nil, err
 	}
 	defer internal.CheckedClose(out, &err)
 
-	// TODO: Implement v3 here
-	err = iceberg.WriteManifestList(sp.txn.meta.formatVersion, out,
-		sp.snapshotID, parentSnapshot, &nextSequence, 0, newManifests)
-	if err != nil {
-		return nil, nil, err
+	if sp.txn.meta.formatVersion == 3 {

Review Comment:
   this would be aligned with what other drivers do (rust / java / python)



-- 
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] feat: Wire V3 snapshot producer to row-lineage state [iceberg-go]

Posted by "zeroshade (via GitHub)" <gi...@apache.org>.
zeroshade merged PR #728:
URL: https://github.com/apache/iceberg-go/pull/728


-- 
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] feat: Wire V3 snapshot producer to row-lineage state [iceberg-go]

Posted by "laskoviymishka (via GitHub)" <gi...@apache.org>.
laskoviymishka commented on PR #728:
URL: https://github.com/apache/iceberg-go/pull/728#issuecomment-3916780787

   I think we can probably split this work and collaborate in a way that avoids overlap or conflicts.
   
   Here’s how I was thinking about sequencing row-lineage work in Go:
   
   1. Wire the V3 snapshot producer to the row-lineage state — currently in progress in #728 (foundation, append path).
   2. Enforce row-lineage invariants at the commit boundary — drafted and planned right after #728.
   3. Add integration tests for sequential commits — drafted, just not published yet.
   4. Extend support to overwrite/delete/rewrite paths — likely the trickiest part.
   5. CLI visibility + docs — follow-up polish.
   
   From what I can see, #735 seems to focus more on broader row-lineage work (read path + more complex write paths). Maybe a reasonable approach would be:
   
   1. Merge #728 first as the base.
   2. Then rebase #735 on top of it and continue with overwrite/rewrite/delete paths and the remaining gaps.
   
   If that sounds reasonable, I’m happy to keep driving 1→3, and you (@dttung2905) could take 4 (and the other remaining pieces) once #728 lands.
   
   Open to your ideas (we can park this coordination in slack if you wish)
   


-- 
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] feat: Wire V3 snapshot producer to row-lineage state [iceberg-go]

Posted by "dttung2905 (via GitHub)" <gi...@apache.org>.
dttung2905 commented on PR #728:
URL: https://github.com/apache/iceberg-go/pull/728#issuecomment-3917348767

   @zeroshade the #735 intents to cover a broader case than wiring v3 snapshot producer.  But I'm happy to get this PR 728 merged and then I can continue working on point 4 after rebasing my PR from main
   
   > I think we can probably split this work and collaborate in a way that avoids overlap or conflicts.
   > 
   > Here’s how I was thinking about sequencing row-lineage work in Go:
   > 
   > 1. Wire the V3 snapshot producer to the row-lineage state — currently in progress in [feat: Wire V3 snapshot producer to row-lineage state #728](https://github.com/apache/iceberg-go/pull/728) (foundation, append path).
   > 2. Enforce row-lineage invariants at the commit boundary — drafted and planned right after [feat: Wire V3 snapshot producer to row-lineage state #728](https://github.com/apache/iceberg-go/pull/728).
   > 3. Add integration tests for sequential commits — drafted, just not published yet.
   > 4. Extend support to overwrite/delete/rewrite paths — likely the trickiest part.
   > 5. CLI visibility + docs — follow-up polish.
   > 
   > From what I can see, #735 seems to focus more on broader row-lineage work (read path + more complex write paths). Maybe a reasonable approach would be:
   > 
   > 1. Merge [feat: Wire V3 snapshot producer to row-lineage state #728](https://github.com/apache/iceberg-go/pull/728) first as the base.
   > 2. Then rebase [Add support for row lineage in v3 #735](https://github.com/apache/iceberg-go/pull/735) on top of it and continue with overwrite/rewrite/delete paths and the remaining gaps.
   > 
   > If that sounds reasonable, I’m happy to keep driving 1→3, and you (@dttung2905) could take 4 (and the other remaining pieces) once #728 lands.
   > 
   > Open to your ideas (we can park this coordination in slack if you wish)
   
   


-- 
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] feat: Wire V3 snapshot producer to row-lineage state [iceberg-go]

Posted by "zeroshade (via GitHub)" <gi...@apache.org>.
zeroshade commented on code in PR #728:
URL: https://github.com/apache/iceberg-go/pull/728#discussion_r2819316733


##########
table/snapshot_producers.go:
##########
@@ -703,17 +703,34 @@ func (sp *snapshotProducer) commit() (_ []Update, _ []Requirement, err error) {
 		parentSnapshot = &sp.parentSnapshotID
 	}
 
+	firstRowID := int64(0)
+	var addedRows int64
+
 	out, err := sp.io.Create(manifestListFilePath)
 	if err != nil {
 		return nil, nil, err
 	}
 	defer internal.CheckedClose(out, &err)
 
-	// TODO: Implement v3 here
-	err = iceberg.WriteManifestList(sp.txn.meta.formatVersion, out,
-		sp.snapshotID, parentSnapshot, &nextSequence, 0, newManifests)
-	if err != nil {
-		return nil, nil, err
+	if sp.txn.meta.formatVersion == 3 {

Review Comment:
   For now let's keep things aligned with the other drivers and then we can do another pass for improving it later on



-- 
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