[
https://issues.apache.org/jira/browse/HIVE-563?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Suresh Antony updated HIVE-563:
-------------------------------
Attachment: patch_563.txt.1
UDF to extract specific parts from URL
parse_url('http://facebook.com/path/p1.php?query=1', 'HOST') will return
'facebook.com'
parse_url('http://facebook.com/path/p1.php?query=1', 'PATH') will return
'/path/p1.php'
parse_url('http://facebook.com/path/p1.php?query=1', 'QUERY') will return
'query=1'
parse_url('http://facebook.com/path/p1.php?query=1#Ref', 'REF') will return
'Ref'
parse_url('http://facebook.com/path/p1.php?query=1#Ref', 'PROTOCOL') will
return 'http'
Possible values are HOST,PATH,QUERY,REF,PROTOCOL,AUTHORITY,FILE,USERINFO
Also you can get a value of particular key in QUERY, using syntax
QUERY:<KEY_NAME> eg: QUERY:k1.
> 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
>
>
> 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.