[
https://issues.apache.org/jira/browse/TAJO-342?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13836319#comment-13836319
]
Hudson commented on TAJO-342:
-----------------------------
SUCCESS: Integrated in Tajo-trunk-postcommit #580 (See
[https://builds.apache.org/job/Tajo-trunk-postcommit/580/])
TAJO-342: Implement strpos(string, substring) function. (hyoungjunkim via
hyunsik) (hyunsik:
https://git-wip-us.apache.org/repos/asf?p=incubator-tajo.git&a=commit&h=e29b062d69315d24d75d121b53987e24e0451071)
*
tajo-core/tajo-core-backend/src/main/java/org/apache/tajo/engine/function/string/StrPosb.java
*
tajo-core/tajo-core-backend/src/main/java/org/apache/tajo/master/TajoMaster.java
* CHANGES.txt
*
tajo-core/tajo-core-backend/src/test/java/org/apache/tajo/engine/function/TestStringOperatorsAndFunctions.java
*
tajo-core/tajo-core-backend/src/main/java/org/apache/tajo/engine/function/string/StrPos.java
> Implement strpos(string, substring) function
> --------------------------------------------
>
> Key: TAJO-342
> URL: https://issues.apache.org/jira/browse/TAJO-342
> Project: Tajo
> Issue Type: New Feature
> Components: operator/function/udf
> Reporter: Hyunsik Choi
> Assignee: hyoungjunkim
> Priority: Minor
> Fix For: 0.8-incubating
>
> Attachments: TAJO-342.patch, TAJO-342_2.patch
>
>
> h3. Function Definition
> {code}
> int strpos(string text, substring text)
> {code}
> h3. Description
> This function finds the location of specified substring.
> * If *string* or *substring* is null, the result should be null.
> * If *substring* is '', the result should be 1.
> * If there is no matched *substring*, the result should be 0.
> * The result is one-based index.
> h3. Example.
> {code}
> hyunsik=> select strpos('tajo','jo');
> strpos
> --------
> 3
> (1 row)
> {code}
--
This message was sent by Atlassian JIRA
(v6.1#6144)