vvysotskyi commented on a change in pull request #1849: DRILL-7362: COUNT(*) on
JSON with outer list results in JsonParse error
URL: https://github.com/apache/drill/pull/1849#discussion_r320397567
##########
File path:
exec/java-exec/src/test/java/org/apache/drill/exec/store/json/TestJsonRecordReader.java
##########
@@ -261,4 +261,18 @@ public void
testNotCountingQueryNotSkippingInvalidJSONRecords()
}
throw new Exception("testNotCountingQueryNotSkippingInvalidJSONRecords");
}
+
+ @Test
+ @Category(UnlikelyTest.class)
+ // See DRILL-7362
+ /* Test for CountingJSONReader */
+ public void testContainingArrayCount() throws Exception {
+ testBuilder()
+ .sqlQuery("select count(*) as cnt from cp.`store/json/listdoc.json`")
+ .unOrdered()
+ .baselineColumns("cnt")
+ .baselineValues(2L)
+ .build()
Review comment:
Please fix formatting and use `.go()` instead of `.build().run();`.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services