Return-Path: Delivered-To: apmail-hive-user-archive@www.apache.org Received: (qmail 82824 invoked from network); 11 Feb 2011 08:51:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Feb 2011 08:51:56 -0000 Received: (qmail 24528 invoked by uid 500); 11 Feb 2011 08:51:56 -0000 Delivered-To: apmail-hive-user-archive@hive.apache.org Received: (qmail 24267 invoked by uid 500); 11 Feb 2011 08:51:52 -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 24259 invoked by uid 99); 11 Feb 2011 08:51:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Feb 2011 08:51:51 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of cambazz@gmail.com designates 74.125.82.176 as permitted sender) Received: from [74.125.82.176] (HELO mail-wy0-f176.google.com) (74.125.82.176) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Feb 2011 08:51:43 +0000 Received: by wye20 with SMTP id 20so2261489wye.35 for ; Fri, 11 Feb 2011 00:51:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=z9V9EgqLrV9WZ0spumHkxVBfkdq4y+NCM0rmdPwzxLI=; b=iJ85BjSGi88jNyI9rVLRoxba5y+vuTRkE/jQG1y+PJO9Ye786Bx8ztucy/0xkDBu1V YVvBX6Sh6OEseSNij2ZXC5OXtwcIW7IaucJHzres2lP4jDULvWSA9QvpmgzzBZPh1d1V Byhtyz6E8qa8Mr+Sbkls9+/T720Hhz0wo1XC0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=LLJdhUSvPUDwmhNnM6J9qmUo0h+J1ZqmJWc74JU/PFjzC0auUV/boqJJk+6hHa1nL2 JNzQipLo2U69DbKnBR8BVLtRGOm9QRA0YyHT6kZfTFWAv00SdqhgkmQaDo2mOdvuEHgJ +JOqQ6BsXUIxzyVwdruRD+wYgHEne2UQe+rB4= MIME-Version: 1.0 Received: by 10.216.72.201 with SMTP id t51mr216973wed.6.1297414283621; Fri, 11 Feb 2011 00:51:23 -0800 (PST) Received: by 10.216.45.7 with HTTP; Fri, 11 Feb 2011 00:51:23 -0800 (PST) Date: Fri, 11 Feb 2011 10:51:23 +0200 Message-ID: Subject: why some queries produce blank files From: Cam Bazz To: user@hive.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hello, The query below produces a blank file, when no results are found: insert overwrite table selection_hourly_clicks partition (date_hour = PARTNAME) select sel_sid, count(*) cc from ( select split(parse_url(iv.referrer_url,'PATH'), '_')[1] sel_sid from item_raw iv where iv.date_hour='PARTNAME' AND iv.referrer_url is not null AND substring(parse_url(iv.referrer_url,'PATH'),0,8)=='/target/' ) s group by sel_sid; where the following query: insert overwrite table item_hourly_stat partition (date_hour=PARTNAME) select iv.e_sid, count(*) from item_raw iv where iv.date_hour='PARTHANE' group by iv.e_sid"; does not produce a blank file when there is no log at that given hour... this is not a problem or anything, but i am just trying to understand what is going on. I am sure it is because the first query in question is a inner query, or something like that. best regards, -c.b.