hadoop-hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yuntao Jia (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HIVE-541) Implement UDFs: INSTR and LOCATE
Date Wed, 15 Jul 2009 17:40:15 GMT

    [ https://issues.apache.org/jira/browse/HIVE-541?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12731582#action_12731582

Yuntao Jia commented on HIVE-541:

The patch now uses "String.indexOf(String)" to find the position of a text inside of another
text. What about writing our own function like 

int find(Text text, Text subtext);

It does not requires converting Texts to Strings any more. Would it be even faster?

> Implement UDFs: INSTR and LOCATE
> --------------------------------
>                 Key: HIVE-541
>                 URL: https://issues.apache.org/jira/browse/HIVE-541
>             Project: Hadoop Hive
>          Issue Type: New Feature
>    Affects Versions: 0.4.0
>            Reporter: Zheng Shao
>            Assignee: Min Zhou
>         Attachments: HIVE-541.1.patch
> http://dev.mysql.com/doc/refman/5.0/en/string-functions.html#function_instr
> http://dev.mysql.com/doc/refman/5.0/en/string-functions.html#function_locate
> These functions can be directly implemented with Text (instead of String). This will
make the test of whether one string contains another string much faster.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message