[ 
https://issues.apache.org/jira/browse/HAWQ-465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15207007#comment-15207007
 ] 

ASF GitHub Bot commented on HAWQ-465:
-------------------------------------

Github user hornn commented on the pull request:

    https://github.com/apache/incubator-hawq/pull/479#issuecomment-199957300
  
    Not sure I understood the purpose of caching the external data, but nice 
implementation.
    Could you please add an explanation here or in the code as to when it's is 
going to be used?
    
    To continue the conversation in Shivram's PR of the Java changes - since 
the API between HAWQ and PXF changed, I think the protocol version should be 
bumped up.


> Implement stored procedure to return fields metainfo from PXF
> -------------------------------------------------------------
>
>                 Key: HAWQ-465
>                 URL: https://issues.apache.org/jira/browse/HAWQ-465
>             Project: Apache HAWQ
>          Issue Type: Sub-task
>          Components: Hcatalog, PXF
>            Reporter: Oleksandr Diachenko
>            Assignee: Oleksandr Diachenko
>             Fix For: 2.0.0
>
>
> User should be able to call built-in function:
> {code}
> select pxf_get_object_fields('source_name', 'container_name', 'object_name');
>  pxf_get_object_fields 
> {code}
> to retrieve all metadata for given source, container, object.
> Input parameters:
> ||Name||Type||Mode||
> |profile|text|IN|
> |pattern|text|IN|
> |path|text|OUT|
> |objectname|text|OUT|
> |fieldname|text|OUT|
> |fieldtype|text|OUT|
> |fieldmodifiers|text|OUT|
> Example:
> {noformat}
> # select * from pxf_get_object_fields('Hive', 'default/tab*');
>   path  | objectname  | fieldname       |    fieldtype   |  fieldmodifiers |
> ---------+-----------------+------------------ 
> +----------------+-------------------+
> default |      table1     |        col1         |        int4       |     not 
> null       |
> default |      table1     |        col2         |        text       |         
>                |
> default |      table2     |        col1         |        int4       |     not 
> null       |
> default |      table2     |        col2         |        text       |         
>                |
> (4 rows)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to