You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Xinrong Meng (Jira)" <ji...@apache.org> on 2024/09/04 07:16:00 UTC
[jira] [Updated] (SPARK-49487) ProtoToParsedPlanTestSuite should recognize rules in BaseSessionStateBuilder.scala
[ https://issues.apache.org/jira/browse/SPARK-49487?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xinrong Meng updated SPARK-49487:
---------------------------------
Summary: ProtoToParsedPlanTestSuite should recognize rules in BaseSessionStateBuilder.scala (was: ProtoToParsedPlanTestSuite should recognize rule in BaseSessionStateBuilder.scala)
> ProtoToParsedPlanTestSuite should recognize rules in BaseSessionStateBuilder.scala
> ----------------------------------------------------------------------------------
>
> Key: SPARK-49487
> URL: https://issues.apache.org/jira/browse/SPARK-49487
> Project: Spark
> Issue Type: Test
> Components: Connect
> Affects Versions: 4.0.0
> Reporter: Xinrong Meng
> Priority: Major
>
> A new Analyzer is created in the test suite ProtoToParsedPlanTestSuite, see [here|https://github.com/apache/spark/blob/master/sql/connect/server/src/test/scala/org/apache/spark/sql/connect/ProtoToParsedPlanTestSuite.scala#L160].
> This is why it didn’t recognize the rule added in BaseSessionStateBuilder, for example, [here|https://github.com/apache/spark/pull/47884/files#diff-9806431743675ca892eb73a801af2f4c43086f87ecbc0c94900c8f18660f4a50R208].
> Overriding extendedResolutionRules in the new Analyzer of the test suite is not feasible cause the SparkSession is null at the moment, leading to
>
> {{[info] java.lang.NullPointerException: Cannot invoke "org.apache.spark.sql.SparkSession.sessionState()" because "this.$outer.org$apache$spark$sql$catalyst$analysis$ResolveTranspose$$sparkSession" is null}}
>
> [https://github.com/apache/spark/pull/47884/files#diff-18773e9500b5f13ce74b6f9c01bfee44b6b5a70fc3378997cfb691c503d87bdaR182] should be enabled after the fix of test suite.
--
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