Repository navigation
chore(tesseract): additional integration tests - #10969
Conversation
c982a5b to
b138d01
Compare
|
Claude finished @waralexrom's task in 2m 12s —— View job Claude Code ReviewVerdict: changes look sound overall. 0 high, 2 medium, 2 low — see inline comments. DetailsTodos
Scope36 files, test-only: new integration tests (calc groups, chained subquery, subquery-in-join, rolling-window gaps, multi-stage rank graph, multiplied dim-only ME, cross-cube fanout), new YAML schemas + seeds, and infra: FindingsMedium
Low
Praise
Not reviewed
|
|
|
||
| let sql = ctx.build_sql(query).unwrap(); | ||
| assert_uses_window(&sql); | ||
| ctx.build_sql(query).unwrap(); |
There was a problem hiding this comment.
The assert_uses_window / assert_no_window helpers and ~6 whole tests around them were stripped, and the surviving cases were reduced to ctx.build_sql(query).unwrap(); with the SQL-shape assertions removed. Those assertions documented a non-trivial planner contract (when reduce_by routes through the window-path vs the JOIN-model), and the deleted comments around each test were the only place that contract was written down.
If the contract still holds, the assertions should come back. If the planner intentionally no longer makes that distinction, please call that out in the PR description — silently dropping behavioral assertions makes this look like a coverage regression rather than a deliberate change.
| electronics | 2024-01-15 00:00:00 | 350.00 | ||
| electronics | 2024-01-20 00:00:00 | 120.00 | ||
| electronics | 2024-01-14 00:00:00 | 550.00 | ||
| electronics | 2024-01-13 00:00:00 | 550.00 |
There was a problem hiding this comment.
This snapshot is non-deterministic in row order. The query (db_time_series.rs:94) only orders by orders.category; within each category the created_at_day rows are interleaved unpredictably (e.g. books: 10, 13, 19, 17, 18, 20, 12, 16, 15, 14, 11). Postgres is free to return them in any order absent an explicit second ORDER BY key, and the previous snapshot happened to be sorted only by coincidence of the prior plan.
This will be a flaky-test source. Add orders.created_at (or the day alias) as a secondary order key in the test query before re-baselining.
| multi_stage: true | ||
| sql: "{CUBE.total_amount} + 0.1 * {CUBE.date_rank}" | ||
| # filters: |
There was a problem hiding this comment.
Dead commented-out filters: block on adjusted_amount. Either delete it or, if the filter is supposed to be part of the repro shape, uncomment it and re-baseline. Leaving it commented makes it unclear whether the JS scenario this is mirroring required the filter or not.
| } | ||
| } | ||
|
|
||
| #[allow(dead_code)] |
There was a problem hiding this comment.
Nit: #[allow(dead_code)] is no longer needed — with_sql_templates_and_timezone is called from test_context.rs::new_with_options_internal.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #10969 +/- ##
=======================================
Coverage 78.85% 78.85%
=======================================
Files 470 470
Lines 93388 93388
Branches 3466 3466
=======================================
Hits 73640 73640
Misses 19245 19245
Partials 503 503
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Claude finished @waralexrom's task in 41s —— View job Claude Code Review — follow-up on 7c139aeVerdict: prior round of feedback fully addressed. 0 high, 0 medium, 0 low on the delta. DetailsTodos
Resolution of prior findings
Praise
Not reviewed
|
No description provided.