Skip to content

Commit

Permalink
Add for other spark versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Imbruced committed Oct 11, 2024
1 parent 3b4c79b commit 79ced5a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ case class GeoPackageScan(
options: CaseInsensitiveStringMap,
loadOptions: GeoPackageOptions)
extends FileScan {

override def partitionFilters: Seq[Expression] = {
Seq.empty
}
Expand All @@ -48,6 +47,9 @@ case class GeoPackageScan(
Seq.empty
}

def withFilters(partitionFilters: Seq[Expression], dataFilters: Seq[Expression]): FileScan = {
copy(partitionFilters = partitionFilters, dataFilters = dataFilters)
}
override def createReaderFactory(): PartitionReaderFactory = {
val caseSensitiveMap = options.asScala.toMap
val hadoopConf = sparkSession.sessionState.newHadoopConfWithOptions(caseSensitiveMap)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ case class GeoPackageScan(
Seq.empty
}

def withFilters(partitionFilters: Seq[Expression], dataFilters: Seq[Expression]): FileScan = {
copy(partitionFilters = partitionFilters, dataFilters = dataFilters)
}

override def createReaderFactory(): PartitionReaderFactory = {
val caseSensitiveMap = options.asScala.toMap
val hadoopConf = sparkSession.sessionState.newHadoopConfWithOptions(caseSensitiveMap)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ case class GeoPackageScan(
Seq.empty
}

def withFilters(partitionFilters: Seq[Expression], dataFilters: Seq[Expression]): FileScan = {
copy(partitionFilters = partitionFilters, dataFilters = dataFilters)
}

override def createReaderFactory(): PartitionReaderFactory = {
val caseSensitiveMap = options.asScala.toMap
val hadoopConf = sparkSession.sessionState.newHadoopConfWithOptions(caseSensitiveMap)
Expand Down

0 comments on commit 79ced5a

Please sign in to comment.