Skip to content

chore: Array literals tests enable#3633

Merged
comphead merged 5 commits intoapache:mainfrom
comphead:builtin
Mar 7, 2026
Merged

chore: Array literals tests enable#3633
comphead merged 5 commits intoapache:mainfrom
comphead:builtin

Conversation

@comphead
Copy link
Contributor

@comphead comphead commented Mar 6, 2026

Which issue does this PR close?

Closes #3338 .

Rationale for this change

What changes are included in this PR?

How are these changes tested?

@comphead comphead marked this pull request as draft March 6, 2026 01:13
spark.sql(sql)
}
} catch {
case e: Exception =>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

output the failed SQL that causes the file to fail

-- specific language governing permissions and limitations
-- under the License.

-- Config: spark.comet.expression.ArrayInsert.allowIncompatible=true
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spark 4.0 classname is ArrayInsert, in earlier versions ArrayAppend

@comphead comphead marked this pull request as ready for review March 7, 2026 18:11
@comphead comphead requested a review from andygrove March 7, 2026 18:12
Copy link
Member

@andygrove andygrove left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks @comphead

}
} catch {
case e: Exception =>
sys.error(s"Error executing SQL '$sql'. Reason: '${e.getMessage}''")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The original exception stack trace gets consumed. Would it be better to rethrow?

Suggested change
sys.error(s"Error executing SQL '$sql'. Reason: '${e.getMessage}''")
throw new RuntimeException(s"Error executing SQL '$sql'", e)

@comphead comphead merged commit 8cbec8e into apache:main Mar 7, 2026
110 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Native engine panics with 'index out of bounds' on literal array expressions

2 participants