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

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

                Author: ASF GitHub Bot
            Created on: 14/May/22 02:28
            Start Date: 14/May/22 02:28
    Worklog Time Spent: 10m 
      Work Description: stiga-huang commented on PR #2378:
URL: https://github.com/apache/hive/pull/2378#issuecomment-1126616115

   Thanks for your review, @dengzhhu653 !




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

    Worklog Id:     (was: 770460)
    Time Spent: 1h 50m  (was: 1h 40m)

> add position and occurrence to instr()
> --------------------------------------
>
>                 Key: HIVE-25230
>                 URL: https://issues.apache.org/jira/browse/HIVE-25230
>             Project: Hive
>          Issue Type: New Feature
>          Components: UDF
>            Reporter: Quanlong Huang
>            Assignee: Quanlong Huang
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.0.0, 4.0.0-alpha-2
>
>          Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> Current instr() only supports two arguments:
> {code:java}
> instr(str, substr) - Returns the index of the first occurance of substr in str
> {code}
> Other systems (Vertica, Oracle, Impala etc) support additional position and 
> occurrence arguments:
> {code:java}
> instr(str, substr[, pos[, occurrence]])
> {code}
> Oracle doc: 
> [https://docs.oracle.com/database/121/SQLRF/functions089.htm#SQLRF00651]
> It'd be nice to support this as well. Otherwise, it's a SQL difference 
> between Impala and Hive.
>  Impala supports this in IMPALA-3973



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

Reply via email to