Skip to content

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

Closed

Description

@tae898

tests/test_result_set_facets.py::TestResultSetFacets::test_facets_first_give_the_same_facets failed once on main in the JVM lane on Linux, Python 3.11, at ab482ac (the merge of #391, which does not touch facets): run 45078466171. The two results of the test differ only in source of the category terms facet: one says scan where the other, and the expected value, say index. The buckets and counts shown are the same. The next two runs on main (adad563, a62613f) were green.

I have not reproduced it. It is the same kind of symptom as the docs example of #310, which printed a count of 3 instead of 6 once in CI and not in 350 fresh databases: a facet answered from the scan path where the COLUMNAR index was expected. What I do not know is whether the engine chooses between the index and the scan by something that varies (an index that is not yet readable right after the load, a statistics threshold), or whether the test reads the facets before the index is ready.

What I will do: read the engine's choice between the index and the scan for a FACETS query, and if it can vary for the same data, file it upstream with a Java repro. Until then the red runs of the full tier can be linked here.

Activity

  1. added this to the 27.1.1 milestone on Nov 23, 2026
  2. self-assigned this
    on Nov 23, 2026
  3. added
    bug
    python
    jvm
    on Nov 23, 2026
  4. added
    enhancement
    github_actions
    in progress
    on Nov 23, 2026
  5. tae898 commented on Nov 23, 2026

    @tae898
    CollaboratorAuthor

    I read the test and the guide again, and this is a test that was too strict, not an engine problem. The test reads the facets before any row and compares them with the facets read after the rows. Its own comment says 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, both are correct, and tests/test_columnar_index.py already accepts either source. The failing run had the same buckets on both sides and only source differed. #462 compares what the two results count and leaves source and meta out. The count of 3 instead of 6 in #310 is a different symptom (a count, not a source), and I am still watching for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugenhancementgithub_actionsin progressjvmpython

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions