You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@drill.apache.org by ve...@apache.org on 2015/06/26 02:33:37 UTC

drill git commit: DRILL-3328: Add unittest for convert_from function on Hive BINARY type

Repository: drill
Updated Branches:
  refs/heads/master 25977105f -> 475dfd801


DRILL-3328: Add unittest for convert_from function on Hive BINARY type


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

Branch: refs/heads/master
Commit: 475dfd8016b8f4eee1fa79bb6ce7d921683b3b44
Parents: 2597710
Author: vkorukanti <ve...@gmail.com>
Authored: Thu Jun 25 14:12:36 2015 -0700
Committer: vkorukanti <ve...@gmail.com>
Committed: Thu Jun 25 16:56:03 2015 -0700

----------------------------------------------------------------------
 .../java/org/apache/drill/exec/hive/TestHiveStorage.java | 11 +++++++++++
 1 file changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/475dfd80/contrib/storage-hive/core/src/test/java/org/apache/drill/exec/hive/TestHiveStorage.java
----------------------------------------------------------------------
diff --git a/contrib/storage-hive/core/src/test/java/org/apache/drill/exec/hive/TestHiveStorage.java b/contrib/storage-hive/core/src/test/java/org/apache/drill/exec/hive/TestHiveStorage.java
index a5bca93..3f74091 100644
--- a/contrib/storage-hive/core/src/test/java/org/apache/drill/exec/hive/TestHiveStorage.java
+++ b/contrib/storage-hive/core/src/test/java/org/apache/drill/exec/hive/TestHiveStorage.java
@@ -41,6 +41,17 @@ public class TestHiveStorage extends HiveTestBase {
         .go();
   }
 
+  @Test // DRILL-3328
+  public void convertFromOnHiveBinaryType() throws Exception {
+    testBuilder()
+        .sqlQuery("SELECT convert_from(binary_field, 'UTF8') col1 from hive.readtest")
+        .unOrdered()
+        .baselineColumns("col1")
+        .baselineValues("binaryfield")
+        .baselineValues(new Object[] { null })
+        .go();
+  }
+
   /**
    * Test to ensure Drill reads the all supported types correctly both normal fields (converted to Nullable types) and
    * partition fields (converted to Required types).