Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/17587#discussion_r110855414
  
    --- Diff: 
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/encoders/EncoderResolutionSuite.scala
 ---
    @@ -66,6 +68,27 @@ class EncoderResolutionSuite extends PlanTest {
         encoder.resolveAndBind(attrs).fromRow(InternalRow(InternalRow(str, 
1.toByte), 2))
       }
     
    +  test("real type doesn't match encoder schema but they are compatible: 
primitive array") {
    +    val encoder = ExpressionEncoder[PrimitiveArrayClass]
    +    val attrs = Seq('arr.array(IntegerType))
    +    val array = new GenericArrayData(Array(1, 2, 3))
    +    encoder.resolveAndBind(attrs).fromRow(InternalRow(array))
    --- End diff --
    
    I have created https://issues.apache.org/jira/browse/SPARK-20292 to track 
this


---
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]

Reply via email to