aboutsummaryrefslogtreecommitdiff
path: root/exec/jdbc
diff options
context:
space:
mode:
authorJason Altekruse <altekrusejason@gmail.com>2014-08-18 16:57:16 -0700
committerJacques Nadeau <jacques@apache.org>2014-08-27 18:38:32 -0700
commit528308c325efd7804572e6d34819d8b3da7ff3b4 (patch)
tree11a84b42c8471a0645038f47d4dd9c697e7bffaf /exec/jdbc
parent929d765afd9da2fb0010a97e90b2ee19f245e37c (diff)
DRILL-1313: All text mode for json reader
Current implementation handles nulls that appear while in text mode differently depending if they appear in lists or maps. This allows for a null where a list or map is expected to act the same way it does without text mode enabled. For an expected map it just assumes that the field didn't exist, in which case the leaves below become null filled, and for a list it will default to showing an empty list. If we are actually inside of a list, a null in JSON will be treated the same as the string "null", which improves over the previous behavior of just dropping the null value all together, as we do not support null values within any of the repeated primitive vectors currently. Patch has been rebased on top of merge branch.
Diffstat (limited to 'exec/jdbc')
-rw-r--r--exec/jdbc/src/test/java/org/apache/drill/jdbc/test/TestJdbcDistQuery.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/exec/jdbc/src/test/java/org/apache/drill/jdbc/test/TestJdbcDistQuery.java b/exec/jdbc/src/test/java/org/apache/drill/jdbc/test/TestJdbcDistQuery.java
index 39ba043c0..d10eeb289 100644
--- a/exec/jdbc/src/test/java/org/apache/drill/jdbc/test/TestJdbcDistQuery.java
+++ b/exec/jdbc/src/test/java/org/apache/drill/jdbc/test/TestJdbcDistQuery.java
@@ -35,6 +35,7 @@ import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Rule;
import org.junit.Test;
+import org.junit.Ignore;
import org.junit.rules.TestRule;
import com.google.common.base.Stopwatch;
@@ -110,6 +111,7 @@ public class TestJdbcDistQuery extends JdbcTest{
+ "ORDER BY R_REGIONKEY", WORKING_PATH));
}
+ @Ignore
@Test
public void testJoinSingleFile() throws Exception{
testQuery(String.format("select T1.R_REGIONKEY "
@@ -118,6 +120,7 @@ public class TestJdbcDistQuery extends JdbcTest{
+ "on T1.R_REGIONKEY = T2.N_REGIONKEY", WORKING_PATH, WORKING_PATH));
}
+ @Ignore
@Test
public void testJoinMultiFile() throws Exception{
testQuery(String.format("select T1.R_REGIONKEY "
@@ -126,6 +129,7 @@ public class TestJdbcDistQuery extends JdbcTest{
+ "on T1.R_REGIONKEY = T2.N_REGIONKEY", WORKING_PATH, WORKING_PATH));
}
+ @Ignore
@Test
public void testJoinMFileWhere() throws Exception{
testQuery(String.format("select T1.R_REGIONKEY, T1.R_NAME "
@@ -159,6 +163,7 @@ public class TestJdbcDistQuery extends JdbcTest{
+ "order by R_REGIONKEY ", WORKING_PATH ));
}
+ @Ignore
@Test
public void testJoinAggSortWhere() throws Exception{
testQuery(String.format("select T1.R_REGIONKEY, COUNT(1) as CNT "