spark-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [spark] gengliangwang commented on a change in pull request #26780: [SPARK-27506][SQL] Allow deserialization of Avro data using compatible schemas
Date Wed, 11 Dec 2019 05:57:32 GMT
gengliangwang commented on a change in pull request #26780: [SPARK-27506][SQL] Allow deserialization
of Avro data using compatible schemas 
URL: https://github.com/apache/spark/pull/26780#discussion_r356414887
 
 

 ##########
 File path: external/avro/src/main/scala/org/apache/spark/sql/avro/functions.scala
 ##########
 @@ -45,9 +45,10 @@ object functions {
   }
 
   /**
-   * Converts a binary column of avro format into its corresponding catalyst value. The specified
-   * schema must match the read data, otherwise the behavior is undefined: it may fail or
return
-   * arbitrary result.
+   * Converts a binary column of avro format into its corresponding catalyst value. If a
writer's
+   * schema is provided in the options, a different (but compatible) schema can be used for
reading.
+   * If no writer's schema is provided, the specified schema must match the read data, otherwise
the
 
 Review comment:
   writer's => actual Avro

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Mime
View raw message