Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,8 @@ abstract class AvroSuite extends QueryTest with SharedSQLContext with SQLTestUti
val episodesAvro = testFile("episodes.avro")
val testAvro = testFile("test.avro")

override protected def beforeAll(): Unit = {
super.beforeAll()
spark.conf.set(SQLConf.FILES_MAX_PARTITION_BYTES.key, 1024)
override protected def sparkConf: SparkConf = {
super.sparkConf.set(SQLConf.FILES_MAX_PARTITION_BYTES, 1024L)
}

def checkReloadMatchesSaved(originalFile: String, newFile: String): Unit = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ class SessionCatalog(
* Drop all existing temporary views.
* For testing only.
*/
def clearTempTables(): Unit = synchronized {
def clearTempViews(): Unit = synchronized {
tempViews.clear()
}

Expand Down Expand Up @@ -1428,7 +1428,7 @@ class SessionCatalog(
dropTempFunction(func.funcName, ignoreIfNotExists = false)
}
}
clearTempTables()
clearTempViews()
globalTempViewManager.clear()
functionRegistry.clear()
tableRelationCache.invalidateAll()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ class SparkSession private(
*/
@transient lazy val catalog: Catalog = new CatalogImpl(self)

@transient private lazy val catalogs = new mutable.HashMap[String, CatalogPlugin]()
@transient private[sql] lazy val catalogs = new mutable.HashMap[String, CatalogPlugin]()

private[sql] def catalog(name: String): CatalogPlugin = synchronized {
catalogs.getOrElseUpdate(name, Catalogs.load(name, sessionState.conf))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ case class DataSourceResolution(
import org.apache.spark.sql.catalog.v2.CatalogV2Implicits._
import lookup._

lazy val v2SessionCatalog: CatalogPlugin = lookup.sessionCatalog
def v2SessionCatalog: CatalogPlugin = lookup.sessionCatalog
.getOrElse(throw new AnalysisException("No v2 session catalog implementation is available"))

override def apply(plan: LogicalPlan): LogicalPlan = plan resolveOperators {
Expand Down
Loading