fix(cubesql): Cast DATE +/- INTERVAL explicitly in temporal comparisons - #11831
fix(cubesql): Cast DATE +/- INTERVAL explicitly in temporal comparisons#11831MazterQyou wants to merge 1 commit into
DATE +/- INTERVAL explicitly in temporal comparisons#11831Conversation
|
Claude finished @MazterQyou's task in 5m 35s —— View job Code review — no blocking bug found; 2 medium design concerns, 4 low. 5 inline comments posted.Full review
VerdictThe fix is correct for the case it targets, and I could not find a case where it produces wrong results or regresses existing behaviour. The new comparison block returns early only for My concerns are about generality and consistency with the code that already solves this exact problem, not about the fix being wrong. Medium1. The arithmetic side is cast but never constant-folded — inline
2. Shape-specific matching where BETWEEN's is shape-agnostic — inline
WHERE order_date >= DATE_TRUNC('week', CURRENT_DATE - INTERVAL '28 days')
Low
TestingAll three new tests early-return on A negative test for the new template gate (drop What's good
Not verifiedI did not compile or run the test suite — there are no prebuilt artifacts in |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #11831 +/- ##
==========================================
+ Coverage 80.35% 80.39% +0.04%
==========================================
Files 500 500
Lines 106555 106879 +324
Branches 3881 3881
==========================================
+ Hits 85619 85923 +304
- Misses 20386 20406 +20
Partials 550 550
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
9b0a6ce to
06d068a
Compare
|
Claude finished @MazterQyou's task in 3m 16s —— View job Re-review after push — no blocking bug; 1 medium, 3 low. 4 of 5 prior threads addressed and resolved.Full review
Prior roundFour of my five threads are addressed; I resolved them:
Still open from before: shape-specific matching (thread). CorrectnessI traced the new early-return block against the paths below it and found no regression:
MediumFolding policy now contradicts The new comment argues a folded bound would "pin Low
What's good
Not verified
|
06d068a to
d0390aa
Compare
|
Claude finished @MazterQyou's task in 2m 16s —— View job Re-review after push — no blocking bug; 1 medium (perf), 2 low. 3 prior threads addressed and resolved, 1 still open.Full review
Prior round
CorrectnessRe-traced the new block against the paths below it — no regression found:
MediumThe template gate renders a jinja template on every match attempt — inline
Low
What's good
Not verified
|
d0390aa to
507959e
Compare
|
Claude finished @MazterQyou's task in 1m 32s —— View job Re-review after push — no blocking bug; 0 new issues, 1 prior thread still open (shape-specific matching). Perf thread addressed and resolved.Full review
Prior round
CorrectnessTraced the refactor and the normalize path again; nothing new found.
TestsCoverage is now in the right shape: pushdown (default templates + BigQuery-shaped overrides), the What's good
Not verified
|
|
/bot-review |
|
Claude finished @MazterQyou's task in 1m 28s —— View job Re-review — no code changes since the last round; the last open thread is answered and resolved. 0 issues.Full review
State
The shape-specific-matching thread — rebuttal accepted, resolvedI checked the three load-bearing claims:
Thread resolved. That was the last unresolved one — all nine from the four rounds are now closed. Correctness (unchanged code, re-checked)
TestsCoverage is in the right shape and nothing has moved: pushdown under the default templates, pushdown under BigQuery-shaped overrides, the Not verified
VerdictNothing blocking, and nothing left open from my side. LGTM. |
…sons Signed-off-by: Alex Qyoun-ae <4062971+MazterQyou@users.noreply.github.com>
507959e to
3e5100c
Compare
|
Claude finished @MazterQyou's task in 1m 28s —— View job Re-review after push — rebase onto current
|
Check List
Description of Changes Made
This PR makes the implicit TIMESTAMP cast of
DATE +/- INTERVALarithmetic explicit in temporal comparisons, so SQL pushdown of filters liketime >= CURRENT_DATE - INTERVAL '28 days'is valid on BigQuery. Related test is included.