Repository navigation
Facets test: compare what the two results count, not the facet source, which is index or scan - #462
Merged
Merged
Conversation
…, which is index or scan (closes #461)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
test_facets_first_give_the_same_facetscompared the facets read before any row with the facets read after the rows, including thesourceof each facet. The test itself says that the projection can lag, and the facets guide says a count is read together with itssourceandmeta: 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.pyaccepts either). The test failed once onmainin the JVM lane, Linux, Python 3.11, withsourcescanon one side andindexon the other and the same buckets. It now compares what the two results count and leavessourceandmetaout.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
uvx pre-commit run --files <changed files>passes