File tree Expand file tree Collapse file tree
hudi-spark-datasource/hudi-spark/src/test/scala/org/apache/hudi Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ import org.apache.hudi.AvroConversionUtils.convertAvroSchemaToStructType
2222import org .junit .jupiter .api .Assertions .assertEquals
2323import org .junit .jupiter .api .Test
2424
25+ import scala .collection .JavaConverters .asScalaBufferConverter
26+
2527class TestHoodieRelations {
2628
2729 @ Test
@@ -43,7 +45,7 @@ class TestHoodieRelations {
4345 val (requiredAvroSchema, requiredStructSchema, _) =
4446 HoodieBaseRelation .pruneSchema(tableAvroSchema, Array (" ts" ))
4547
46- assertEquals(Seq (tableAvroSchema.getField(" ts" )), requiredAvroSchema.getFields)
48+ assertEquals(Seq (tableAvroSchema.getField(" ts" )), requiredAvroSchema.getFields.asScala )
4749 assertEquals(
4850 Seq (tableStructSchema.fields.apply(tableStructSchema.fieldIndex(" ts" ))),
4951 requiredStructSchema.fields.toSeq
You can’t perform that action at this time.
0 commit comments