Skip to content

Commit

Permalink
Update uriExtractors.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
AngersZhuuuu committed Nov 6, 2023
1 parent 05a9480 commit 0298db5
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ class OptionsUriExtractor extends URIExtractor {

class BaseRelationFileIndexURIExtractor extends URIExtractor {
override def apply(v1: AnyRef): Seq[Uri] = {
v1.asInstanceOf[HadoopFsRelation].location.rootPaths.map(_.toString).map(Uri)
v1 match {
case h: HadoopFsRelation => h.location.rootPaths.map(_.toString).map(Uri)
case _ => Nil
}
}
}

0 comments on commit 0298db5

Please sign in to comment.