GitHub user gengliangwang opened a pull request:
https://github.com/apache/spark/pull/21774
[WIP][SPARK-24811][SQL]Avro: add new function from_avro and to_avro
## What changes were proposed in this pull request?
Add a new function from_avro for parsing a binary column of avro format and
converting it into its corresponding catalyst value.
Add a new function to_avro for converting a column into binary of avro
format with the specified schema.
This PR is in progress. Will add test cases.
## How was this patch tested?
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/gengliangwang/spark from_and_to_avro
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/21774.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #21774
----
commit fd7ad1dfb238925cf5614a2d1a4c973da2c80a0d
Author: Gengliang Wang <gengliang.wang@...>
Date: 2018-07-15T18:47:29Z
add from_avro and to_avro
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]