Return-Path: Delivered-To: apmail-hadoop-hive-dev-archive@minotaur.apache.org Received: (qmail 95623 invoked from network); 29 Mar 2010 18:56:48 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Mar 2010 18:56:48 -0000 Received: (qmail 38209 invoked by uid 500); 29 Mar 2010 18:56:48 -0000 Delivered-To: apmail-hadoop-hive-dev-archive@hadoop.apache.org Received: (qmail 38189 invoked by uid 500); 29 Mar 2010 18:56:48 -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 38181 invoked by uid 99); 29 Mar 2010 18:56:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Mar 2010 18:56:48 +0000 X-ASF-Spam-Status: No, hits=-1165.2 required=10.0 tests=ALL_TRUSTED,AWL 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, 29 Mar 2010 18:56:47 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 342E9234C1F2 for ; Mon, 29 Mar 2010 18:56:27 +0000 (UTC) Message-ID: <4885989.557031269888987212.JavaMail.jira@brutus.apache.org> Date: Mon, 29 Mar 2010 18:56:27 +0000 (UTC) From: "Arvind Prabhakar (JIRA)" To: hive-dev@hadoop.apache.org Subject: [jira] Created: (HIVE-1287) Struct datatype should not use field names for type equivalence. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Struct datatype should not use field names for type equivalence. ---------------------------------------------------------------- Key: HIVE-1287 URL: https://issues.apache.org/jira/browse/HIVE-1287 Project: Hadoop Hive Issue Type: Bug Components: Query Processor Environment: Mac OS X (10.6.2) Java SE 6 ( 1.6.0_17) Reporter: Arvind Prabhakar The field names for {{Struct}} types are currently being matched for testing type equivalence. This is readily seen by running the following example: {noformat} hive> create table source ( foo struct < x : string > ); OK Time taken: 3.094 seconds hive> load data local inpath '/path/to/sample/data.txt' overwrite into table source; Copying data from file:/path/to/sample/data.txt Loading data to table source OK Time taken: 0.593 seconds hive> create table sink ( bar struct < y : string >); OK Time taken: 0.11 seconds hive> insert overwrite table sink select foo from source; FAILED: Error in semantic analysis: line 1:23 Cannot insert into target table because column number/types are different sink: Cannot convert column 0 from struct to struct. {noformat} Since both {{soruce.foo}} and {{sink.bar}} are similar in definition with only field names being different, data movement between these two should be allowed. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.