From 9575cb1b1de52adf345c152b13bd36017cc8c1ea Mon Sep 17 00:00:00 2001 From: Nezih Yigitbasi Date: Fri, 20 Feb 2015 14:33:10 -0800 Subject: [PATCH] Remove unnecessary call --- .../java/com/facebook/presto/hive/ParquetHiveRecordCursor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/presto-hive/src/main/java/com/facebook/presto/hive/ParquetHiveRecordCursor.java b/presto-hive/src/main/java/com/facebook/presto/hive/ParquetHiveRecordCursor.java index d98d62bf1c22..e15fa295f316 100644 --- a/presto-hive/src/main/java/com/facebook/presto/hive/ParquetHiveRecordCursor.java +++ b/presto-hive/src/main/java/com/facebook/presto/hive/ParquetHiveRecordCursor.java @@ -1173,7 +1173,7 @@ public void addBinary(Binary value) writeFieldNameIfSet(generator, fieldName); // todo don't assume binary is a utf-8 string byte[] bytes = value.getBytes(); - generator.writeUTF8String(value.getBytes(), 0, bytes.length); + generator.writeUTF8String(bytes, 0, bytes.length); wroteValue = true; } catch (IOException e) {