You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gluten.apache.org by "Smallfu666 (via GitHub)" <gi...@apache.org> on 2026/08/14 08:03:03 UTC
[PR] [VL] Re-enable SPARK-36286 timestamp cast test with Velox 18502 [gluten]
Smallfu666 opened a new pull request, #12771:
URL: https://github.com/apache/gluten/pull/12771
## 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 https://github.com/facebookincubator/velox/pull/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
- Velox PR: https://github.com/facebookincubator/velox/pull/18502
- Gluten issue: https://github.com/apache/gluten/issues/8984
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org
Re: [PR] [VL] Re-enable SPARK-36286 timestamp cast test with Velox 18502 [gluten]
Posted by "Smallfu666 (via GitHub)" <gi...@apache.org>.
Smallfu666 commented on PR #12771:
URL: https://github.com/apache/gluten/pull/12771#issuecomment-5330349856
Thanks @rui-mo — I missed those inline comments earlier. I'm going through them now, especially the whitespace-handling point, and will update #18502 accordingly. Thanks for the heads-up!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org
Re: [PR] [VL] Re-enable SPARK-36286 timestamp cast test with Velox 18502 [gluten]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #12771:
URL: https://github.com/apache/gluten/pull/12771#issuecomment-5291075171
Run Gluten Clickhouse CI on x86
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org
Re: [PR] [VL] Re-enable SPARK-36286 timestamp cast test with Velox 18502 [gluten]
Posted by "Copilot (via GitHub)" <gi...@apache.org>.
Copilot commented on code in PR #12771:
URL: https://github.com/apache/gluten/pull/12771#discussion_r3782149102
##########
ep/build-velox/src/get-velox.sh:
##########
@@ -25,7 +25,7 @@ RUN_SETUP_SCRIPT=ON
ENABLE_ENHANCED_FEATURES=OFF
# Developer use only for testing Velox PR.
-UPSTREAM_VELOX_PR_ID=""
+UPSTREAM_VELOX_PR_ID="18502"
Review Comment:
Hardcoding `UPSTREAM_VELOX_PR_ID` in the repo makes every `get-velox.sh` run download and apply an external PR patch, which can break offline builds and makes builds non-reproducible once the PR is rebased/closed/garbage-collected. Since the script comment says this is for developer testing, keep the default empty and let CI/users opt in via an environment variable (or a script flag).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org
Re: [PR] [VL] Re-enable SPARK-36286 timestamp cast test [gluten]
Posted by "rui-mo (via GitHub)" <gi...@apache.org>.
rui-mo merged PR #12771:
URL: https://github.com/apache/gluten/pull/12771
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org
Re: [PR] [VL] Re-enable SPARK-36286 timestamp cast test with Velox 18502 [gluten]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #12771:
URL: https://github.com/apache/gluten/pull/12771#issuecomment-5525697419
Run Gluten Clickhouse CI on x86
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org
Re: [PR] [VL] Re-enable SPARK-36286 timestamp cast test [gluten]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #12771:
URL: https://github.com/apache/gluten/pull/12771#issuecomment-5535449625
Run Gluten Clickhouse CI on x86
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org
Re: [PR] [VL] Re-enable SPARK-36286 timestamp cast test with Velox 18502 [gluten]
Posted by "Smallfu666 (via GitHub)" <gi...@apache.org>.
Smallfu666 commented on PR #12771:
URL: https://github.com/apache/gluten/pull/12771#issuecomment-5330083263
@rui-mo Hi, this is the paired Gluten PR for Velox #18502. CI is green now — could you take a look when you have a chance? Thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org
Re: [PR] [VL] Re-enable SPARK-36286 timestamp cast test with Velox 18502 [gluten]
Posted by "Copilot (via GitHub)" <gi...@apache.org>.
Copilot commented on code in PR #12771:
URL: https://github.com/apache/gluten/pull/12771#discussion_r3924488566
##########
gluten-ut/spark41/src/test/scala/org/apache/gluten/utils/velox/VeloxTestSettings.scala:
##########
@@ -120,7 +120,6 @@ class VeloxTestSettings extends BackendTestSettings {
// Excluded in favour of the GlutenCastWithAnsiOffSuite rewrite, which drops the Long.MinValue
// assertion: collect() -> toJavaTimestamp -> rebaseGregorianToJulianMicros overflows.
.exclude("cast from timestamp II")
- .exclude("SPARK-36286: invalid string cast to timestamp")
.exclude("SPARK-39749: cast Decimal to string")
Review Comment:
PR description says the exclusion is removed across spark33/34/35/40/41 and that `ep/build-velox/src/get-velox.sh` sets `UPSTREAM_VELOX_PR_ID="18502"`. In this branch, there is no `gluten-ut/spark33` shim directory, and `get-velox.sh` still has `UPSTREAM_VELOX_PR_ID=""` (so CI won’t actually apply the Velox PR patch as described). Please either (a) update the PR description/testing section to match what the diff actually changes, or (b) include the missing shim/script updates so the re-enabled test is validated against the intended Velox fix.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org