Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

[NSE-843] ArrowDataSouce: Arrow dataset inspect() is called every tim… #844

Merged
merged 1 commit into from
Apr 14, 2022
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class ArrowFileFormat extends FileFormat with DataSourceRegister with Serializab
options.asJava).asScala.toMap))

// todo predicate validation / pushdown
val dataset = factory.finish();
val dataset = factory.finish(ArrowUtils.toArrowSchema(requiredSchema));

val filter = if (enableFilterPushDown) {
// disable filter pushdown by arrow 7.0.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ case class ArrowPartitionReaderFactory(
val path = partitionedFile.filePath
val factory = ArrowUtils.makeArrowDiscovery(URLDecoder.decode(path, "UTF-8"),
partitionedFile.start, partitionedFile.length, options)
val dataset = factory.finish()
val dataset = factory.finish(ArrowUtils.toArrowSchema(readDataSchema))
val filter = if (enableFilterPushDown) {
// disable filter pushdown by arrow 7.0.0
org.apache.arrow.dataset.filter.Filter.EMPTY
Expand Down