[
https://issues.apache.org/jira/browse/SPARK-59081?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Simon Maling updated SPARK-59081:
---------------------------------
Affects Version/s: (was: 4.2.0)
(was: 5.0.0)
> HiveSessionStateBuilder does not apply injectHintResolutionRule
> ---------------------------------------------------------------
>
> Key: SPARK-59081
> URL: https://issues.apache.org/jira/browse/SPARK-59081
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 4.1.3
> Reporter: Simon Maling
> Priority: Major
>
> HiveSessionStateBuilder constructs its own Analyzer and does not override
> hintResolutionRules. The Catalyst default is Nil, so
> SparkSessionExtensions.injectHintResolutionRule is ignored when Hive support
> is enabled (enableHiveSupport(), Hive Thrift Server / jdbc:hive2).
> BaseSessionStateBuilder already sets:
> override val hintResolutionRules: Seq[Rule[LogicalPlan]] =
> customHintResolutionRules
> injectResolutionRule is not a substitute: Hive's extendedResolutionRules run
> ResolveSQLOnFile before customResolutionRules. This is the same class of miss
> as SPARK-56453 (Hive analyzer lists not updated when the in-memory builder
> was).
> Draft PR: https://github.com/apache/spark/pull/58383
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]