Return-Path: X-Original-To: apmail-drill-issues-archive@minotaur.apache.org Delivered-To: apmail-drill-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C60A018E60 for ; Wed, 29 Apr 2015 20:56:06 +0000 (UTC) Received: (qmail 42068 invoked by uid 500); 29 Apr 2015 20:56:06 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 42034 invoked by uid 500); 29 Apr 2015 20:56:06 -0000 Mailing-List: contact issues-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list issues@drill.apache.org Received: (qmail 42022 invoked by uid 99); 29 Apr 2015 20:56:06 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Apr 2015 20:56:06 +0000 Date: Wed, 29 Apr 2015 20:56:06 +0000 (UTC) From: "Kristine Hahn (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (DRILL-2854) KVGEN function document needs to be corrected MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DRILL-2854?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kristine Hahn reassigned DRILL-2854: ------------------------------------ Assignee: Kristine Hahn (was: Bridget Bevens) > KVGEN function document needs to be corrected > --------------------------------------------- > > Key: DRILL-2854 > URL: https://issues.apache.org/jira/browse/DRILL-2854 > Project: Apache Drill > Issue Type: Bug > Components: Documentation > Affects Versions: 0.9.0 > Reporter: Khurram Faraaz > Assignee: Kristine Hahn > > The sample JSON data snippet here (http://drill.apache.org/docs/kvgen/) needs to be corrected and additionally the SQL query to produce the output listed in that section, can be added to that section. > Here is the correct representation of the data in the JSON data file. Currently the text on documentation page is missing the "rec1" identifier, and the opening and closing braces for "rec1" are also missing. > {code} > [root@centos-01 bin]# hadoop fs -cat /tmp/simplemaps.json > {"rec1":{"a": "valA", "b": "valB"}} > {"rec1":{"c": "valC", "d": "valD"}} > {code} > Query that produces the desired output, like the one mentioned in the documentation section for KVGEN function. > {code} > 0: jdbc:drill:> select kvgen(rec1) from `simplemaps.json`; > +------------+ > | EXPR$0 | > +------------+ > | [{"key":"a","value":"valA"},{"key":"b","value":"valB"}] | > | [{"key":"c","value":"valC"},{"key":"d","value":"valD"}] | > +------------+ > 2 rows selected (0.201 seconds) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)