hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ashutosh Chauhan (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-11339) org.apache.hadoop.hive.serde2.io.TimestampWritable.write(DataOutput out) makes incorrect cast
Date Fri, 29 Jul 2016 00:22:20 GMT

     [ https://issues.apache.org/jira/browse/HIVE-11339?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ashutosh Chauhan updated HIVE-11339:
------------------------------------
       Resolution: Fixed
    Fix Version/s: 2.2.0
           Status: Resolved  (was: Patch Available)

Pushed to master. Thanks, Zoltan!

> org.apache.hadoop.hive.serde2.io.TimestampWritable.write(DataOutput out) makes incorrect
cast
> ---------------------------------------------------------------------------------------------
>
>                 Key: HIVE-11339
>                 URL: https://issues.apache.org/jira/browse/HIVE-11339
>             Project: Hive
>          Issue Type: Bug
>          Components: Serializers/Deserializers
>    Affects Versions: 0.14.0
>            Reporter: Arnaud Linz
>            Assignee: Zoltan Haindrich
>              Labels: easyfix, newbie
>             Fix For: 2.2.0
>
>         Attachments: HIVE-11339.patch
>
>
> Hi, it's my first Jira and I don't know how to make patches, so I'll explain the issue
in the description as it is rather simple.
> I have a problem serializing "DefaultHCatRecord" using Apache Flink when those records
include Timestamps because of an incorrect class cast in org.apache.hadoop.hive.serde2.io.TimestampWritable.write(DataOutput
out). It is implemented using a cast to Outputstream  : 
> public void write(DataOutput out) throws IOException {
>     write((OutputStream) out);
>  }
> but nothing says that a DataOutput object is an OutputStream, (and it's not the case
in Flink) it should rather be implmented using the same code as write(OutputStream) :
> {
> checkBytes();
> out.write(currentBytes, offset, getTotalLength());
> }



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

Mime
View raw message