Return-Path: Delivered-To: apmail-hadoop-hive-dev-archive@minotaur.apache.org Received: (qmail 81722 invoked from network); 24 Aug 2009 17:29:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Aug 2009 17:29:56 -0000 Received: (qmail 8554 invoked by uid 500); 24 Aug 2009 17:30:21 -0000 Delivered-To: apmail-hadoop-hive-dev-archive@hadoop.apache.org Received: (qmail 8513 invoked by uid 500); 24 Aug 2009 17:30:21 -0000 Mailing-List: contact hive-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hive-dev@hadoop.apache.org Delivered-To: mailing list hive-dev@hadoop.apache.org Received: (qmail 8503 invoked by uid 99); 24 Aug 2009 17:30:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Aug 2009 17:30:21 +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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Aug 2009 17:30:19 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B9AAB234C48C for ; Mon, 24 Aug 2009 10:29:59 -0700 (PDT) Message-ID: <1248597003.1251134999759.JavaMail.jira@brutus> Date: Mon, 24 Aug 2009 10:29:59 -0700 (PDT) From: "Zheng Shao (JIRA)" To: hive-dev@hadoop.apache.org Subject: [jira] Commented: (HIVE-777) CREATE TABLE with STRUCT type In-Reply-To: <1366379746.1250751434791.JavaMail.jira@brutus> 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-777?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12746965#action_12746965 ] Zheng Shao commented on HIVE-777: --------------------------------- There must be a bug somewhere. In my test, column b is also "null". Can you take a look? {code} [junit] diff -a -I \(file:\)\|\(/tmp/.*\) /xxx/build/ql/test/logs/clientpositive/create_struct_table.q.out /xxx/ql/src/test/results/clientpositive/create_struct_table.q.out [junit] 6,16c6,16 [junit] < Output: file:/xxx/build/ql/tmp/2020131471/10000 [junit] < {"a":238,"b":null} 238 NULL [junit] < {"a":86,"b":null} 86 NULL [junit] < {"a":311,"b":null} 311 NULL [junit] < {"a":27,"b":null} 27 NULL [junit] < {"a":165,"b":null} 165 NULL [junit] < {"a":409,"b":null} 409 NULL [junit] < {"a":255,"b":null} 255 NULL [junit] < {"a":278,"b":null} 278 NULL [junit] < {"a":98,"b":null} 98 NULL [junit] < {"a":484,"b":null} 484 NULL [junit] --- [junit] > Output: file:/Users/char/Documents/workspace/Hive/build/ql/tmp/1255514131/10000 [junit] > {"a":238,"b":val_238} 238 val_238 [junit] > {"a":86,"b":val_86} 86 val_86 [junit] > {"a":311,"b":val_311} 311 val_311 [junit] > {"a":27,"b":val_27} 27 val_27 [junit] > {"a":165,"b":val_165} 165 val_165 [junit] > {"a":409,"b":val_409} 409 val_409 [junit] > {"a":255,"b":val_255} 255 val_255 [junit] > {"a":278,"b":val_278} 278 val_278 [junit] > {"a":98,"b":val_98} 98 val_98 [junit] > {"a":484,"b":val_484} 484 val_484 {code} > CREATE TABLE with STRUCT type > ----------------------------- > > Key: HIVE-777 > URL: https://issues.apache.org/jira/browse/HIVE-777 > Project: Hadoop Hive > Issue Type: New Feature > Components: Query Processor > Reporter: Zheng Shao > Assignee: He Yongqiang > Attachments: hive-777-2009-8-21-2.patch, hive-777-2009-8-21.patch, hive-777-2009-8-29.patch > > > Currently we only support map/array in type definition. > We should support STRUCT as well. > {code} > CREATE TABLE abc ( > pageid INT, > ads STRUCT, > userid INT > ); > {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.