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

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

                Author: ASF GitHub Bot
            Created on: 19/Aug/21 02:28
            Start Date: 19/Aug/21 02:28
    Worklog Time Spent: 10m 
      Work Description: stiga-huang commented on pull request #2378:
URL: https://github.com/apache/hive/pull/2378#issuecomment-901560302


   Hi @kgyrtkirk, would you have time to look at this?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

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

> 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
>          Time Spent: 40m
>  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.3.4#803005)

Reply via email to