hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zheng Shao (JIRA)" <>
Subject [jira] Commented: (HIVE-163) support loading json data into hive
Date Thu, 11 Dec 2008 07:41:44 GMT


Zheng Shao commented on HIVE-163:

I would suggest to first add a JSONField function that extracts an JSON field:

class UDFJsonField {
  /** Extracts a field of a JSON object.
    * @param jsonObject The main JSON Object in string format
    * @param field The field expression, e.g. "[1]a.b[3].c"
    * @return the JSON Object that represents the field in string format
  String evaluate(String jsonObject, String field) {

This function will support most of the requests.

> support loading json data into hive
> -----------------------------------
>                 Key: HIVE-163
>                 URL:
>             Project: Hadoop Hive
>          Issue Type: New Feature
>          Components: Serializers/Deserializers
>            Reporter: Hao Liu
>   Original Estimate: 168h
>  Remaining Estimate: 168h
> The JSON format is commonly used for transmitting structured data over a network, especially
for ajax web applications. People also choose json format to store log data.
> Support loading and query json format data will be a desirable features in Hive.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message