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 CB03B11E00 for ; Wed, 9 Jul 2014 22:47:29 +0000 (UTC) Received: (qmail 70964 invoked by uid 500); 9 Jul 2014 22:47:29 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 70940 invoked by uid 500); 9 Jul 2014 22:47:29 -0000 Mailing-List: contact issues-help@drill.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.incubator.apache.org Delivered-To: mailing list issues@drill.incubator.apache.org Received: (qmail 70931 invoked by uid 99); 9 Jul 2014 22:47:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jul 2014 22:47:29 +0000 X-ASF-Spam-Status: No, hits=-2000.7 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 09 Jul 2014 22:47:31 +0000 Received: (qmail 69854 invoked by uid 99); 9 Jul 2014 22:47:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jul 2014 22:47:05 +0000 Date: Wed, 9 Jul 2014 22:47:05 +0000 (UTC) From: "Rahul Challapalli (JIRA)" To: issues@drill.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DRILL-1125) Implicit cast not working in the join condition MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DRILL-1125?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rahul Challapalli updated DRILL-1125: ------------------------------------- Attachment: prices.json donuts.json > Implicit cast not working in the join condition > ----------------------------------------------- > > Key: DRILL-1125 > URL: https://issues.apache.org/jira/browse/DRILL-1125 > Project: Apache Drill > Issue Type: Bug > Components: Execution - Data Types, Query Planning & Optimization > Reporter: Rahul Challapalli > Attachments: donuts.json, prices.json > > > git.commit.id.abbrev=810a204 > Build # 26322 > In the below query there is no type attached to 'donuts.id' but we expect implicit cast to work in this case. Data files referenced are also attached > create view v1 as select cast(id as int) a, cast(price as double) b from prices; > select v1.a from v1 inner join donuts on v1.a = donuts.id; > Error From Sqlline : UnsupportedOperationException:[ Failure finding function that runtime code generation expected. Signature: compare_to( INT:OPTIONALVARCHAR:OPTIONAL, ) returns INT:REQUIRED ] > With slight modification the below query works > select v1.a from v1 inner join donuts on v1.a = donuts.id + 1 -1; -- This message was sent by Atlassian JIRA (v6.2#6252)