Skip to content

Commit 35f0a01

Browse files
committed
remove unused import
1 parent 07dd32e commit 35f0a01

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

sql/hive/src/main/scala/org/apache/spark/sql/hive/client/HiveClientImpl.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,8 @@ private[hive] class HiveClientImpl(
314314
Thread.currentThread().setContextClassLoader(original)
315315
if (originState != null) {
316316
SessionState.setCurrentSessionState(originState)
317+
} else {
318+
SessionState.detachSession()
317319
}
318320
HiveCatalogMetrics.incrementHiveClientCalls(1)
319321
}

sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/HiveTableScanExec.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import org.apache.spark.sql.catalyst.plans.QueryPlan
3737
import org.apache.spark.sql.execution._
3838
import org.apache.spark.sql.execution.metric.SQLMetrics
3939
import org.apache.spark.sql.hive._
40-
import org.apache.spark.sql.hive.client.{HiveClient, HiveClientImpl}
40+
import org.apache.spark.sql.hive.client.HiveClientImpl
4141
import org.apache.spark.sql.internal.SQLConf
4242
import org.apache.spark.sql.types.{BooleanType, DataType}
4343
import org.apache.spark.util.Utils

0 commit comments

Comments
 (0)