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: [email protected]
For additional commands, e-mail: [email protected]