diff options
Diffstat (limited to 'exec/java-exec/src/test/java/org/apache/drill/exec/physical/impl/TestConvertFunctions.java')
-rw-r--r-- | exec/java-exec/src/test/java/org/apache/drill/exec/physical/impl/TestConvertFunctions.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/exec/java-exec/src/test/java/org/apache/drill/exec/physical/impl/TestConvertFunctions.java b/exec/java-exec/src/test/java/org/apache/drill/exec/physical/impl/TestConvertFunctions.java index 881495cfe..6476e0b28 100644 --- a/exec/java-exec/src/test/java/org/apache/drill/exec/physical/impl/TestConvertFunctions.java +++ b/exec/java-exec/src/test/java/org/apache/drill/exec/physical/impl/TestConvertFunctions.java @@ -348,6 +348,13 @@ public class TestConvertFunctions extends PopUnitTestBase { } @Test + public void testUTF8(@Injectable final DrillbitContext bitContext, + @Injectable UserServer.UserClientConnection connection) throws Throwable { + runTest(bitContext, connection, "convert_from(binary_string('apache_drill'), 'UTF8')", "apache_drill"); + runTest(bitContext, connection, "convert_to('apache_drill', 'UTF8')", new byte[] {'a', 'p', 'a', 'c', 'h', 'e', '_', 'd', 'r', 'i', 'l', 'l'}); + } + + @Test public void testBigIntVarCharReturnTripConvertLogical() throws Exception { RemoteServiceSet serviceSet = RemoteServiceSet.getLocalServiceSet(); |