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 54B7F17E2C for ; Mon, 6 Apr 2015 21:39:15 +0000 (UTC) Received: (qmail 29408 invoked by uid 500); 6 Apr 2015 21:39:15 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 29376 invoked by uid 500); 6 Apr 2015 21:39:15 -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 29366 invoked by uid 99); 6 Apr 2015 21:39:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Apr 2015 21:39:15 +0000 Date: Mon, 6 Apr 2015 21:39:15 +0000 (UTC) From: "Parth Chandra (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DRILL-2433) Implicit cast between date and timestamp is missing in joins 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-2433?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Parth Chandra updated DRILL-2433: --------------------------------- Fix Version/s: (was: 0.9.0) 1.0.0 > Implicit cast between date and timestamp is missing in joins > ------------------------------------------------------------ > > Key: DRILL-2433 > URL: https://issues.apache.org/jira/browse/DRILL-2433 > Project: Apache Drill > Issue Type: Improvement > Components: Execution - Data Types > Reporter: Victoria Markman > Assignee: Mehant Baid > Fix For: 1.0.0 > > > {code} > 0: jdbc:drill:schema=dfs> select count(*) from cast_tbl_1 a, cast_tbl_2 b where a.c_timestamp = b.c_date; > Query failed: RemoteRpcException: Failure while running fragment., Failure finding function that runtime code generation expected. Signature: compare_to_nulls_high( DATE:OPTIONAL, TIMESTAMP:OPTIONAL ) returns INT:REQUIRED [ e17b546e-81ec-49f0-ac91-f5714f570971 on atsqa4-134.qa.lab:31010 ] > [ e17b546e-81ec-49f0-ac91-f5714f570971 on atsqa4-134.qa.lab:31010 ] > Error: exception while executing query: Failure while executing query. (state=,code=0) > {code} > This is inconsistent with our UNION ALL implementation. > {code} > 0: jdbc:drill:schema=dfs> select c_date from cast_tbl_1 union all select c_timestamp from cast_tbl_2 order by c_date limit 5; > +------------+ > | c_date | > +------------+ > | 1960-01-03 00:00:00.0 | > | 1960-01-03 00:00:00.0 | > | 1960-01-05 00:00:00.0 | > | 1960-01-05 00:00:00.0 | > | 1960-01-08 00:00:00.0 | > +------------+ > 5 rows selected (0.276 seconds) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)