c406472970
## 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. Closes #23784 from HyukjinKwon/SPARK-26870. Authored-by: Hyukjin Kwon <gurwls223@apache.org> Signed-off-by: Hyukjin Kwon <gurwls223@apache.org> |
||
---|---|---|
.. | ||
benchmarks | ||
src | ||
pom.xml |