Skip to content

Commit 3b09679

Browse files
committed
* rolled back change causing Scala 2.13 incompatibility
1 parent 123fdea commit 3b09679

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/scala/za/co/absa/standardization/SchemaValidator.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ object SchemaValidator {
115115
fields += prefixedField
116116
}
117117
}
118-
fields
118+
fields.toSeq //has to be here for Scala 2.13 compatibility
119119
}
120120

121121
def flattenArray(field: StructField, arr: ArrayType, structPath: String): Seq[FlatField] = {
@@ -127,7 +127,7 @@ object SchemaValidator {
127127
val prefixedField = FlatField(structPath, field)
128128
arrayFields += prefixedField
129129
}
130-
arrayFields
130+
arrayFields.toSeq //has to be here for Scala 2.13 compatibility
131131
}
132132

133133
flattenStruct(schema, "")

0 commit comments

Comments
 (0)