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

    Closes #1000                                                                
                                                                                
                                                   
                                                                                
                                                                                
                                                    
     When users call `AddDataFiles` (or `ReplaceDataFilesWithDataFiles` / 
`ReplaceFiles`) with externally-written parquet files on a v3 table, reject the 
operation if `first_row_id` is not set. This mirrors      
     pyiceberg's behavior — the library cannot fabricate row IDs retroactively, 
so callers must supply them explicitly via `DataFileBuilder.FirstRowID()`.
                                                                                
                                                                                
                                                    
     ## Changes                                                                 
                                                                                
                                                    
      
     - Added validation in `validateDataFilesToAdd` to require `first_row_id` 
on format version >= 3                                                          
                                                      
     - Error message directs users to `DataFileBuilder.FirstRowID()`
     - v2 tables are unaffected  
   
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to