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 173A7B439 for ; Tue, 10 Jan 2012 12:35:56 +0000 (UTC) Received: (qmail 40210 invoked by uid 500); 10 Jan 2012 12:16:51 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 40007 invoked by uid 500); 10 Jan 2012 12:16:27 -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 39931 invoked by uid 500); 10 Jan 2012 12:16:20 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 39902 invoked by uid 99); 10 Jan 2012 12:16:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jan 2012 12:16:18 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of caofangkun@gmail.com designates 209.85.160.48 as permitted sender) Received: from [209.85.160.48] (HELO mail-pw0-f48.google.com) (209.85.160.48) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jan 2012 12:16:12 +0000 Received: by pbaa12 with SMTP id a12so4233912pba.35 for ; Tue, 10 Jan 2012 04:15:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=2qIPLFQQxhScmm2o6F9mYEQqyJYQiFxPIh5peAZ4FoA=; b=q1bn1z/Die2dvvJsPtUItqSxiwOguEiDPArdbNvnFcKCkeD3/XF9j2hUIdxYDKkLbB KOqzldQg39z3rQ4wJax7jsnyRrz+wx3Mh2O+0JLiBj1gjfjwjfIiXUlJIbNzt+7+A1k4 yuG+Q+oZKPLZmlQvJg9jG/HRkIUvUAR4AdbrQ= MIME-Version: 1.0 Received: by 10.68.199.73 with SMTP id ji9mr50843550pbc.0.1326197751888; Tue, 10 Jan 2012 04:15:51 -0800 (PST) Received: by 10.68.51.42 with HTTP; Tue, 10 Jan 2012 04:15:51 -0800 (PST) Date: Tue, 10 Jan 2012 20:15:51 +0800 Message-ID: Subject: should throw semantic error if subquery has duplicate columns name From: =?GB2312?B?stzApA==?= To: hive-dev@hadoop.apache.org Content-Type: multipart/alternative; boundary=e89a8f6470b9e73b4904b62b7986 --e89a8f6470b9e73b4904b62b7986 Content-Type: text/plain; charset=ISO-8859-1 I find a bug today. Does anybody come across this ? hive> desc src; OK key string value string Time taken: 0.314 seconds hive> desc src1; OK key string value string Time taken: 0.112 seconds hive> select t.key > from > (select a.key, b.key from (select * from src ) a right outer join (select * from src1) b on (a.key = b.key)) t; FAILED: Error in semantic analysis: Ambiguous column reference key The query below should throw FAILED: Error in semantic analysis: Ambiguous column reference key. hive> select t.key > from > (select a.*, b.* from (select * from src ) a right outer join (select * from src1) b on (a.key = b.key)) t; Total MapReduce jobs = 1 Launching Job 1 out of 1 Number of reduce tasks not specified. Defaulting to jobconf value of: 1 In order to change the average load for a reducer (in bytes): set hive.exec.reducers.bytes.per.reducer= In order to limit the maximum number of reducers: set hive.exec.reducers.max= In order to set a constant number of reducers: set mapred.reduce.tasks= Starting Job = job_201201100909_0007, Tracking URL = http://zongren-VirtualBox:50030/jobdetails.jsp?jobid=job_201201100909_0007 Kill Command = /home/zongren/workspace/hadoop-adh/bin/hadoop job -Dmapred.job.tracker=zongren-VirtualBox:9001 -kill job_201201100909_0007 Hadoop job information for Stage-1: number of mappers: 2; number of reducers: 1 2012-01-10 20:00:03,667 Stage-1 map = 0%, reduce = 0% 2012-01-10 20:00:06,741 Stage-1 map = 100%, reduce = 0% 2012-01-10 20:00:14,926 Stage-1 map = 100%, reduce = 100% Ended Job = job_201201100909_0007 MapReduce Jobs Launched: Job 0: Map: 2 Reduce: 1 HDFS Read: 669 HDFS Write: 68 SUCESS Total MapReduce CPU Time Spent: 0 msec OK --e89a8f6470b9e73b4904b62b7986--