Skip to content

[VL] Re-enable SPARK-36286 timestamp cast test with Velox 18502 - #12771

Open
Smallfu666 wants to merge 1 commit into
apache:mainfrom
Smallfu666:fix/spark36286-re-enable-tests
Open

[VL] Re-enable SPARK-36286 timestamp cast test with Velox 18502#12771
Smallfu666 wants to merge 1 commit into
apache:mainfrom
Smallfu666:fix/spark36286-re-enable-tests

Conversation

@Smallfu666

Copy link
Copy Markdown
Contributor

What

Re-enables the SPARK-36286: invalid string cast to timestamp test that was disabled across all Spark version shims (spark33/34/35/40/41).

The test was disabled because Velox accepted CAST('2015-03-18T' AS TIMESTAMP) as a valid date with zeroed time (2015-03-18 00:00:00), while Spark returns NULL (a T separator must be followed immediately by the time component).

Velox PR facebookincubator/velox#18502 fixes the parser to reject trailing-T strings. This PR re-enables the Gluten regression test to validate that fix.

Change

  • Remove .exclude("SPARK-36286: invalid string cast to timestamp") from VeloxTestSettings.scala in all 5 shims.
  • Set UPSTREAM_VELOX_PR_ID="18502" in ep/build-velox/src/get-velox.sh so Gluten CI builds its pinned Velox baseline with the proposed fix applied.

Testing

UPSTREAM_VELOX_PR_ID="18502" is intentionally set so that Gluten CI:

  1. checks out its normal pinned Velox baseline;
  2. downloads Velox PR #18502 as a patch;
  3. applies the patch;
  4. builds Gluten/Velox;
  5. runs the re-enabled SPARK-36286 test against the actual proposed Velox fix.

Once #18502 is merged and Gluten's pinned Velox baseline contains the fix, the PR ID pin can be removed.

Related

Remove the test exclusion for "SPARK-36286: invalid string cast to
timestamp" across all Spark version shims (spark33/34/35/40/41).
The test was disabled because Velox accepted trailing-T strings as
valid timestamps; Velox PR 18502 fixes the parser to reject them.

Set UPSTREAM_VELOX_PR_ID="18502" in get-velox.sh so Gluten CI builds
its pinned Velox baseline with the proposed fix applied, validating
the re-enabled test against the actual Velox change.

Once 18502 is merged and Gluten's pinned Velox baseline contains the
fix, the PR ID pin can be removed.
Copilot AI lite review requested due to automatic review settings August 14, 2026 08:03
@github-actions github-actions Bot added CORE works for Gluten Core BUILD VELOX labels Aug 14, 2026
@github-actions

Copy link
Copy Markdown

Run Gluten Clickhouse CI on x86

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

This PR re-enables the SPARK-36286 regression test for invalid string-to-timestamp casting in the Velox backend across all Spark shims, and attempts to validate the behavior by applying an upstream Velox PR patch during the Velox build.

Changes:

  • Removed the .exclude("SPARK-36286: invalid string cast to timestamp") filter from VeloxTestSettings.scala in Spark 3.3/3.4/3.5/4.0/4.1 shims.
  • Set UPSTREAM_VELOX_PR_ID="18502" in ep/build-velox/src/get-velox.sh to auto-apply the upstream Velox fix during CI builds.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
gluten-ut/spark33/src/test/scala/org/apache/gluten/utils/velox/VeloxTestSettings.scala Re-enables the SPARK-36286 test by removing its exclusion.
gluten-ut/spark34/src/test/scala/org/apache/gluten/utils/velox/VeloxTestSettings.scala Re-enables the SPARK-36286 test by removing its exclusion.
gluten-ut/spark35/src/test/scala/org/apache/gluten/utils/velox/VeloxTestSettings.scala Re-enables the SPARK-36286 test by removing its exclusion.
gluten-ut/spark40/src/test/scala/org/apache/gluten/utils/velox/VeloxTestSettings.scala Re-enables the SPARK-36286 test by removing its exclusion.
gluten-ut/spark41/src/test/scala/org/apache/gluten/utils/velox/VeloxTestSettings.scala Re-enables the SPARK-36286 test by removing its exclusion.
ep/build-velox/src/get-velox.sh Pins application of Velox PR #18502 during source preparation.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines 27 to 29
# Developer use only for testing Velox PR.
UPSTREAM_VELOX_PR_ID=""
UPSTREAM_VELOX_PR_ID="18502"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BUILD CORE works for Gluten Core VELOX

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants