Return-Path: Delivered-To: apmail-hive-user-archive@www.apache.org Received: (qmail 24669 invoked from network); 4 Mar 2011 15:14:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Mar 2011 15:14:22 -0000 Received: (qmail 60394 invoked by uid 500); 4 Mar 2011 15:14:21 -0000 Delivered-To: apmail-hive-user-archive@hive.apache.org Received: (qmail 60361 invoked by uid 500); 4 Mar 2011 15:14:21 -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 60352 invoked by uid 99); 4 Mar 2011 15:14:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Mar 2011 15:14:21 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RFC_ABUSE_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [98.138.90.163] (HELO web121212.mail.ne1.yahoo.com) (98.138.90.163) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 04 Mar 2011 15:14:12 +0000 Received: (qmail 37530 invoked by uid 60001); 4 Mar 2011 15:13:51 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1299251631; bh=H+9IFpo053GtTM3+y+Pd5pP1Mx3hXQRZgUBqxFNIfIE=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=3zByDUgn2EOjtWDBCRQ2nY/DCudCVLTODUy3qJYZqRmcwbop3P+2hc+2/zHeLZ0c4MCNJU7T94qPFsZOBqRUmWgyuvrojGsF1KY1cNCmhcpgkuTqlkIKcBQCcOzC7QCQrsotccdiUHYKlvQe8XXj7dIYRTAkIJUScw1B2Y3DCTA= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=Y5AppeORlDZtUww+GSIabXp8p1DYgLXT9ikSFYta9/JWKh70GxlWEeD4cD0VRDsWUsKPNiViN0vHwbqy/5vJE8rBCfT9FwB7b6/8p93oWXxHwyZm0v3cFlSLIjoa2spQRnOaZS6GoOGb7jKFhbqrzdcMqHCNmbstmwYHLJ4TAFY=; Message-ID: <10530.33911.qm@web121212.mail.ne1.yahoo.com> X-YMail-OSG: wFjLHdoVM1koPN_lR9Rh95j_EoR1aTAEQLbr_I2fi6Jb0hg qeEr7qc5OaCuTmrESMQL6NOtA4do1hfBSYPq5P319T47COuffqY9c0sDApgl 4cJnliiS3j1xPa5ysl5Tem88EItsWW77HkvbwYTSdLK.QUuHVXWxVlycS4Pb edroAeqBD4YOaeMpUmX3fVvgJZRfiHx5IpxRpSKjei3gZASAY96BoiSc3MKT 636EkevZWgAglVL8- Received: from [65.91.151.195] by web121212.mail.ne1.yahoo.com via HTTP; Fri, 04 Mar 2011 07:13:50 PST X-Mailer: YahooMailRC/559 YahooMailWebService/0.8.109.292656 Date: Fri, 4 Mar 2011 07:13:50 -0800 (PST) From: Bejoy Ks Subject: Date function unix_timestamp() with input values null doen't work as desired To: hive user group MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1142464919-1299251630=:33911" X-Virus-Checked: Checked by ClamAV on apache.org --0-1142464919-1299251630=:33911 Content-Type: text/plain; charset=us-ascii Hi Everyone I'm facing an issue with hive on a relatively larger query which involves joins on six hive tables. My query is running fine without any errors, all the map reduce jobs run to completion but unfortunately it is not showing up any results. I tried debugging the query and to investigate the root cause, When i removed one of the last conditions from the query it is showing up results, this is the condition I removed and ((unix_timestamp(r4.flight_datetime) <= unix_timestamp(r8.removal_datetime ))or R8.REMOVAL_DATETIME IS NULL) I have used a similar comparison operation within my working query on dates using the unix_timestamp method which is working as desired. But here it is not, I'm assuming this would be due to the fact that r8.removal_datetime has null values hence here the evaluation would happen against a valid unix stamp and null. ie (unix_timestamp(r4.flight_datetime) <= unix_timestamp(r8.removal_datetime )) would inturn lead to valid timestamp<= NULL Has any one faced similar situations before? How can i get around this hurdle? Please advise. Regards Bejoy.K.S --0-1142464919-1299251630=:33911 Content-Type: text/html; charset=us-ascii
Hi Everyone
    I'm facing an issue with hive on a relatively  larger query which involves joins on six hive tables. My query is running fine without any errors, all the map reduce jobs run to completion but unfortunately it is not showing up any results. I tried debugging the query and to investigate the root cause, When i removed one of the last conditions from the query it is showing up results, this is the condition I removed
and ((unix_timestamp(r4.flight_datetime) <= unix_timestamp(r8.removal_datetime ))or  R8.REMOVAL_DATETIME IS NULL)
I have used a similar comparison operation within my working query on dates using the unix_timestamp method which is working as desired. But here it is not, I'm assuming this would be due to the fact that r8.removal_datetime has null values hence here the evaluation would happen against a valid unix stamp and null.
ie (unix_timestamp(r4.flight_datetime) <= unix_timestamp(r8.removal_datetime )) would inturn lead to  valid timestamp<= NULL

Has any one faced similar situations before? How can i get around this hurdle? Please advise.

Regards
Bejoy.K.S



--0-1142464919-1299251630=:33911--