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 E0AB510FB7 for ; Wed, 17 Dec 2014 07:06:13 +0000 (UTC) Received: (qmail 77095 invoked by uid 500); 17 Dec 2014 07:06:13 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 77025 invoked by uid 500); 17 Dec 2014 07:06:13 -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 77013 invoked by uid 500); 17 Dec 2014 07:06:13 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 77010 invoked by uid 99); 17 Dec 2014 07:06:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Dec 2014 07:06:13 +0000 Date: Wed, 17 Dec 2014 07:06:13 +0000 (UTC) From: "David Schorow (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: =?utf-8?Q?[jira]_[Commented]_(HIVE-7999)_Hive_metastore_query_too_lo?= =?utf-8?Q?ng_when_select_*_on_table_wit?= =?utf-8?Q?h_large_number_of_partitions=EE=80=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-7999?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D14249= 562#comment-14249562 ]=20 David Schorow commented on HIVE-7999: ------------------------------------- I believe this issue will be resolved by HIVE-8295. I suggest this be clos= ed as a dup of that issue. That introduces a fix where the query only sele= cts 1,000 partitions at a time. > Hive metastore query too long when select * on table with large number of= partitions=EE=80=94 > -------------------------------------------------------------------------= ------------ > > Key: HIVE-7999 > URL: https://issues.apache.org/jira/browse/HIVE-7999 > Project: Hive > Issue Type: Bug > Components: Metastore > Reporter: Chu Tong > > When it comes to selecting * on a Hive table with large number of partiti= ons, a query like this: > SELECT PARTITIONS.PART_ID, SDS.SD_ID, SDS.CD_ID, SERDES.SERDE_ID, PARTITI= ONS.CREATE_TIME, ... SERDES.SLIB from PARTITIONS LEFT OUTER JOIN SDS ON PAR= TITIONS.SD_ID =3D SDS.SD_ID LEFT OUTER JOIN SERDES ON SDS.SERDE_ID =3D SERD= ES.SERDE_ID where PART_ID in (1,2,3,4 ... 10000000 ... > is generated and executed on metastore, however, due the query lists all = the partitions in it, SQL server is unable to compile/execute such a long q= uery and causing the whole query to fail. -- This message was sent by Atlassian JIRA (v6.3.4#6332)