Skip to content

Facets test: compare what the two results count, not the facet source, which is index or scan - #462

Merged
tae898 merged 1 commit into
mainfrom
fix/461-facets-test-source
Nov 23, 2026
Merged

tae898 merged 1 commit into
mainfrom
fix/461-facets-test-source

Conversation

@tae898

@tae898 tae898 commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

What does this PR do?

test_facets_first_give_the_same_facets compared the facets read before any row with the facets read after the rows, including the source of each facet. The test itself says that the projection can lag, and the facets guide says a count is read together with its source and meta: a facet is answered from the index once the projection has caught up and from a scan before, and both are correct answers (tests/test_columnar_index.py accepts either). The test failed once on main in the JVM lane, Linux, Python 3.11, with source scan on one side and index on the other and the same buckets. It now compares what the two results count and leaves source and meta out.

Related issues

Closes #461. I first read it as a possible engine problem; the test was too strict, and the counts of the two results are still compared.

Docs

None needed.

Checklist

  • A regression test fails on the old code and passes on the new (does not apply: the change loosens a test that failed by timing; it failed once, on a difference in timing)
  • The test suite that the change can affect passes (the file runs in this pull request's CI)
  • uvx pre-commit run --files <changed files> passes

@tae898 tae898 added this to the 26.12.1 milestone Nov 23, 2026
@tae898 tae898 added bug Something isn't working python Pull requests that update python code labels Nov 23, 2026
@tae898 tae898 self-assigned this Nov 23, 2026
@tae898
tae898 merged commit a329201 into main Nov 23, 2026
25 checks passed
@tae898
tae898 deleted the fix/461-facets-test-source branch November 23, 2026 02:25
@tae898 tae898 mentioned this pull request Nov 30, 2026
1 of 10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Facets: test_facets_first_give_the_same_facets saw source "scan" where "index" was expected, once on Linux Python 3.11 (JVM lane)

1 participant