cgivre commented on a change in pull request #2092:
URL: https://github.com/apache/drill/pull/2092#discussion_r507137822
##########
File path:
exec/java-exec/src/test/java/org/apache/drill/exec/metastore/TestMetastoreWithEasyFormatPlugin.java
##########
@@ -1079,15 +1079,17 @@ public void testFilesPruningWithLimit() throws
Exception {
queryBuilder()
.sql("select * from dfs.tmp.`%s` limit 1", tableName)
.planMatcher()
- .include("Limit", "numFiles=1,")
+ .include("Limit", "numFiles=1", "maxRecords=1")
.match();
// each file has 10 records, so 3 files should be picked
queryBuilder()
.sql("select * from dfs.tmp.`%s` limit 21", tableName)
.planMatcher()
- .include("Limit", "numFiles=3")
+ .include("Limit", "numFiles=3", "maxRecords=21")
.match();
+ String plan = queryBuilder().sql("select * from dfs.tmp.`%s` limit 21",
tableName).explainText();
+ System.out.println(plan);
Review comment:
Fixed.
----------------------------------------------------------------
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]