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:
[email protected]


With regards,
Apache Git Services

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

Reply via email to