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 <[email protected]> Authored: Thu Jun 25 14:12:36 2015 -0700 Committer: vkorukanti <[email protected]> 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).
