rdblue commented on code in PR #6755:
URL: https://github.com/apache/iceberg/pull/6755#discussion_r1097913008
##########
spark/v3.3/spark/src/main/java/org/apache/iceberg/spark/SparkWriteConf.java:
##########
@@ -192,6 +194,14 @@ public Map<String, String> extraSnapshotMetadata() {
}
});
+ final Iterator<Tuple2<String, String>> it =
sessionConf.getAll().iterator();
+ while (it.hasNext()) {
Review Comment:
Rather than using Scala objects, which are awkward in Java, we like to use
Scala's conversions to get Java objects:
```java
import scala.collection.JavaConverters;
Map<String, String> javaMap =
JavaConverters.mapAsJavaMapConverter(sessionConf.getAll()).asJava();
```
--
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]