[
https://issues.apache.org/jira/browse/HIVE-691?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Emil Ibrishimov updated HIVE-691:
---------------------------------
Attachment: HIVE-691.1.patch
Here is an example describe function:
{noformat}
query: DESCRIBE FUNCTION EXTENDED parse_url
parse_url(url, partToExtract[, key]) - extracts a part from a URL
Parts: HOST, PATH, QUERY, REF, PROTOCOL, AUTHORITY, FILE, USERINFO
key specifies which query to extract
Example:
> SELECT parse_url('http://facebook.com/path/p1.php?query=1', 'HOST') FROM
src LIMIT 1;
'facebook.com'
> SELECT parse_url('http://facebook.com/path/p1.php?query=1', 'QUERY') FROM
src LIMIT 1;
'query=1'
> SELECT parse_url('http://facebook.com/path/p1.php?query=1', 'QUERY',
'query') FROM src LIMIT 1;
'1'
{noformat}
> show documentation for user defined functions
> ---------------------------------------------
>
> Key: HIVE-691
> URL: https://issues.apache.org/jira/browse/HIVE-691
> Project: Hadoop Hive
> Issue Type: Improvement
> Components: Query Processor
> Reporter: Prasad Chakka
> Assignee: Emil Ibrishimov
> Attachments: HIVE-691.1.patch
>
>
> There are lot of functions and more of them will be added. I think it is
> cumbersome to update wiki or ask users to go to wiki to find out
> documentation. instead each user defined function can have an annotation
> containing documentation and 'show functions' command or similar can show the
> documentation to users on command line. it will also be easier to update the
> documentation along with code.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.