Skip to content

Commit

Permalink
[SEDONA-696] Fix geopackage on databricks. (#1747)
Browse files Browse the repository at this point in the history
  • Loading branch information
Imbruced authored Jan 15, 2025
1 parent 52b6ae8 commit cc69f28
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,11 @@ class GeoPackageScanBuilder(
extends FileScanBuilder(sparkSession, fileIndex, dataSchema) {

override def build(): Scan = {
val paths = fileIndex.allFiles().map(_.getPath.toString)

val fileIndexAdjusted =
if (loadOptions.showMetadata)
new InMemoryFileIndex(
sparkSession,
paths.slice(0, 1).map(new org.apache.hadoop.fs.Path(_)),
fileIndex.inputFiles.slice(0, 1).map(new org.apache.hadoop.fs.Path(_)),
options.asCaseSensitiveMap.asScala.toMap,
userDefinedSchema)
else fileIndex
Expand Down

0 comments on commit cc69f28

Please sign in to comment.