hadoop-hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Suresh Antony (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HIVE-563) UDF for parsing the URL
Date Tue, 16 Jun 2009 01:38:07 GMT

     [ 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.


Mime
View raw message