AHuio opened a new issue, #6104:
URL: https://github.com/apache/iceberg/issues/6104

   ### Apache Iceberg version
   
   0.14.1
   
   ### Query engine
   
   Flink
   
   ### Please describe the bug 🐞
   
   > flink: 1.13.5
   > iceberg:  1.13.2 / 1.14.1
   
   When using Rewrite files action API **rewriteDataFiles()**, the new 
compressed file is generated without a corresponding manifest file, I tried 
iceberg versions 1.13.2 and 1.14.1 which has a similar problem under the 
iceberg-catalog of Hive and Hadoop. 
   
   > The Iceberg Maven dependent, table structure and code to compress the file 
using the Java API is as follows:
   ```
         <dependency>
               <groupId>org.apache.iceberg</groupId>
               <artifactId>iceberg-flink-runtime-1.13</artifactId>
   <!--            <version>0.13.2</version>-->
               <version>0.14.1</version>
           </dependency>
   ```
   ```
   name: iceberg_hive_catalog
   type: iceberg
   catalog-type: hive
   uri: thrift://xxxxx:9083
   clients: 5
   property-version: 1
   warehouse: hdfs://nameservice1/user/hive/warehouse/
   
   create table iceberg_hive_catalog.dhome_db.ods_d_base_inf_229_iceberg (
   `did` string,
   `name` string,
   `address` string,
   `did_seq`  string,
   PRIMARY KEY (did_seq) NOT ENFORCED
   ) with (
    'format-version'='2',
    'write.upsert.enabled'='true',
    'write.metadata.delete-after-commit.enabled'='true',
    'write.metadata.previous-versions-max'='5',
    'flink.rewrite.enable' = 'true',
    'flink.rewrite.parallelism' = '5',
    'flink.rewrite.target-file-size-bytes' = '536870912',
    'flink.rewrite.max-files-count' = '5'
   );
   ```
   ```
   final StreamExecutionEnvironment env = 
StreamExecutionEnvironment.getExecutionEnvironment();
   TableIdentifier identifier = TableIdentifier.of("dhome_db", 
"ods_d_base_inf_229_iceberg");
   TableLoader tableLoader = TableLoader.fromCatalog(hive_iceberg, identifier);
   tableLoader.open();
   Table table_iceberg = tableLoader.loadTable();
   
   Actions.forTable(env, table_iceberg)
                .rewriteDataFiles()
                .maxParallelism(5)
                .targetSizeInBytes(128*1024*1024)
                .execute();
   ```
   
   > The results:
   <img width="1068" alt="result" 
src="https://user-images.githubusercontent.com/20868410/199470742-abe8e600-0bd5-4c6d-838b-6a96745cd55e.PNG";>
   
   
   If there is anything wrong with the question, please correct it, thank you.
   


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