RussellSpitzer commented on issue #1894:
URL: https://github.com/apache/iceberg/issues/1894#issuecomment-774307653
And here is a example
```scala
scala> spark.sql("CREATE table ice.default.part (x Int, y Int) USING iceberg
partitioned by (x) location '/Users/russellspitzer/Temp/iceberg_table'");
val df =
spark.createDataFrame(Seq((1,1),(1,2),(1,3),(2,1),(2,2),(2,3),(3,1),(3,2),(3,3))).toDF("x","y")
scala>
df.write.format("iceberg").partitionBy("x").mode("overwrite").saveAsTable("ice.default.part")
// No Error
scala>
df.write.format("iceberg").partitionBy("y").mode("overwrite").saveAsTable("ice.default.part")
// Many errors
// Caused by: java.lang.IllegalStateException: Already closed files for
partition: y=1
```
----------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]