Return-Path: Delivered-To: apmail-hive-dev-archive@www.apache.org Received: (qmail 45466 invoked from network); 3 Jan 2011 12:33:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Jan 2011 12:33:10 -0000 Received: (qmail 82562 invoked by uid 500); 3 Jan 2011 12:33:10 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 82446 invoked by uid 500); 3 Jan 2011 12:33:10 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 82438 invoked by uid 500); 3 Jan 2011 12:33:09 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 82433 invoked by uid 99); 3 Jan 2011 12:33:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Jan 2011 12:33:09 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Jan 2011 12:33:07 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p03CWjvs009759 for ; Mon, 3 Jan 2011 12:32:46 GMT Message-ID: <18251235.106641294057965900.JavaMail.jira@thor> Date: Mon, 3 Jan 2011 07:32:45 -0500 (EST) From: "Carl Steinbach (JIRA)" To: hive-dev@hadoop.apache.org Subject: [jira] Updated: (HIVE-1528) Add json_tuple() UDTF function MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HIVE-1528?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Carl Steinbach updated HIVE-1528: --------------------------------- Summary: Add json_tuple() UDTF function (was: JSON UDTF function) > Add json_tuple() UDTF function > ------------------------------ > > Key: HIVE-1528 > URL: https://issues.apache.org/jira/browse/HIVE-1528 > Project: Hive > Issue Type: New Feature > Components: UDF > Affects Versions: 0.7.0 > Reporter: Ning Zhang > Assignee: Ning Zhang > Fix For: 0.7.0 > > Attachments: HIVE-1528.2.patch, HIVE-1528.patch > > > Currently the only way to evaluate a path expression on a JSON object is through get_json_object. If there are many fields in the JSON object need to be extract, we have to call this UDF multiple times. > There are many use cases that get_json_object needs to be called many times in one query to convert the JSON object to a relational schema. It would be much desirable if we have a JSON UDTF that supports the following syntax: > {code} > select a.id, b.* > from a lateral view json_table(a.json_object, '$.f1', '$.f2', ..., '$.fn') b as f1, f2, ..., fn > {code} > where the json_table function only scans the json_object once and return a set of tuple of (f1, f2,..., fn). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.