Skip to content

unique works incorrectly with IndexedFactbase #539

@yegor256

Description

@yegor256

This is my code:

    require 'fbe/fb'
    fb = Factbase.new
    fb = Factbase::IndexedFactbase.new(fb)  # here!
    fb.import(File.binread('1.fb'))
    puts fb.query("(and (eq repository 798641472) (unique issue))").each.to_a.count

If I comment out one line, I get 305 as an output.

With this line I get 59 as an output.

The 1.fb file is here: https://public.zerocracy.com/1.fb

This most probably is related to the changes we've made in #487

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions