1717package org .apache .spark .sql .auron
1818
1919import java .util .ServiceLoader
20- import scala .annotation .{nowarn , tailrec }
20+
21+ import scala .annotation .tailrec
2122import scala .collection .JavaConverters ._
2223import scala .collection .mutable
24+
2325import org .apache .commons .lang3 .reflect .MethodUtils
2426import org .apache .hadoop .hive .ql .io .parquet .MapredParquetOutputFormat
2527import org .apache .spark .Partition
2628import org .apache .spark .broadcast .Broadcast
27- import org .apache .spark .internal .{Logging , config }
28- import org .apache .spark .sql .auron .AuronConvertStrategy .{childOrderingRequiredTag , convertStrategyTag , convertToNonNativeTag , convertibleTag , isNeverConvert , joinSmallerSideTag , neverConvertReasonTag }
29- import org .apache .spark .sql .auron .NativeConverters .{StubExpr , existTimestampType , isTypeSupported , roundRobinTypeSupported }
29+ import org .apache .spark .internal .{config , Logging }
30+ import org .apache .spark .sql .auron .AuronConvertStrategy .{childOrderingRequiredTag , convertibleTag , convertStrategyTag , convertToNonNativeTag , isNeverConvert , joinSmallerSideTag , neverConvertReasonTag }
31+ import org .apache .spark .sql .auron .NativeConverters .{existTimestampType , isTypeSupported , roundRobinTypeSupported , StubExpr }
3032import org .apache .spark .sql .auron .util .AuronLogUtils .logDebugPlanConversion
3133import org .apache .spark .sql .catalyst .expressions .AggregateWindowFunction
3234import org .apache .spark .sql .catalyst .expressions .Alias
@@ -43,6 +45,7 @@ import org.apache.spark.sql.catalyst.expressions.aggregate.AggregateExpression
4345import org .apache .spark .sql .catalyst .expressions .aggregate .AggregateFunction
4446import org .apache .spark .sql .catalyst .expressions .aggregate .Final
4547import org .apache .spark .sql .catalyst .expressions .aggregate .Partial
48+ import org .apache .spark .sql .catalyst .optimizer .{BuildLeft , BuildRight }
4649import org .apache .spark .sql .catalyst .plans .physical .HashPartitioning
4750import org .apache .spark .sql .catalyst .plans .physical .Partitioning
4851import org .apache .spark .sql .catalyst .plans .physical .RangePartitioning
@@ -70,6 +73,7 @@ import org.apache.spark.sql.hive.execution.InsertIntoHiveTable
7073import org .apache .spark .sql .hive .execution .auron .plan .NativeHiveTableScanBase
7174import org .apache .spark .sql .internal .SQLConf
7275import org .apache .spark .sql .types .LongType
76+
7377import org .apache .auron .configuration .AuronConfiguration
7478import org .apache .auron .jni .AuronAdaptor
7579import org .apache .auron .metric .SparkMetricNode
@@ -153,15 +157,6 @@ object AuronConverters extends Logging {
153157 supportedShuffleManagers.exists(name.contains)
154158 }
155159
156- // format: off
157- // scalafix:off
158- // necessary imports for cross spark versions build
159- @ nowarn(" cat=unused-imports" )
160- import org .apache .spark .sql .catalyst .plans ._
161- import org .apache .spark .sql .catalyst .optimizer ._
162- // scalafix:on
163- // format: on
164-
165160 def convertSparkPlanRecursively (exec : SparkPlan ): SparkPlan = {
166161 // convert
167162 var danglingConverted : Seq [SparkPlan ] = Nil
@@ -552,7 +547,7 @@ object AuronConverters extends Logging {
552547 org.apache.spark.sql.execution.auron.plan.BuildLeft
553548 case Some (org.apache.spark.sql.execution.auron.plan.BuildRight ) =>
554549 org.apache.spark.sql.execution.auron.plan.BuildRight
555- case None =>
550+ case _ =>
556551 logWarning(" JoinSmallerSideTag is missing, defaults to BuildRight" )
557552 org.apache.spark.sql.execution.auron.plan.BuildRight
558553 }
0 commit comments