diff options
Diffstat (limited to 'exec/java-exec/src/test/java/org/apache/drill/test/PhysicalOpUnitTestBase.java')
-rw-r--r-- | exec/java-exec/src/test/java/org/apache/drill/test/PhysicalOpUnitTestBase.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/exec/java-exec/src/test/java/org/apache/drill/test/PhysicalOpUnitTestBase.java b/exec/java-exec/src/test/java/org/apache/drill/test/PhysicalOpUnitTestBase.java index b0820e926..27a4ad668 100644 --- a/exec/java-exec/src/test/java/org/apache/drill/test/PhysicalOpUnitTestBase.java +++ b/exec/java-exec/src/test/java/org/apache/drill/test/PhysicalOpUnitTestBase.java @@ -56,6 +56,7 @@ import org.apache.drill.exec.record.VectorAccessible; import org.apache.drill.exec.server.DrillbitContext; import org.apache.drill.exec.store.RecordReader; import org.apache.drill.exec.rpc.NamedThreadFactory; +import org.apache.hadoop.fs.Path; import org.junit.After; import org.junit.Before; import org.junit.Rule; @@ -399,9 +400,9 @@ public class PhysicalOpUnitTestBase extends ExecTest { * @param columnsToRead * @return The {@link org.apache.drill.exec.store.easy.json.JSONRecordReader} corresponding to each given input path. */ - public static Iterator<RecordReader> getJsonReadersFromInputFiles(DrillFileSystem fs, List<String> inputPaths, FragmentContext fragContext, List<SchemaPath> columnsToRead) { + public static Iterator<RecordReader> getJsonReadersFromInputFiles(DrillFileSystem fs, List<Path> inputPaths, FragmentContext fragContext, List<SchemaPath> columnsToRead) { List<RecordReader> readers = new ArrayList<>(); - for (String inputPath : inputPaths) { + for (Path inputPath : inputPaths) { readers.add(new JSONRecordReader(fragContext, inputPath, fs, columnsToRead)); } return readers.iterator(); |