dongjoon-hyun commented on code in PR #39627:
URL: https://github.com/apache/spark/pull/39627#discussion_r1072552805
##########
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/encoders/RowEncoderSuite.scala:
##########
@@ -458,4 +472,14 @@ class RowEncoderSuite extends CodegenInterpretedPlanTest {
}
}
}
+
+ test("Encoding an ArraySeq/WrappedArray in scala-2.13") {
+ val schema = new StructType()
+ .add("headers", ArrayType(new StructType()
+ .add("key", StringType)
+ .add("value", BinaryType)))
+ val encoder = RowEncoder(schema, lenient = true).resolveAndBind()
+ val data = Row(mutable.WrappedArray.make(Array(Row("key",
"value".getBytes))))
+ val row = encoder.createSerializer()(data)
+ }
Review Comment:
Thank you for adding this.
--
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]