Skip to content

Commit

Permalink
update supportedDelta
Browse files Browse the repository at this point in the history
  • Loading branch information
dcoliversun committed Sep 12, 2024
1 parent 0065dd7 commit 2cbf09a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,13 @@ object FilterTransformerFactory {
private def supportedDelta(plan: SparkPlan): Boolean = {
plan.find {
p =>
p.isInstanceOf[FileSourceScanExec] &&
p.asInstanceOf[FileSourceScanExec].relation.fileFormat.getClass.getName.contains("Delta")
p.isInstanceOf[
FileSourceScanExec] && "org.apache.spark.sql.delta.DeltaParquetFileFormat" == p
.asInstanceOf[FileSourceScanExec]
.relation
.fileFormat
.getClass
.getName
}.isDefined
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,13 @@ object ProjectTransformerFactory {
private def supportedDelta(plan: SparkPlan): Boolean = {
plan.find {
p =>
p.isInstanceOf[FileSourceScanExec] &&
p.asInstanceOf[FileSourceScanExec].relation.fileFormat.getClass.getName.contains("Delta")
p.isInstanceOf[
FileSourceScanExec] && "org.apache.spark.sql.delta.DeltaParquetFileFormat" == p
.asInstanceOf[FileSourceScanExec]
.relation
.fileFormat
.getClass
.getName
}.isDefined
}
}

0 comments on commit 2cbf09a

Please sign in to comment.