lordk911 opened a new issue #4086:
URL: https://github.com/apache/iceberg/issues/4086
--------vesion infomation----
spark : 3.2.1
iceberg : org.apache.iceberg:iceberg-spark-runtime-3.2_2.12:0.13.0
java : 1.8
```
val catalog = new HiveCatalog()
catalog.setConf(spark.sparkContext.hadoopConfiguration)
val properties = Map("warehouse" -> "hdfs://xx", "uri" ->
"thrift://xx:9083,thrift://yy:9083").asJava
catalog.initialize("hive", properties)
val table = catalog.loadTable(TableIdentifier.of("test","aplog"))
SparkActions.get().rewriteDataFiles(table).filter(Expressions.lessThan("dtime",
lasteHour)).option("target-file-size-bytes", String.valueOf(500 * 1024 *
1024)).execute();
```
<img width="1477" alt="image"
src="https://user-images.githubusercontent.com/19989300/153427177-6836a58e-0d7a-42fa-8ed7-d061873e6f89.png">
--
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]