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 25EEC10150 for ; Sun, 4 Jan 2015 23:57:46 +0000 (UTC) Received: (qmail 13578 invoked by uid 500); 4 Jan 2015 23:57:47 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 13547 invoked by uid 500); 4 Jan 2015 23:57:47 -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 13537 invoked by uid 99); 4 Jan 2015 23:57:47 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Jan 2015 23:57:47 +0000 Date: Sun, 4 Jan 2015 23:57:46 +0000 (UTC) From: "Jacques Nadeau (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DRILL-1831) LIKE operator not working with SQL [charlist] Wildcard 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-1831?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jacques Nadeau updated DRILL-1831: ---------------------------------- Component/s: (was: Execution - Operators) Functions - Drill Fix Version/s: 0.8.0 Assignee: Mehant Baid (was: Venkata krishnan Sowrirajan) Priority: Critical (was: Major) > LIKE operator not working with SQL [charlist] Wildcard > ------------------------------------------------------ > > Key: DRILL-1831 > URL: https://issues.apache.org/jira/browse/DRILL-1831 > Project: Apache Drill > Issue Type: Bug > Components: Functions - Drill > Reporter: Rahul Challapalli > Assignee: Mehant Baid > Priority: Critical > Fix For: 0.8.0 > > > git.commit.id.abbrev=142e577 > Data : > {code} > abc > def > acf > fgh > qjh > {code} > The below query works fine > {code} > 0: jdbc:drill:schema=dfs.drillTestDir> select columns[0] from `data-shapes/temp.tbl` where columns[0] like '%b%'; > +------------+ > | EXPR$0 | > +------------+ > | abc | > +------------+ > 1 row selected (0.122 seconds) > {code} > However the below query does not return anything > {code} > 0: jdbc:drill:schema=dfs.drillTestDir> select columns[0] from `data-shapes/temp.tbl` where columns[0] like '[aq]%'; > +------------+ > | EXPR$0 | > +------------+ > +------------+ > No rows selected (0.139 seconds) > {code} > The above query should return values which start with either 'a' or 'q'. > Text Plan : > {code} > 00-00 Screen > 00-01 Project(EXPR$0=[$0]) > 00-02 SelectionVectorRemover > 00-03 Filter(condition=[LIKE($0, '[aq]%')]) > 00-04 Project(ITEM=[ITEM($0, 0)]) > 00-05 Scan(groupscan=[EasyGroupScan [selectionRoot=/drill/testdata/data-shapes/temp.tbl, numFiles=1, columns=[`columns`[0]], files=[maprfs:/drill/testdata/data-shapes/temp.tbl]]]) > {code} > Let me know if you need anything else -- This message was sent by Atlassian JIRA (v6.3.4#6332)