Repository: incubator-drill
Updated Branches:
  refs/heads/master d616259d3 -> cd7aeebe6


DRILL-802: convert_to(int_field, 'INT_HADOOPV') throws IndexOutOfBoundsException


Project: http://git-wip-us.apache.org/repos/asf/incubator-drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-drill/commit/46a05030
Tree: http://git-wip-us.apache.org/repos/asf/incubator-drill/tree/46a05030
Diff: http://git-wip-us.apache.org/repos/asf/incubator-drill/diff/46a05030

Branch: refs/heads/master
Commit: 46a0503078bf20ed75b7e3530db0c75cc194afa0
Parents: d616259
Author: Aditya Kishore <[email protected]>
Authored: Wed May 21 18:21:53 2014 -0700
Committer: Jacques Nadeau <[email protected]>
Committed: Thu May 22 18:48:54 2014 -0700

----------------------------------------------------------------------
 .../apache/drill/exec/expr/fn/impl/conv/BigIntVLongConvertTo.java   | 1 +
 .../org/apache/drill/exec/expr/fn/impl/conv/IntVIntConvertTo.java   | 1 +
 2 files changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-drill/blob/46a05030/exec/java-exec/src/main/java/org/apache/drill/exec/expr/fn/impl/conv/BigIntVLongConvertTo.java
----------------------------------------------------------------------
diff --git 
a/exec/java-exec/src/main/java/org/apache/drill/exec/expr/fn/impl/conv/BigIntVLongConvertTo.java
 
b/exec/java-exec/src/main/java/org/apache/drill/exec/expr/fn/impl/conv/BigIntVLongConvertTo.java
index 4455781..dbf764d 100644
--- 
a/exec/java-exec/src/main/java/org/apache/drill/exec/expr/fn/impl/conv/BigIntVLongConvertTo.java
+++ 
b/exec/java-exec/src/main/java/org/apache/drill/exec/expr/fn/impl/conv/BigIntVLongConvertTo.java
@@ -47,6 +47,7 @@ public class BigIntVLongConvertTo implements DrillSimpleFunc {
 
   @Override
   public void eval() {
+    buffer.clear();
     org.apache.drill.exec.util.ConvertUtil.HadoopWritables.writeVLong(buffer, 
0, 9, in.value);
     out.buffer = buffer;
     out.start = 0;

http://git-wip-us.apache.org/repos/asf/incubator-drill/blob/46a05030/exec/java-exec/src/main/java/org/apache/drill/exec/expr/fn/impl/conv/IntVIntConvertTo.java
----------------------------------------------------------------------
diff --git 
a/exec/java-exec/src/main/java/org/apache/drill/exec/expr/fn/impl/conv/IntVIntConvertTo.java
 
b/exec/java-exec/src/main/java/org/apache/drill/exec/expr/fn/impl/conv/IntVIntConvertTo.java
index 0691838..383d001 100644
--- 
a/exec/java-exec/src/main/java/org/apache/drill/exec/expr/fn/impl/conv/IntVIntConvertTo.java
+++ 
b/exec/java-exec/src/main/java/org/apache/drill/exec/expr/fn/impl/conv/IntVIntConvertTo.java
@@ -47,6 +47,7 @@ public class IntVIntConvertTo implements DrillSimpleFunc {
 
   @Override
   public void eval() {
+    buffer.clear();
     org.apache.drill.exec.util.ConvertUtil.HadoopWritables.writeVLong(buffer, 
0, 9, in.value);
     out.buffer = buffer;
     out.start = 0;

Reply via email to