[ https://issues.apache.org/jira/browse/HIVE-26047?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated HIVE-26047: ---------------------------------- Labels: pull-request-available (was: ) > 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: 10m > 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.1#820001)