Could it have something to do with a change in some other thrift file? I
added a new field in hive_metastore.thrift under the Table struct. In my
knowledge, it never touches TBinaryColumn.java, I also compared the
TCLIService.thrift and TBinaryColumn.java with the prod code and it looks
exactly the same.  Which is why it's more confusing since
TBaseHelper.toString() is coming from an external jar.

Sanchay.

On Thu, Jun 14, 2018 at 1:12 PM, Sanchay Javeria <javer...@illinois.edu>
wrote:

> Hey Alan,
>
> I'm running Thrift 0.9.3
>
> On Thu, Jun 14, 2018 at 12:26 PM, Alan Gates <alanfga...@gmail.com> wrote:
>
>> What version of thrift do you have?
>>
>> Alan.
>>
>> On Thu, Jun 14, 2018 at 11:48 AM Sanchay Javeria <javer...@illinois.edu>
>> wrote:
>>
>> > Hi,
>> >
>> > I'm seeing a weird error in TBinaryColumn.java on line 383 inside the
>> > toString() method. There is a call being made to
>> > org.apache.thrift.TBaseHelper.toString(this.values, sb). Looking into
>> this
>> > method tells that TBaseHelper.toString() assumes ByteBuffer as the first
>> > argument whereas this.values is of type List<ByteBuffer>.
>> >
>> > Building the code with "mvn clean install -Pthriftif -DskipTests
>> > -Dthrift.home=/usr/local  -Phadoop-2" says:
>> >
>> >
>> > hive/service/src/gen/thrift/gen-javabean/org/apache/hive/ser
>> vice/cli/thrift/TBinaryColumn.java:[383,50]
>> > incompatible types: java.util.List<java.nio.ByteBuffer> cannot be
>> converted
>> > to java.nio.ByteBuffer [ERROR]
>> >
>> > under the module "Hive Service".
>> > TBinaryColumn.java is generated by TCLIService.thrift (line 378) so I
>> don't
>> > know what I should do to rectify this.
>> >
>> > Any help?
>> >
>>
>
>

Reply via email to