Skip to content
This repository was archived by the owner on Jan 28, 2021. It is now read-only.
This repository was archived by the owner on Jan 28, 2021. It is now read-only.

Panic when querying for non existing value with pilosa index #322

@kuba--

Description

@kuba--
CREATE INDEX email_idx ON commits USING pilosa (commit_author_email);
SELECT count(*) FROM commits WHERE  commit_author_email='existing email' OR commit_author_email='trash';

Got:

...
lookup.go:87 (0x4927553)
(*indexLookup).bitmapQuery: if b.Error() != nil {

Fix:

b, err := il.bitmapQuery()
if err != nil {
return nil, err
}
 if b == nil {
continue
}

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions