[ 
https://issues.apache.org/jira/browse/SPARK-59081?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated SPARK-59081:
-----------------------------------
    Labels: pull-request-available  (was: )

> 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, 4.1.3, 4.2.1, 4.1.4, 4.4.0
>            Reporter: Simon Maling
>            Priority: Major
>              Labels: pull-request-available
>
> 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).
>  
> 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]

Reply via email to