mgaido91 commented on a change in pull request #24405: [SPARK-27506][SQL] Allow 
deserialization of Avro data using compatible schemas
URL: https://github.com/apache/spark/pull/24405#discussion_r304789178
 
 

 ##########
 File path: 
external/avro/src/test/scala/org/apache/spark/sql/avro/AvroFunctionsSuite.scala
 ##########
 @@ -147,10 +147,55 @@ class AvroFunctionsSuite extends QueryTest with 
SharedSQLContext with SQLTestUti
       val df = Seq("one", "two", "three", "four").map(generateBinary(_, 
simpleSchema))
         .toDF()
         .withColumn("value",
-          functions.from_avro(col("value"), simpleSchema))
+          functions.from_avro(col("value"), simpleSchema, None))
 
       assert(df.queryExecution.executedPlan.isInstanceOf[LocalTableScanExec])
       assert(df.collect().map(_.get(0)) === Seq(Row("one"), Row("two"), 
Row("three"), Row("four")))
     }
   }
+
+  test("roundtrip in to_avro and from_avro with different compatible schemas") 
{
 
 Review comment:
   please add the JIRA id to the test case string

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to