[ https://issues.apache.org/jira/browse/HIVE-6986?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13995594#comment-13995594 ]
Ashutosh Chauhan commented on HIVE-6986: ---------------------------------------- Thanks [~fpin] for patch. I think better fix might be to just do r.startsWith("select") Can you try that? > MatchPath fails with small resultExprString > ------------------------------------------- > > Key: HIVE-6986 > URL: https://issues.apache.org/jira/browse/HIVE-6986 > Project: Hive > Issue Type: Bug > Components: UDF > Reporter: Furcy Pin > Priority: Trivial > Attachments: HIVE-6986.1.patch > > > When using MatchPath, a query like this: > select year > from matchpath(on > flights_tiny > sort by fl_num, year, month, day_of_month > arg1('LATE.LATE+'), > arg2('LATE'), arg3(arr_delay > 15), > arg4('year') > ) > ; > will fail with error message > "FAILED: StringIndexOutOfBoundsException String index out of range: 6" -- This message was sent by Atlassian JIRA (v6.2#6252)