@@ -24,7 +24,7 @@ import org.apache.spark.sql.catalyst.expressions.Expression
2424import org .apache .spark .sql .catalyst .optimizer .{BuildLeft , BuildRight }
2525import org .apache .spark .sql .catalyst .plans .physical .{HashPartitioning , Partitioning , PartitioningCollection }
2626import org .apache .spark .sql .catalyst .rules .Rule
27- import org .apache .spark .sql .execution .{FileSourceScanExec , FilterExec , ProjectExec , SparkPlan }
27+ import org .apache .spark .sql .execution .{FileSourceScanExec , FileSourceScanLike , FilterExec , ProjectExec , SparkPlan }
2828import org .apache .spark .sql .execution .joins .{BroadcastHashJoinExec , BroadcastNestedLoopJoinExec , ShuffledHashJoinExec , ShuffledJoin , SortMergeJoinExec }
2929
3030/**
@@ -119,13 +119,13 @@ object ExtractJoinWithBuckets {
119119 if (j.buildSide == BuildLeft ) hasScanOperation(j.right) else hasScanOperation(j.left)
120120 case j : BroadcastNestedLoopJoinExec =>
121121 if (j.buildSide == BuildLeft ) hasScanOperation(j.right) else hasScanOperation(j.left)
122- case f : FileSourceScanExec => f.relation.bucketSpec.nonEmpty
122+ case f : FileSourceScanLike => f.relation.bucketSpec.nonEmpty
123123 case _ => false
124124 }
125125
126126 private def getBucketSpec (plan : SparkPlan ): Option [BucketSpec ] = {
127127 plan.collectFirst {
128- case f : FileSourceScanExec if f.relation.bucketSpec.nonEmpty &&
128+ case f : FileSourceScanLike if f.relation.bucketSpec.nonEmpty &&
129129 f.optionalNumCoalescedBuckets.isEmpty =>
130130 f.relation.bucketSpec.get
131131 }
0 commit comments