You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by GitBox <gi...@apache.org> on 2019/04/11 02:25:52 UTC
[GitHub] [drill] amansinha100 commented on a change in pull request #1745:
DRILL-7166: Count query with wildcard should skip reading of metadata
summary file
amansinha100 commented on a change in pull request #1745: DRILL-7166: Count query with wildcard should skip reading of metadata summary file
URL: https://github.com/apache/drill/pull/1745#discussion_r274237088
##########
File path: exec/java-exec/src/test/java/org/apache/drill/exec/planner/logical/TestConvertCountToDirectScan.java
##########
@@ -238,4 +238,40 @@ public void testCountsWithMetadataCacheSummaryAndDirPruning() throws Exception {
test("drop table if exists %s", tableName);
}
}
+
+ @Test
+ public void testCountsWithWildCard() throws Exception {
+ test("use dfs.tmp");
+ String tableName = "parquet_table_counts";
+
+ try {
+ for (int i = 0; i < 10; i++) {
+ test(String.format("create table `%s/12/%s` as select * from cp.`tpch/orders.parquet`", tableName, i));
Review comment:
Since the test does not actually need a larger table, could you perhaps use a smaller table (like nation) here since there are 13 CTAS statements and doing a CTAS on 'orders' adds extra time to the test.
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services