You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Russell Alexander Spitzer (JIRA)" <ji...@apache.org> on 2016/01/23 00:33:40 UTC

[jira] [Commented] (SPARK-12143) When column type is binary, select occurs ClassCastExcption in Beeline.

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

Russell Alexander Spitzer commented on SPARK-12143:
---------------------------------------------------

I see this as well using beeline to read from spark-sql-thriftserver on a table with a binary column.

{code}
0: jdbc:hive2://localhost:10000> describe bios;
+------------+------------+--------------------+
|  col_name  | data_type  |      comment       |
+------------+------------+--------------------+
| user_name  | string     | from deserializer  |
| bio        | binary     | from deserializer  |
+------------+------------+--------------------+
2 rows selected (0.03 seconds)
0: jdbc:hive2://localhost:10000> select * from bios;
Error: java.lang.String cannot be cast to [B (state=,code=0)
{code}

> When column type is binary, select occurs ClassCastExcption in Beeline.
> -----------------------------------------------------------------------
>
>                 Key: SPARK-12143
>                 URL: https://issues.apache.org/jira/browse/SPARK-12143
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>            Reporter: meiyoula
>
> In Beeline, execute below sql:
> 1. create table bb(bi binary);
> 2. load data inpath 'tmp/data' into table bb;
> 3.select * from bb;
>  Error: java.lang.ClassCastException: java.lang.String cannot be cast to [B (state=, code=0)



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org