arina-ielchiieva commented on a change in pull request #1618: DRILL-6950: Row 
set-based scan framework
URL: https://github.com/apache/drill/pull/1618#discussion_r253459701
 
 

 ##########
 File path: 
exec/java-exec/src/test/java/org/apache/drill/exec/physical/impl/scan/ScanTestUtils.java
 ##########
 @@ -104,4 +108,23 @@ public static TupleMetadata schema(ResolvedTuple output) {
     }
     return schema;
   }
+
+  public static List<SchemaPath> expandMetadata(int dirCount) {
+    List<String> selected = Lists.newArrayList(
+        FULLY_QUALIFIED_NAME_COL,
+        FILE_PATH_COL,
+        FILE_NAME_COL,
+        SUFFIX_COL);
+
+    for (int i = 0; i < dirCount; i++) {
+      selected.add(PARTITION_COL + Integer.toString(i));
+    }
+    return RowSetTestUtils.projectList(selected);
+  }
+
+  public static List<SchemaPath> projectAllWithMetadata(int dirCount) {
+    return RowSetTestUtils.concat(
+        RowSetTestUtils.projectAll(),
+        expandMetadata(2));
 
 Review comment:
   Maybe we should pass `dirCount` instead of `2`?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to