Skip to content

[VL] Fix GlutenSimpleSQLViewSuite in Spark 4.x#12502

Open
zml1206 wants to merge 1 commit into
apache:mainfrom
zml1206:GlutenSimpleSQLViewSuite
Open

[VL] Fix GlutenSimpleSQLViewSuite in Spark 4.x#12502
zml1206 wants to merge 1 commit into
apache:mainfrom
zml1206:GlutenSimpleSQLViewSuite

Conversation

@zml1206

@zml1206 zml1206 commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings July 13, 2026 01:42
@github-actions github-actions Bot added the CORE works for Gluten Core label Jul 13, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Re-enables GlutenSimpleSQLViewSuite for Spark 4.0/4.1 Velox UTs by replacing a Spark 4.x view test that relies on Spark structured errors with a Gluten-prefixed variant that tolerates Velox’s different error surface.

Changes:

  • Add a Gluten-specific test for storeAnalyzedPlanForView behavior around ALTER VIEW / temporary views in Spark 4.0 and 4.1.
  • Re-enable GlutenSimpleSQLViewSuite in Spark 4.0/4.1 Velox test settings while excluding the upstream Spark test case that fails due to error-format differences.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
gluten-ut/spark41/src/test/scala/org/apache/spark/sql/execution/GlutenSQLViewSuite.scala Adds a Gluten-prefixed view test and helper for missing-file assertions under Spark 4.1.
gluten-ut/spark41/src/test/scala/org/apache/gluten/utils/velox/VeloxTestSettings.scala Re-enables the suite and excludes the upstream Spark test that expects structured errors.
gluten-ut/spark40/src/test/scala/org/apache/spark/sql/execution/GlutenSQLViewSuite.scala Adds the same Gluten-prefixed view test and helper under Spark 4.0.
gluten-ut/spark40/src/test/scala/org/apache/gluten/utils/velox/VeloxTestSettings.scala Re-enables the suite and excludes the upstream Spark test that expects structured errors.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +26 to +34
private def assertMissingFileError(f: => Unit): Unit = {
val exception = intercept[SparkException](f)
val messages = Iterator
.iterate[Throwable](exception)(_.getCause)
.takeWhile(_ != null)
.flatMap(e => Option(e.getMessage))

assert(messages.exists(_.contains("FILE_NOT_FOUND")))
}
Comment on lines +26 to +34
private def assertMissingFileError(f: => Unit): Unit = {
val exception = intercept[SparkException](f)
val messages = Iterator
.iterate[Throwable](exception)(_.getCause)
.takeWhile(_ != null)
.flatMap(e => Option(e.getMessage))

assert(messages.exists(_.contains("FILE_NOT_FOUND")))
}
@zml1206 zml1206 requested review from philo-he and zhouyuan July 13, 2026 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CORE works for Gluten Core

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants