Skip to content

fix(tesseract): preserve FILTER_PARAMS pushdown with segments#10608

Open
hank-sq wants to merge 1 commit intocube-js:masterfrom
hank-sq:hank/fix-filter-params-segment-pushdown
Open

fix(tesseract): preserve FILTER_PARAMS pushdown with segments#10608
hank-sq wants to merge 1 commit intocube-js:masterfrom
hank-sq:hank/fix-filter-params-segment-pushdown

Conversation

@hank-sq
Copy link
Copy Markdown
Contributor

@hank-sq hank-sq commented Apr 1, 2026

Summary

  • keep FILTER_PARAMS subtree extraction working when an AND group includes segment filters alongside matching member filters
  • preserve the existing all-or-nothing behavior for OR groups so we never prune a branch and change boolean semantics
  • add Rust regressions for segment siblings and partially matching OR branches

Closes #10606.

Test plan

  • docker run --rm -v \"/Users/hank/Development/tmp/cube-filterparams-fix:/work\" -w /work/rust/cubesqlplanner rust:1.90.0 cargo test -p cubesqlplanner test_find_subtree_for_members -- --nocapture
  • docker run --rm -v \"/Users/hank/Development/tmp/cube-filterparams-fix:/work\" -w /work/rust/cubesqlplanner rust:1.90.0 cargo test -p cubesqlplanner tests::filter -- --nocapture

Made with Cursor

@github-actions github-actions bot added rust Pull requests that update Rust code pr:community Contribution from Cube.js community members. labels Apr 1, 2026
@hank-sq hank-sq marked this pull request as draft April 1, 2026 21:57
@hank-sq hank-sq force-pushed the hank/fix-filter-params-segment-pushdown branch from cf9a4f2 to 17b673e Compare April 1, 2026 22:03
@github-actions github-actions bot added the javascript Pull requests that update Javascript code label Apr 1, 2026
@hank-sq hank-sq force-pushed the hank/fix-filter-params-segment-pushdown branch from 17b673e to bc44874 Compare April 1, 2026 22:12
@hank-sq hank-sq force-pushed the hank/fix-filter-params-segment-pushdown branch from bc44874 to af829a3 Compare April 1, 2026 23:21
Tesseract was treating any segment inside a filter tree as a fatal subtree extraction failure, which made FILTER_PARAMS fall back to always_true(). Keep AND-group pruning for matching members, require full matches for OR groups, and add regressions for segment siblings and partial OR branches.

Made-with: Cursor
@hank-sq hank-sq force-pushed the hank/fix-filter-params-segment-pushdown branch from af829a3 to 32ab6a8 Compare April 2, 2026 15:29
@hank-sq hank-sq marked this pull request as ready for review April 2, 2026 16:42
@hank-sq hank-sq requested a review from a team as a code owner April 2, 2026 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

javascript Pull requests that update Javascript code pr:community Contribution from Cube.js community members. rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tesseract: FILTER_PARAMS pushdown becomes 1 = 1 when a query includes a segment

1 participant