pan3793 opened a new pull request, #7758: URL: https://github.com/apache/kyuubi/pull/7758
### Why are the changes needed? df5aa6c8b (KYUUBI #7746) added a test asserting that the optimized plan for a not-inlined nondeterministic CTE contains a `RepartitionByExpression` node. This assertion fails on Spark 3.3: SPARK-40105 (3.4.0) changed `ReplaceCTERefWithRepartition` to wrap not-inlined CTE references with `RepartitionByExpression`; before that it wraps them with a plain `Repartition`. So on Spark 3.3 the optimized plan contains `Repartition`, not `RepartitionByExpression`, and the assertion always fails. ### How was this patch tested? Updated the assertion to expect `Repartition` on Spark 3.3 and `RepartitionByExpression` on 3.4+, following the existing `isSparkV34OrGreater` pattern used elsewhere in this suite. Ran `HiveCatalogRangerSparkExtensionSuite` under both profiles: ``` build/mvn -Pspark-3.3 test -pl extensions/spark/kyuubi-spark-authz -am -Dtest=none -DwildcardSuites=org.apache.kyuubi.plugin.spark.authz.ranger.HiveCatalogRangerSparkExtensionSuite build/mvn test -pl extensions/spark/kyuubi-spark-authz -am -Dtest=none -DwildcardSuites=org.apache.kyuubi.plugin.spark.authz.ranger.HiveCatalogRangerSparkExtensionSuite ``` Both pass, including the two tests added by KYUUBI #7746. ### Was this patch authored or co-authored using generative AI tooling? Assisted-by: Claude Sonnet 5 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
