smaheshwar-pltr commented on issue #17989:
URL: https://github.com/apache/iceberg/issues/17989#issuecomment-5564807285
Example reproduction below. It's a bit heavy; there may have been an easier
repro here but couldn't find one easily.
```java
@TestTemplate
public void testConcurrentCompactionPreservesEncryptionKeys() {
// Partitioned encrypted table: one file per partition => many file
groups for rewrite
sql("DROP TABLE %s", tableName);
sql(
"CREATE TABLE %s (id bigint, data string) USING iceberg PARTITIONED
BY (id) "
+ "TBLPROPERTIES ('encryption.key-id'='%s',
'format-version'='3')",
tableName, UnitestKMS.MASTER_KEY_NAME1);
sql("INSERT INTO %s SELECT id, 'v' FROM (SELECT explode(sequence(0,
511)) AS id)", tableName);
validationCatalog.initialize(catalogName, catalogConfig);
Table table = validationCatalog.loadTable(tableIdent);
SparkActions.get(spark)
.rewriteDataFiles(table)
.binPack()
.option("partial-progress.enabled", "true")
.option("partial-progress.max-commits", "2000")
.option("max-concurrent-file-group-rewrites", "128")
.option("rewrite-all", "true")
.execute();
assertThat(currentDataFiles(validationCatalog.loadTable(tableIdent))).isNotEmpty();
}
```
--
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]