Return-Path: X-Original-To: apmail-hive-user-archive@www.apache.org Delivered-To: apmail-hive-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CB42E9ED1 for ; Sun, 20 Nov 2011 06:00:34 +0000 (UTC) Received: (qmail 42851 invoked by uid 500); 20 Nov 2011 06:00:34 -0000 Delivered-To: apmail-hive-user-archive@hive.apache.org Received: (qmail 42736 invoked by uid 500); 20 Nov 2011 06:00:33 -0000 Mailing-List: contact user-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hive.apache.org Delivered-To: mailing list user@hive.apache.org Received: (qmail 42725 invoked by uid 99); 20 Nov 2011 06:00:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Nov 2011 06:00:32 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [72.30.239.15] (HELO nm31-vm7.bullet.mail.bf1.yahoo.com) (72.30.239.15) by apache.org (qpsmtpd/0.29) with SMTP; Sun, 20 Nov 2011 06:00:23 +0000 Received: from [98.139.212.152] by nm31.bullet.mail.bf1.yahoo.com with NNFMP; 20 Nov 2011 06:00:02 -0000 Received: from [98.139.212.212] by tm9.bullet.mail.bf1.yahoo.com with NNFMP; 20 Nov 2011 06:00:02 -0000 Received: from [127.0.0.1] by omp1021.mail.bf1.yahoo.com with NNFMP; 20 Nov 2011 06:00:02 -0000 X-Yahoo-Newman-Id: 467434.86393.bm@omp1021.mail.bf1.yahoo.com Received: (qmail 92389 invoked from network); 20 Nov 2011 06:00:02 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=DKIM-Signature:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:References:In-Reply-To:X-Apple-Yahoo-Original-Message-Folder:Mime-Version:Content-Type:Content-Transfer-Encoding:Message-Id:X-Mailer:From:X-Apple-Yahoo-Replied-Msgid:Subject:Date:To; b=HvD/wXVh4sYdK+A4qSOKAyUg3RjP2qx8JAAaZutjxmaKsvHo7JshiAkGDAm5BHrOWxcHTSyY3sSGLmLcWiSZMIHbmUVIOAOxSzjNrd99tOcVE2ux87gxQ5N8K3ziYGmuofPNyl3SAanletDFy8NBcoOMOOspPHXoHh/p99LQeSQ= ; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1321768802; bh=BdjwbN/Emkafq+6XOLTwjc2Xcjhm6CAy0Gbi7TlWDEg=; h=X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:References:In-Reply-To:X-Apple-Yahoo-Original-Message-Folder:Mime-Version:Content-Type:Content-Transfer-Encoding:Message-Id:X-Mailer:From:X-Apple-Yahoo-Replied-Msgid:Subject:Date:To; b=YQNR2VMttZkS3g9w60bT1mMwUSvj72SuHIC0B356sMqKb8xcR00Q/fEcZb1LI7oAy4JTFPqiSWLNN7o3WPEUL/lDIT5sKqYzyHiTo4lvStSQQGnvXa1J3AEDdUa1DlCbF4E1nTxq2lHgkeyiBCZ9Hta60teFcgF9a9TgMNGz0/8= X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: ApMcpM8VM1nMbBufQcYyWsb1si9r5SYyQ4FDhgeebgMdMsP C4tpdqLuq67dD0i_aGY4pW8XQRqYs.SjAEOdNKQzTuPzgWakVuVCHfkffgXu 3GPDPA6.QTAqcRk4i2DtE6BGleZf2oCVnyY01xJ6sDT3BpfLKREKIxVlOR4W gA2D85hlwft_HatDnpJrR5_BhhgezKlTf1Ab_4nuNwxfmo11yuf2RbIm4msW wUqJATqFf6JD8s0JZb7j8rKIJJ5zwgoWBOcDcbO32KGi1Ut_Det1h77r0mCy 1D7DZ92TfTIqQew6NWIwdkAsW2eSB.pEzXGbmFFS2weMuhWUamcLwLgDcJSy eDAU_dyV2_WP63G4cFhVTPa2YPSRsRc872F.XeHwzSh2iupHqTcPp.BALBB_ ojfK94TzFMHff1m8- X-Yahoo-SMTP: StDeBhyswBBttj4o_Z2KUB_51hLlFA-- Received: from [10.86.183.18] (ayonsinha@166.205.139.38 with xymcookie) by smtp116-mob.biz.mail.bf1.yahoo.com with SMTP; 19 Nov 2011 22:00:01 -0800 PST References: In-Reply-To: X-Apple-Yahoo-Original-Message-Folder: Inbox Mime-Version: 1.0 (iPhone Mail 8L1) Content-Type: multipart/alternative; boundary=Apple-Mail-4--135782804 Content-Transfer-Encoding: 7bit Message-Id: <4595A1CF-6A55-4F6B-9CE2-57559590C0FA@yahoo.com> X-Mailer: iPhone Mail (8L1) From: Ayon Sinha X-Apple-Yahoo-Replied-Msgid: 1_9963236_APoIw0MAAMD4TsiFyAF9HizaQc0 Subject: Re: Hive: Issue with JOIN on tables in a database namespace Date: Sat, 19 Nov 2011 21:59:56 -0800 To: "user@hive.apache.org" --Apple-Mail-4--135782804 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Have you tried using table aliases? What errors do you see? Sent from my iPhone On Nov 19, 2011, at 8:44 PM, Daniel Godfrey wro= te: > Hey everyone,=20 >=20 > I'm having issues trying to execute a simple join on two tables that are i= n the same database namespace. I'm trying to following: >=20 > SELECT namespace.table1.* FROM namespace.table1 JOIN namespace.table2 ON (= namespace.table1.field1 =3D namespace.table2.field2); >=20 > If I move the tables outside of the database namespace, I can perform the j= oin just fine.=20 >=20 > Is it not possible to join tables within a database? Or am I missing somet= hing? >=20 > Cheers,=20 >=20 > --=20 > C. Daniel Godfrey >=20 > -4th Year Software Engineering Student at the University of Ottawa >=20 >=20 --Apple-Mail-4--135782804 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=utf-8
Have you tried using table aliases? What errors do you see?

Sent from my iPhone

On Nov 19, 2011, at 8:44 PM, Daniel Godfrey <c.daniel.godfrey@gmail.com> wrote:

Hey everyone, 

I'm having issues trying to execute a simple join on two tables that are in the same database namespace. I'm trying to following:

SELECT namespace.table1.* FROM namespace.table1 JOIN namespace.table2 ON (namespace.table1.field1 = namespace.table2.field2);

If I move the tables outside of the database namespace, I can perform the join just fine. 

Is it not possible to join tables within a database? Or am I missing something?

Cheers, 

--
C. Daniel Godfrey

-4th Year Software Engineering Student at the University of Ottawa


--Apple-Mail-4--135782804--