Skip to content

Commit

Permalink
Make ti version usable without selecting database (#545)
Browse files Browse the repository at this point in the history
  • Loading branch information
birdstorm authored and Zhexuan Yang committed Jan 5, 2019
1 parent ca04bd1 commit 0e214c4
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -28,7 +28,7 @@ import org.apache.spark.sql.execution.datasources.LogicalRelation
case class TiResolutionRule(getOrCreateTiContext: SparkSession => TiContext)(
sparkSession: SparkSession
) extends Rule[LogicalPlan] {
protected lazy val tiContext: TiContext = getOrCreateTiContext(sparkSession)
protected val tiContext: TiContext = getOrCreateTiContext(sparkSession)
private lazy val autoLoad = tiContext.autoLoad
protected lazy val meta: MetaManager = tiContext.meta
private lazy val tiCatalog = tiContext.tiCatalog
Expand Down

0 comments on commit 0e214c4

Please sign in to comment.