You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/05/23 00:23:00 UTC

[jira] [Work logged] (HIVE-26047) Vectorized LIKE UDF should use Re2J regex to address JDK-8203458

     [ https://issues.apache.org/jira/browse/HIVE-26047?focusedWorklogId=773256&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-773256 ]

ASF GitHub Bot logged work on HIVE-26047:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 23/May/22 00:22
            Start Date: 23/May/22 00:22
    Worklog Time Spent: 10m 
      Work Description: github-actions[bot] commented on PR #3117:
URL: https://github.com/apache/hive/pull/3117#issuecomment-1134031574

   This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
   Feel free to reach out on the dev@hive.apache.org list if the patch is in need of reviews.




Issue Time Tracking
-------------------

    Worklog Id:     (was: 773256)
    Time Spent: 40m  (was: 0.5h)

> Vectorized LIKE UDF should use Re2J regex to address JDK-8203458
> ----------------------------------------------------------------
>
>                 Key: HIVE-26047
>                 URL: https://issues.apache.org/jira/browse/HIVE-26047
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Naresh P R
>            Assignee: Naresh P R
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> Below pattern is taking a long time to validate regex in java8 with same trace as shown in java bug
> [JDK-8203458|https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8203458]
>  
> {code:java}
> import java.util.regex.Pattern;
> public class Test {
>   public static void main(String args[]) {
>     String pattern = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa_b"; 
>     Pattern CHAIN_PATTERN = Pattern.compile("(%?[^%_\\\\]+%?)+");
>     CHAIN_PATTERN.matcher(pattern).matches(); 
>   }
> }
> {code}
> Same is reproducible with following SQL
> {code:java}
> create table table1(name string);
> insert into table1 (name) values ('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa_b');
> select * from table1 where name like "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa_b";{code}



--
This message was sent by Atlassian Jira
(v8.20.7#820007)