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

ASF GitHub Bot commented on HIVE-17259:
---------------------------------------

GitHub user pvillard31 opened a pull request:

    https://github.com/apache/hive/pull/223

    HIVE-17259 - add support for UNIONTYPE in Hive JDBC columns

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/pvillard31/hive HIVE-17259

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/hive/pull/223.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #223
    
----
commit ad9e44a6440b119cff4f4085e1b9b9f5e653ec37
Author: Pierre Villard <pierre.villard...@gmail.com>
Date:   2017-08-06T21:30:56Z

    HIVE-17259 - add support for UNIONTYPE in Hive JDBC columns

----


> Hive JDBC does not recognize UNIONTYPE columns
> ----------------------------------------------
>
>                 Key: HIVE-17259
>                 URL: https://issues.apache.org/jira/browse/HIVE-17259
>             Project: Hive
>          Issue Type: Bug
>          Components: Beeline, JDBC
>         Environment: Hive 1.2.1000.2.6.1.0-129
> Beeline version 1.2.1000.2.6.1.0-129 by Apache Hive
>            Reporter: Pierre Villard
>            Assignee: Pierre Villard
>
> Hive JDBC does not recognize UNIONTYPE columns.
> I've an external table backed by an avro schema containing a union type field.
> {noformat}
> "name" : "value",
> "type" : [ "int", "string", "null" ]
> {noformat}
> When describing the table I've:
> {noformat}
> describe test_table;
> +-------------------+---------------------------------------------------------------+----------+--+
> |     col_name      |                           data_type                     
>       | comment  |
> +-------------------+---------------------------------------------------------------+----------+--+
> | description       | string                                                  
>       |          |
> | name              | string                                                  
>       |          |
> | value             | uniontype<int,string,void>                              
>       |          |
> +-------------------+---------------------------------------------------------------+----------+--+
> {noformat}
> When doing a select query over the data using the Hive CLI, it works:
> {noformat}
> hive> select value from test_table;
> OK
> {0:10}
> {0:10}
> {0:9}
> {0:9}
> ...
> {noformat}
> But when using beeline, it fails:
> {noformat}
> 0: jdbc:hive2://....> select * from test_table;
> Error: Unrecognized column type: UNIONTYPE (state=,code=0)
> {noformat}
> By applying the patch provided with this JIRA, the command succeeds and 
> return the expected output.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to