[ 
https://issues.apache.org/jira/browse/HIVE-18785?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16530491#comment-16530491
 ] 

Aihua Xu commented on HIVE-18785:
---------------------------------

[~belugabehr] I already updated the page. Are you expecting something else?

{noformat}
Starting in Hive 3.0.0, JsonSerDe is added to Hive Serde as 
"org.apache.hadoop.hive.serde2.JsonSerDe" (HIVE-19211).
CREATE TABLE my_table(a string, b bigint, ...)
ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.JsonSerDe'
STORED AS TEXTFILE;

Or STORED AS JSONFILE is supported starting in Hive 4.0.0 (HIVE-19899), so you 
can create table as follows:

CREATE TABLE my_table(a string, b bigint, ...) STORED AS JSONFILE;
{noformat}

> Make JSON SerDe First-Class SerDe
> ---------------------------------
>
>                 Key: HIVE-18785
>                 URL: https://issues.apache.org/jira/browse/HIVE-18785
>             Project: Hive
>          Issue Type: New Feature
>          Components: Serializers/Deserializers
>    Affects Versions: 3.0.0
>            Reporter: BELUGA BEHR
>            Assignee: Aihua Xu
>            Priority: Major
>
> According to the [Hive SerDe 
> Docs|https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL#LanguageManualDDL-RowFormats&SerDe],
>  there are some extra steps involved in getting the JSON SerDe to work:
> {quote}
> ROW FORMAT SERDE 
> 'org.apache.hive.hcatalog.data.JsonSerDe' 
> STORED AS TEXTFILE
> In some distributions, a reference to hive-hcatalog-core.jar is required.
> ADD JAR /usr/lib/hive-hcatalog/lib/hive-hcatalog-core.jar;
> {quote}
> I would like to propose that we move this SerDe into first-class status:
> {{STORED AS JSONFILE}}
> The user should have to perform no additional steps to use this SerDe.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to