Return-Path: X-Original-To: apmail-drill-issues-archive@minotaur.apache.org Delivered-To: apmail-drill-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 69671100B4 for ; Thu, 19 Mar 2015 02:43:38 +0000 (UTC) Received: (qmail 44870 invoked by uid 500); 19 Mar 2015 02:43:38 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 44837 invoked by uid 500); 19 Mar 2015 02:43:38 -0000 Mailing-List: contact issues-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list issues@drill.apache.org Received: (qmail 44827 invoked by uid 99); 19 Mar 2015 02:43:38 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Mar 2015 02:43:38 +0000 Date: Thu, 19 Mar 2015 02:43:38 +0000 (UTC) From: "Mehant Baid (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (DRILL-2393) The extracted day from now() and current_date are not equal MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DRILL-2393?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mehant Baid resolved DRILL-2393. -------------------------------- Resolution: Fixed Resolved in 8faa66424b81e4341b36c1aeecc767edbb233d38 > The extracted day from now() and current_date are not equal > ----------------------------------------------------------- > > Key: DRILL-2393 > URL: https://issues.apache.org/jira/browse/DRILL-2393 > Project: Apache Drill > Issue Type: Bug > Components: Functions - Drill > Affects Versions: 0.8.0 > Reporter: Chun Chang > Assignee: Mehant Baid > Priority: Critical > Fix For: 0.9.0 > > > #Wed Mar 04 01:23:42 EST 2015 > git.commit.id.abbrev=71b6bfe > The extracted 'day' from now() and current_date should be equal, but Drill returned false: > {code} > 0: jdbc:drill:schema=dfs.drillTestDirComplexJ> select extract(day from now())=extract(day from current_date) from sys.drillbits limit 1; > +------------+ > | EXPR$0 | > +------------+ > | false | > +------------+ > 1 row selected (0.055 seconds) > 0: jdbc:drill:schema=dfs.drillTestDirComplexJ> select extract(day from now()), extract(day from current_date) from sys.drillbits limit 1; > +------------+------------+ > | EXPR$0 | EXPR$1 | > +------------+------------+ > | 6 | 5 | > +------------+------------+ > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)