Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 68F57200CED for ; Fri, 18 Aug 2017 21:17:57 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 6751016D51A; Fri, 18 Aug 2017 19:17:57 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A67B316D517 for ; Fri, 18 Aug 2017 21:17:56 +0200 (CEST) Received: (qmail 64474 invoked by uid 500); 18 Aug 2017 19:17:55 -0000 Mailing-List: contact dev-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 dev@drill.apache.org Received: (qmail 63892 invoked by uid 99); 18 Aug 2017 19:17:54 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Aug 2017 19:17:54 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id E72E8F3328; Fri, 18 Aug 2017 19:17:53 +0000 (UTC) From: paul-rogers To: dev@drill.apache.org Reply-To: dev@drill.apache.org References: In-Reply-To: Subject: [GitHub] drill pull request #907: DRILL-5697: Improve performance of filter operator ... Content-Type: text/plain Message-Id: <20170818191753.E72E8F3328@git1-us-west.apache.org> Date: Fri, 18 Aug 2017 19:17:53 +0000 (UTC) archived-at: Fri, 18 Aug 2017 19:17:57 -0000 Github user paul-rogers commented on a diff in the pull request: https://github.com/apache/drill/pull/907#discussion_r134032943 --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/expr/fn/impl/RegexpUtil.java --- @@ -96,20 +145,46 @@ public static String sqlToRegexLike( || (nextChar == '%') || (nextChar == escapeChar)) { javaPattern.append(nextChar); + simplePattern.append(nextChar); i++; } else { throw invalidEscapeSequence(sqlPattern, i); } } else if (c == '_') { + // if we find _, it is not simple pattern, we are looking for only % + notSimple = true; --- End diff -- `type = NOT_SIMPLE` --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---