You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/02/14 02:50:47 UTC

[GitHub] HyukjinKwon opened a new pull request #23784: [SPARK-26870][SQL] Move to_avro/from_avro into functions object due to Java compatibility

HyukjinKwon opened a new pull request #23784: [SPARK-26870][SQL] Move to_avro/from_avro into functions object due to Java compatibility
URL: https://github.com/apache/spark/pull/23784
 
 
   ## What changes were proposed in this pull request?
   
   Currently, looks, to use `from_avro` and `to_avro` in Java APIs side,
   
   ```java
   import static org.apache.spark.sql.avro.package$.MODULE$;
   
   MODULE$.to_avro
   MODULE$.from_avro
   ```
   
   This PR targets to deprecate and move both functions under `avro` package into `functions` object like the way of our `org.apache.spark.sql.functions`.
   
   Therefore, Java side can import:
   
   ```java
   import static org.apache.spark.sql.avro.functions.*;
   ```
   
   and Scala side can import:
   
   ```scala
   import org.apache.spark.sql.avro.functions._
   ```
   
   
   
   ## How was this patch tested?
   
   Manually tested, and unit tests for Java APIs were added.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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