[ 
https://issues.apache.org/jira/browse/HIVE-563?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12719907#action_12719907
 ] 

Raghotham Murthy commented on HIVE-563:
---------------------------------------

looks like there are several string comparisons for each evaluate call. One 
possiblity is to construct a static hashmap of partToExtract to an integer 
which is populated when evaluate is called the first time. Then, the rest of 
evaluate can just be a switch statement on that integer. Also, you can parse 
out the QUERY:<key> during the first call into a static variable to evaluate 
and then use that for the rest of the calls.

There are also a few typos: 
'partToExtarct' should be partToExtract
missing spaces : catch(Exception e){


> UDF for parsing the URL
> -----------------------
>
>                 Key: HIVE-563
>                 URL: https://issues.apache.org/jira/browse/HIVE-563
>             Project: Hadoop Hive
>          Issue Type: New Feature
>          Components: Server Infrastructure
>            Reporter: Suresh Antony
>            Assignee: Suresh Antony
>         Attachments: patch_563.txt, patch_563.txt.1
>
>
> Needs a udf to extract the parts of url from url string. 

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

Reply via email to