Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,17 @@
<artifactId>unused</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-aws</artifactId>
<version>${hadoop.version}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.massisframework/j-text-utils -->
<dependency>
<groupId>com.massisframework</groupId>
<artifactId>j-text-utils</artifactId>
<version>0.3.4</version>
</dependency>
<!--
This is needed by the scalatest plugin, and so is declared here to be available in
all child modules, just as scalatest is run in all children
Expand Down Expand Up @@ -403,7 +414,7 @@
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>14.0.1</version>
<scope>provided</scope>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.jpmml</groupId>
Expand Down Expand Up @@ -2995,7 +3006,7 @@
<profile>
<id>scala-2.12</id>
</profile>

<profile>
<id>scala-2.13</id>
<dependencyManagement>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,8 @@ object DataSource extends Logging {
pathStrings: Seq[String],
hadoopConf: Configuration,
checkEmptyGlobPath: Boolean,
checkFilesExist: Boolean): Seq[Path] = {
checkFilesExist: Boolean,
numThreads: Integer = 20): Seq[Path] = {
val qualifiedPaths = pathStrings.map { pathString =>
val path = new Path(pathString)
val fs = path.getFileSystem(hadoopConf)
Expand Down Expand Up @@ -767,7 +768,7 @@ object DataSource extends Logging {

if (checkFilesExist) {
try {
ThreadUtils.parmap(nonGlobPaths, "checkPathsExist", 20) { path =>
ThreadUtils.parmap(nonGlobPaths, "checkPathsExist", numThreads) { path =>
val fs = path.getFileSystem(hadoopConf)
if (!fs.exists(path)) {
throw new AnalysisException(s"Path does not exist: $path")
Expand Down
Loading