Skip to content

Native error is not propagated to SparkException when errorClass is empty #3726

@manuzhang

Description

@manuzhang

Describe the bug

- sql-file: expressions/array/array_union.sql [parquet.enable.dictionary=false] *** FAILED *** (267 milliseconds)
  java.lang.RuntimeException: Error executing SQL 'SELECT array_union(array(1, 2, 3), array(3, 4, 5)), array_union(array(1, 2), array()), array_union(array(), array(1)), array_union(cast(NULL as array<int>), array(1))'
  at org.apache.comet.CometSqlFileTestSuite.$anonfun$runTestFile$3(CometSqlFileTestSuite.scala:129)
  at scala.collection.immutable.List.foreach(List.scala:431)
  at org.apache.comet.CometSqlFileTestSuite.$anonfun$runTestFile$2(CometSqlFileTestSuite.scala:84)
  at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
  at org.apache.spark.util.Utils$.tryWithSafeFinally(Utils.scala:1529)
  at org.apache.spark.sql.test.SQLTestUtilsBase.withTable(SQLTestUtils.scala:306)
  at org.apache.spark.sql.test.SQLTestUtilsBase.withTable$(SQLTestUtils.scala:304)
  at org.apache.spark.sql.CometTestBase.withTable(CometTestBase.scala:55)
  at org.apache.comet.CometSqlFileTestSuite.$anonfun$runTestFile$1(CometSqlFileTestSuite.scala:84)
  at org.apache.spark.sql.catalyst.plans.SQLHelper.withSQLConf(SQLHelper.scala:54)
  ...
  Cause: org.apache.spark.SparkException: Job aborted due to stage failure: Task 0 in stage 19.0 failed 1 times, most recent failure: Lost task 0.0 in stage 19.0 (TID 67) (localhost executor driver): org.apache.spark.SparkException: [INTERNAL_ERROR] Cannot find main error class ''

Steps to reproduce

No response

Expected behavior

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions