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 26060EAAA for ; Wed, 9 Jan 2013 10:32:03 +0000 (UTC) Received: (qmail 52766 invoked by uid 500); 9 Jan 2013 10:31:41 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 52643 invoked by uid 500); 9 Jan 2013 10:31:41 -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 52616 invoked by uid 500); 9 Jan 2013 10:31:41 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 52595 invoked by uid 99); 9 Jan 2013 10:31:41 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jan 2013 10:31:41 +0000 Date: Wed, 9 Jan 2013 10:31:41 +0000 (UTC) From: "Hudson (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-3247) Sorted by order of table not respected 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-3247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13548298#comment-13548298 ] Hudson commented on HIVE-3247: ------------------------------ Integrated in Hive-trunk-hadoop2 #54 (See [https://builds.apache.org/job/Hive-trunk-hadoop2/54/]) HIVE-3247 Sorted by order of table not respected (Navis via namit) (Revision 1362342) Result = ABORTED namit : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1362342 Files : * /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java * /hive/trunk/ql/src/test/queries/clientpositive/enforce_order.q * /hive/trunk/ql/src/test/results/clientpositive/enforce_order.q.out > Sorted by order of table not respected > -------------------------------------- > > Key: HIVE-3247 > URL: https://issues.apache.org/jira/browse/HIVE-3247 > Project: Hive > Issue Type: Bug > Components: Query Processor > Affects Versions: 0.10.0 > Reporter: Kevin Wilfong > Assignee: Navis > Fix For: 0.10.0 > > > When a table a sorted by a column or columns, and data is inserted with hive.enforce.sorting=true, regardless of whether the metadata says the table is sorted in ascending or descending order, the data will be sorted in ascending order. > e.g. > create table table_desc(key string, value string) clustered by (key) sorted by (key DESC) into 1 BUCKETS; > create table table_asc(key string, value string) clustered by (key) sorted by (key ASC) into 1 BUCKETS; > insert overwrite table table_desc select key, value from src; > insert overwrite table table_asc select key, value from src; > select * from table_desc; > ... > 96 val_96 > 97 val_97 > 97 val_97 > 98 val_98 > 98 val_98 > select * from table_asc; > ... > 96 val_96 > 97 val_97 > 97 val_97 > 98 val_98 > 98 val_98 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira