Skip to content

Commit

Permalink
Add DataSourceV2Strategy to Hive Session state's planner
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryshao committed Jan 18, 2018
1 parent 0219470 commit fc5d3ce
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import org.apache.spark.sql.catalyst.plans.logical.LogicalPlan
import org.apache.spark.sql.catalyst.rules.Rule
import org.apache.spark.sql.execution.SparkPlanner
import org.apache.spark.sql.execution.datasources._
import org.apache.spark.sql.execution.datasources.v2.DataSourceV2Strategy
import org.apache.spark.sql.hive.client.HiveClient
import org.apache.spark.sql.internal.{BaseSessionStateBuilder, SessionResourceLoader, SessionState}

Expand Down Expand Up @@ -101,6 +102,7 @@ class HiveSessionStateBuilder(session: SparkSession, parentState: Option[Session
override def strategies: Seq[Strategy] = {
experimentalMethods.extraStrategies ++
extraPlanningStrategies ++ Seq(
DataSourceV2Strategy,
FileSourceStrategy,
DataSourceStrategy(conf),
SpecialLimits,
Expand Down

0 comments on commit fc5d3ce

Please sign in to comment.