[
https://issues.apache.org/jira/browse/SPARK-4496?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14355084#comment-14355084
]
Chip Sands commented on SPARK-4496:
-----------------------------------
I have not look at the spark code. But it would be in the code that send the
result set to thrift. My guess is a smallint is defined somewhere as and int
(32 bit)
Hive does it correctly so maybe you can look there.
Just create a table with a smallint datatype.
Insert a row and select it back.
If you look at the packet trace you will see the getSchema, describes it
correctly as the smallint , but the select returns the data in a 32 bit thrift
value..
> smallint (16 bit value) is being send as a 32 bit value in the thrift
> interface.
> -----------------------------------------------------------------------------------
>
> Key: SPARK-4496
> URL: https://issues.apache.org/jira/browse/SPARK-4496
> Project: Spark
> Issue Type: Bug
> Components: Input/Output
> Affects Versions: 1.1.0
> Reporter: Chip Sands
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]