Github user marmbrus commented on a diff in the pull request:
https://github.com/apache/spark/pull/9802#discussion_r45236071
--- Diff:
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/encoders/FlatEncoderSuite.scala
---
@@ -82,6 +82,16 @@ class FlatEncoderSuite extends ExpressionEncoderSuite {
new NotJavaSerializable(15),
Encoders.kryo[NotJavaSerializable].asInstanceOf[ExpressionEncoder[NotJavaSerializable]],
"kryo object serialization")
+
+ // Java encoders
+ encodeDecodeTest(
+ "hello",
+ Encoders.genericJava[String].asInstanceOf[ExpressionEncoder[String]],
--- End diff --
I'd consider using `encoderFor(...)` here just to consolidate the logic
about what the internal encoder type is.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]