You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "Zouxxyy (via GitHub)" <gi...@apache.org> on 2023/07/27 14:10:32 UTC

[GitHub] [hudi] Zouxxyy commented on a diff in pull request #9300: [HUDI-6599] Fix compile errors with JDK11

Zouxxyy commented on code in PR #9300:
URL: https://github.com/apache/hudi/pull/9300#discussion_r1276340227


##########
hudi-spark-datasource/hudi-spark/src/test/scala/org/apache/hudi/functional/TestRecordLevelIndex.scala:
##########
@@ -578,7 +579,7 @@ class TestRecordLevelIndex extends HoodieSparkClientTestBase {
 
   private def getWriteConfig(hudiOpts: Map[String, String]): HoodieWriteConfig = {
     val props = new Properties()
-    props.putAll(JavaConverters.mapAsJavaMapConverter(hudiOpts).asJava)
+    hudiOpts.foreach { case (k, v) => props.setProperty(k, v) }

Review Comment:
   see https://github.com/apache/spark/pull/25738



-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org