stevenzwu commented on issue #9597:
URL: https://github.com/apache/iceberg/issues/9597#issuecomment-1939781534

   Regarding the `InputFile`, we can serialize the `DataFile` using existing 
`ContentFileParser`
   ```
     private StaticDataTask(
         InputFile metadata, Schema tableSchema, Schema projectedSchema, 
StructLike[] rows) {
       this.tableSchema = tableSchema;
       this.projectedSchema = projectedSchema;
       this.metadataFile =
           DataFiles.builder(PartitionSpec.unpartitioned())
               .withInputFile(metadata)
               .withRecordCount(rows.length)
               .withFormat(FileFormat.METADATA)
               .build();
       this.rows = rows;
     }
   ```
   
   We can add a new package private constructor
   ```
   StaticDataTask(DataFile metadataFile, Schema tableSchema, Schema 
projectedSchema, StructLike[] rows)
   ```


-- 
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-unsubscr...@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to