hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hashut...@apache.org
Subject hive git commit: HIVE-13196 : UDFLike: reduce Regex NFA sizes (Gopal V via Gunther Hagleitner)
Date Tue, 31 May 2016 18:07:28 GMT
Repository: hive
Updated Branches:
  refs/heads/master e91f69e21 -> 982293550


HIVE-13196 : UDFLike: reduce Regex NFA sizes (Gopal V via Gunther Hagleitner)

Signed-off-by: Ashutosh Chauhan <hashutosh@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/98229355
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/98229355
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/98229355

Branch: refs/heads/master
Commit: 98229355011cd1235c0c1e73b4f69643d7f502ec
Parents: e91f69e
Author: Gopal V <gopalv@apache.org>
Authored: Tue May 31 11:06:44 2016 -0700
Committer: Ashutosh Chauhan <hashutosh@apache.org>
Committed: Tue May 31 11:06:44 2016 -0700

----------------------------------------------------------------------
 ql/src/java/org/apache/hadoop/hive/ql/udf/UDFLike.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/98229355/ql/src/java/org/apache/hadoop/hive/ql/udf/UDFLike.java
----------------------------------------------------------------------
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/udf/UDFLike.java b/ql/src/java/org/apache/hadoop/hive/ql/udf/UDFLike.java
index 7bcd36e..9ac9548 100755
--- a/ql/src/java/org/apache/hadoop/hive/ql/udf/UDFLike.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/udf/UDFLike.java
@@ -77,7 +77,7 @@ public class UDFLike extends UDF {
       if (n == '_') {
         sb.append(".");
       } else if (n == '%') {
-        sb.append(".*");
+        sb.append(".*?");
       } else {
         sb.append(Pattern.quote(Character.toString(n)));
       }


Mime
View raw message