Repository navigation
[VL] Enable native Window execution for TIMESTAMP_NTZ - #13050
Mariamalmesfer wants to merge 1 commit into
Conversation
|
Run Gluten Clickhouse CI on x86 |
1 similar comment
|
Run Gluten Clickhouse CI on x86 |
ce2583f to
8d0ad7a
Compare
|
Run Gluten Clickhouse CI on x86 |
8d0ad7a to
b1eb13d
Compare
|
Run Gluten Clickhouse CI on x86 |
b1eb13d to
f692423
Compare
|
Run Gluten Clickhouse CI on x86 |
f692423 to
8ea8bef
Compare
|
Run Gluten Clickhouse CI on x86 |
8ea8bef to
509ada7
Compare
|
Run Gluten Clickhouse CI on x86 |
509ada7 to
63de393
Compare
|
Run Gluten Clickhouse CI on x86 |
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
3 open findings
The newWindowExecNTZ validation only inspectswindowExpression(the window function tree). It… · New PR description says: “Not covered: window functions taking TIMESTAMP_NTZ directly (lag, lead,… · New AssertingcheckFallbackOperators(df, -1)is brittle and encodes an internal implementation detail… · New
What changed in this PR
Enables native execution for TIMESTAMP_NTZ when used as Window partition/order-by keys by expanding Validators.scala whitelisting and updating/adding regression tests.
Changes:
- Extend NTZ validation to allow Window plans where NTZ appears in partition/order keys (via updated
SortExec/ShuffleExchangeExechandling) and add explicitWindowExecvalidation. - Update an existing Delta test to no longer expect fallback for NTZ partition columns.
- Add Velox window validation tests covering NTZ in partition/order keys and several NTZ-typed window-function arguments.
| File | Description |
|---|---|
| gluten-substrait/src/main/scala/org/apache/gluten/extension/columnar/validator/Validators.scala | Expands NTZ plan whitelisting to include WindowExec and constrains Sort/Shuffle NTZ handling to “bare attribute” keys. |
| gluten-delta/src/test/scala/org/apache/gluten/execution/DeltaSuite.scala | Updates the NTZ partition-column test to no longer require fallback. |
| backends-velox/src/test/scala/org/apache/gluten/functions/WindowFunctionsValidateSuite.scala | Adds test coverage for NTZ window partition/order keys and several NTZ window-function argument cases. |
🧠 Review effort: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
63de393 to
5db0bc4
Compare
|
Run Gluten Clickhouse CI on x86 |
5db0bc4 to
fa24d8f
Compare
|
Run Gluten Clickhouse CI on x86 |
fa24d8f to
0d292f0
Compare
|
Run Gluten Clickhouse CI on x86 |
0d292f0 to
b0b235c
Compare
b0b235c to
1e1f06e
Compare
|
Run Gluten Clickhouse CI on x86 |
1e1f06e to
2a070be
Compare
|
Run Gluten Clickhouse CI on x86 |
2a070be to
fd183bf
Compare
|
Run Gluten Clickhouse CI on x86 |
fd183bf to
61cf6f5
Compare
|
Run Gluten Clickhouse CI on x86 |
61cf6f5 to
c498ece
Compare
|
Run Gluten Clickhouse CI on x86 |
c498ece to
ccccf73
Compare
|
Run Gluten Clickhouse CI on x86 |
ccccf73 to
f249921
Compare
|
Run Gluten Clickhouse CI on x86 |
There was a problem hiding this comment.
🟡 Changes recommended
The added window tests use only integer partition keys and a single shuffle partition, leaving the newly enabled NTZ partition-key path and multi-partition hashing untested.
1 open issue
3 resolved since last review
Review effort: Balanced
|
Run Gluten Clickhouse CI on x86 |
58698ec to
2ed0bc6
Compare
|
Run Gluten Clickhouse CI on x86 |
1 similar comment
|
Run Gluten Clickhouse CI on x86 |
2ed0bc6 to
84016b6
Compare
|
Run Gluten Clickhouse CI on x86 |
84016b6 to
66027a9
Compare
|
Run Gluten Clickhouse CI on x86 |
66027a9 to
bd92c9b
Compare
|
Run Gluten Clickhouse CI on x86 |


Enables native Window execution for
TIMESTAMP_NTZ. Velox already supports the required comparison and sorting behavior, so the gap was on the Gluten side, inValidators.scala.This PR adds support for
TIMESTAMP_NTZin:lagleadfirst_valuelast_valuenth_valuecountminmaxAlso updates SortExec and ShuffleExchangeExec validation for bare NTZ keys. Added validator unit tests and integration test coverage, including multiple shuffle partitions, repeated and NULL keys, microsecond precision and pre-epoch timestamps. Updated the shared Delta test based on backend NTZ support.