Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 300DD72A3 for ; Tue, 26 Jul 2011 23:31:34 +0000 (UTC) Received: (qmail 2208 invoked by uid 500); 26 Jul 2011 23:31:33 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 2072 invoked by uid 500); 26 Jul 2011 23:31:33 -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 1889 invoked by uid 500); 26 Jul 2011 23:31:32 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 1871 invoked by uid 99); 26 Jul 2011 23:31:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jul 2011 23:31:32 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jul 2011 23:31:31 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id B94298AD0C for ; Tue, 26 Jul 2011 23:31:10 +0000 (UTC) Date: Tue, 26 Jul 2011 23:31:10 +0000 (UTC) From: "Carl Steinbach (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: <297605789.9812.1311723070755.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HIVE-274) User cannot specify schema of the script output, only the column names can be specified 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/HIVE-274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Carl Steinbach updated HIVE-274: -------------------------------- Fix Version/s: 0.5.0 > User cannot specify schema of the script output, only the column names can be specified > --------------------------------------------------------------------------------------- > > Key: HIVE-274 > URL: https://issues.apache.org/jira/browse/HIVE-274 > Project: Hive > Issue Type: New Feature > Components: Query Processor > Reporter: Namit Jain > Fix For: 0.5.0 > > > Consider the test: mapreduce1.q: > FROM src > INSERT OVERWRITE TABLE dest1 > MAP src.key, CAST(src.key / 10 AS INT), CAST(src.key % 10 AS INT), src.value > USING '/bin/cat' AS (tkey, ten, one, tvalue) > DISTRIBUTE BY tvalue, tkey > SORT BY ten, one; > Although, in the MAP input, the user is casting the inputs as INT (ten, one), the reduce output ('/bin/cat') still treats them as string, and the sorting happens assuming them as strings - even if the > user wanted to have integer sorting, the output has lexicographic sorting (look at the output mapreduce1.q.out). > In the AS, the user should be able to specify the schema in the same way as CREATE TABLE. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira