yihua commented on code in PR #11130: URL: https://github.com/apache/hudi/pull/11130#discussion_r1586988569
########## hudi-client/hudi-spark-client/src/main/scala/org/apache/hudi/AvroConversionUtils.scala: ########## @@ -18,20 +18,20 @@ package org.apache.hudi -import org.apache.avro.Schema.Type -import org.apache.avro.generic.GenericRecord -import org.apache.avro.{JsonProperties, Schema} import org.apache.hudi.HoodieSparkUtils.sparkAdapter import org.apache.hudi.avro.AvroSchemaUtils import org.apache.hudi.exception.SchemaCompatibilityException import org.apache.hudi.internal.schema.HoodieSchemaException + +import org.apache.avro.Schema.Type +import org.apache.avro.generic.GenericRecord +import org.apache.avro.{JsonProperties, Schema} import org.apache.spark.rdd.RDD import org.apache.spark.sql.catalyst.InternalRow -import org.apache.spark.sql.catalyst.encoders.RowEncoder import org.apache.spark.sql.types.{ArrayType, DataType, MapType, StructType} import org.apache.spark.sql.{Dataset, Row, SparkSession} -import scala.collection.JavaConversions._ +import scala.collection.JavaConverters._ Review Comment: The `JavaScalaConverters` is only meant to be used by Java classes, to make conversion easier in Java code. For Scala classes, it's better to use `scala.collection.JavaConverters._` as [recommended](https://www.scala-lang.org/api/2.13.x/scala/collection/JavaConverters$.html) and explicitly use `.asScala` or `.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: commits-unsubscr...@hudi.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org