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 AA5AF174CD for ; Thu, 7 May 2015 18:37:00 +0000 (UTC) Received: (qmail 69209 invoked by uid 500); 7 May 2015 18:37:00 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 69185 invoked by uid 500); 7 May 2015 18:37:00 -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 69175 invoked by uid 99); 7 May 2015 18:37:00 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 May 2015 18:37:00 +0000 Date: Thu, 7 May 2015 18:37:00 +0000 (UTC) From: "Abhishek Girish (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (DRILL-2753) Implicit cast fails when comparing a double column and a varchar literal 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-2753?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14533158#comment-14533158 ] Abhishek Girish edited comment on DRILL-2753 at 5/7/15 6:36 PM: ---------------------------------------------------------------- The issue does not seem to have been resolved. Instead I see regression. Checked on Git.Commit.ID = 10833d2 (May 3), which incorporates the above commit. *On CSV + Views & Parquet + Views:* {code:sql} > select ss_customer_sk, ss_ticket_number from store_sales where ss_wholesale_cost = '38.19' order by ss_promo_sk limit 1; Query failed: PARSE ERROR: From line 1, column 66 to line 1, column 92: Cannot apply '=' to arguments of type ' = '. Supported form(s): ' = ' [46746b03-e7de-4479-82f9-e55332033e2f on abhi7.qa.lab:31010] Error: exception while executing query: Failure while executing query. (state=,code=0) > select ss_customer_sk, ss_ticket_number from store_sales where ss_promo_sk = '50' order by ss_promo_sk limit 1; Query failed: PARSE ERROR: From line 1, column 65 to line 1, column 82: Cannot apply '=' to arguments of type ' = '. Supported form(s): ' = ' [b767f343-bc7c-4b81-b91d-acb60e8c1b30 on abhi7.qa.lab:31010] Error: exception while executing query: Failure while executing query. (state=,code=0) {code} I hope I'm not missing something. Once I reconfirm, will reopen the issue. was (Author: agirish): The issue does not seem to have been resolved. Instead I see regression. Checked on Git.Commit.ID = 10833d2 (May 3), which incorporates the above commit. {code:sql} *On CSV + Views & Parquet + Views:* > select ss_customer_sk, ss_ticket_number from store_sales where ss_wholesale_cost = '38.19' order by ss_promo_sk limit 1; Query failed: PARSE ERROR: From line 1, column 66 to line 1, column 92: Cannot apply '=' to arguments of type ' = '. Supported form(s): ' = ' [46746b03-e7de-4479-82f9-e55332033e2f on abhi7.qa.lab:31010] Error: exception while executing query: Failure while executing query. (state=,code=0) > select ss_customer_sk, ss_ticket_number from store_sales where ss_promo_sk = '50' order by ss_promo_sk limit 1; Query failed: PARSE ERROR: From line 1, column 65 to line 1, column 82: Cannot apply '=' to arguments of type ' = '. Supported form(s): ' = ' [b767f343-bc7c-4b81-b91d-acb60e8c1b30 on abhi7.qa.lab:31010] Error: exception while executing query: Failure while executing query. (state=,code=0) {code} I hope I'm not missing something. Once I reconfirm, will reopen the issue. > Implicit cast fails when comparing a double column and a varchar literal > ------------------------------------------------------------------------ > > Key: DRILL-2753 > URL: https://issues.apache.org/jira/browse/DRILL-2753 > Project: Apache Drill > Issue Type: Bug > Components: Functions - Drill > Reporter: Abhishek Girish > Assignee: Mehant Baid > Priority: Critical > Fix For: 1.0.0 > > Attachments: DRILL-2753.patch > > > Query fails when an implicit cast is used between a column of double data type and a double literal. > *Drill:* > {code:sql} > > select ss_customer_sk, ss_ticket_number from store_sales where ss_promo_sk = '50' order by ss_promo_sk limit 1; > +----------------+------------------+ > | ss_customer_sk | ss_ticket_number | > +----------------+------------------+ > | 53792 | 44 | > +----------------+------------------+ > 1 row selected (1.045 seconds) > > select ss_customer_sk, ss_ticket_number from store_sales where ss_wholesale_cost = '38.19' order by ss_promo_sk limit 1; > Query failed: RemoteRpcException: Failure while running fragment., 38.19 [ d8f86a4f-226a-4e30-bb23-5b20ae5294e0 on abhi7.qa.lab:31010 ] > [ d8f86a4f-226a-4e30-bb23-5b20ae5294e0 on abhi7.qa.lab:31010 ] > Error: exception while executing query: Failure while executing query. (state=,code=0) > {code} > *Postgres:* > {code:sql} > # select ss_customer_sk, ss_ticket_number from store_sales where ss_wholesale_cost = '38.19' order by ss_promo_sk limit 1; > ss_customer_sk | ss_ticket_number > ----------------+------------------ > 44923 | 148425 > (1 row) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)