-
Notifications
You must be signed in to change notification settings - Fork 483
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
### What changes were proposed in this pull request? This patch add support to convert json to UNION type in orc file. For example, for schema `struct<foo:uniontype<int,string>>`, the following json lines can be parsed into UNION type. ``` {"foo": {"tag": 0, "value": 1}} {"foo": {"tag": 1, "value": "testing"}} {"foo": {"tag": 0, "value": 3}} ``` ### Why are the changes needed? This add a missing support for UNION type in java convert tool. ### How was this patch tested? Manually test against handcrafted json file.
- Loading branch information
Showing
3 changed files
with
88 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters