This is an automated email from the ASF dual-hosted git repository.
ulyssesyou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-gluten.git
The following commit(s) were added to refs/heads/main by this push:
new 6514392ad [GLUTEN-4899][VL] Fix 3.5 build issue with -Pspark-ut (#4975)
6514392ad is described below
commit 6514392ad2366d13d08a86dcb91036dc1faeb143
Author: ayushi-agarwal <[email protected]>
AuthorDate: Wed Mar 20 07:21:49 2024 +0530
[GLUTEN-4899][VL] Fix 3.5 build issue with -Pspark-ut (#4975)
---
.../src/test/scala/org/apache/spark/sql/GlutenSQLTestsTrait.scala | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git
a/gluten-ut/common/src/test/scala/org/apache/spark/sql/GlutenSQLTestsTrait.scala
b/gluten-ut/common/src/test/scala/org/apache/spark/sql/GlutenSQLTestsTrait.scala
index 98d12f5a3..5c6cc2e3f 100644
---
a/gluten-ut/common/src/test/scala/org/apache/spark/sql/GlutenSQLTestsTrait.scala
+++
b/gluten-ut/common/src/test/scala/org/apache/spark/sql/GlutenSQLTestsTrait.scala
@@ -16,6 +16,8 @@
*/
package org.apache.spark.sql
+import io.glutenproject.sql.shims.SparkShimLoader
+
import org.apache.spark.sql.catalyst.plans.logical
import org.apache.spark.sql.catalyst.util.{sideBySide, stackTraceToString}
import org.apache.spark.sql.execution.SQLExecution
@@ -59,10 +61,11 @@ trait GlutenSQLTestsTrait extends QueryTest with
GlutenSQLTestsBaseTrait {
try df
catch {
case ae: AnalysisException =>
- if (ae.plan.isDefined) {
+ val plan = SparkShimLoader.getSparkShims.getAnalysisExceptionPlan(ae)
+ if (plan.isDefined) {
fail(s"""
|Failed to analyze query: $ae
- |${ae.plan.get}
+ |${plan.get}
|
|${stackTraceToString(ae)}
|""".stripMargin)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]