Skip to content

Commit

Permalink
Fix import so we can get ArraySeq from scala.collection.immutable._ i…
Browse files Browse the repository at this point in the history
…n Scala 2.13+ and collection.compat.immutable._ Scala 2.12-

Fix imports magic

Fix imports again

Fix style
  • Loading branch information
holdenk committed Nov 18, 2023
1 parent 1a97ffc commit 6781566
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ import org.apache.spark.util.{SparkResourceUtil, TaskResources}
import java.util
import java.util.{Collections, Objects}

import scala.collection.{immutable, mutable}
import scala.collection.compat._
import scala.collection.compat.immutable.ArraySeq
import scala.collection.mutable
import scala.language.implicitConversions

class GlutenPlugin extends SparkPlugin {
Expand Down Expand Up @@ -191,7 +193,7 @@ private[glutenproject] class GlutenDriverPlugin extends DriverPlugin with Loggin
private[glutenproject] class GlutenExecutorPlugin extends ExecutorPlugin {
private var executorEndpoint: GlutenExecutorEndpoint = _
private val taskListeners: Seq[TaskListener] =
(immutable.ArraySeq.unsafeWrapArray(Array(TaskResources)))
(ArraySeq.unsafeWrapArray(Array(TaskResources)))

/** Initialize the executor plugin. */
override def init(ctx: PluginContext, extraConf: util.Map[String, String]): Unit = {
Expand Down

0 comments on commit 6781566

Please sign in to comment.