chenjunjiedada opened a new pull request #718: Update projection in addedFiles 
to support appending
URL: https://github.com/apache/incubator-iceberg/pull/718
 
 
   Sometimes we need to append data files from an existing table like below:
   ```java
       Iterator<DataFile> datafiles = 
sourceTable.currentSnapshot().addedFiles().iterator();
       AppendFiles appendFiles = targetTable.newAppend();
       while (datafiles.hasNext()) {
         appendFiles.appendFile(datafiles.next());
       }
   ```
   
    The `addedFiles` read from `Snapshot`  has a projection while the schema 
from Avro writer doesn't have such projection and thus leads to error.
   
   This PR enforces the manifest reader to do full columns projection to fix 
the problem.
   
   
   
   
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to