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

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

Closed
kuba-- opened this issue Aug 7, 2018 · 1 comment
Closed

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

kuba-- opened this issue Aug 7, 2018 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@kuba--
Copy link
Contributor

kuba-- commented Aug 7, 2018

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
}
@kuba-- kuba-- added the bug Something isn't working label Aug 7, 2018
@kuba-- kuba-- self-assigned this Aug 7, 2018
@kuba--
Copy link
Contributor Author

kuba-- commented Aug 7, 2018

it works for pilosalib driver

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant