[
https://issues.apache.org/jira/browse/SPARK-59081?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Cheng Pan resolved SPARK-59081.
-------------------------------
Fix Version/s: 4.0.5
4.1.4
4.2.1
4.3.0
Resolution: Fixed
Issue resolved by pull request 58383
[https://github.com/apache/spark/pull/58383]
> 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
> Fix For: 4.0.5, 4.1.4, 4.2.1, 4.3.0
>
>
> 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]