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 2021/08/11 00:17:00 UTC

[jira] [Work logged] (HIVE-25230) add position and occurrence to instr()

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

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

                Author: ASF GitHub Bot
            Created on: 11/Aug/21 00:16
            Start Date: 11/Aug/21 00:16
    Worklog Time Spent: 10m 
      Work Description: github-actions[bot] commented on pull request #2378:
URL: https://github.com/apache/hive/pull/2378#issuecomment-896397555


   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.


-- 
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: gitbox-unsubscribe@hive.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

    Worklog Id:     (was: 636685)
    Time Spent: 20m  (was: 10m)

> 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: 20m
>  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)