You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Simon Maling (Jira)" <ji...@apache.org> on 2026/08/28 12:41:00 UTC

[jira] [Created] (SPARK-59081) HiveSessionStateBuilder does not apply injectHintResolutionRule

Simon Maling created SPARK-59081:
------------------------------------

             Summary: 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: 5.0.0
            Reporter: Simon Maling


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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org