minor fixes

This commit is contained in:
Travis Turner 2018-06-05 12:30:59 -05:00
parent 2111a3d521
commit 207e9c2674
No known key found for this signature in database
GPG key ID: 7F08008DFD9314C9
2 changed files with 3 additions and 3 deletions

View file

@ -1112,7 +1112,7 @@ func (b *bsiGroup) BitDepth() uint {
// Note that in this case (because the range uses the full BitDepth 0 to 1023),
// we can't simply return 1024.
// In order to make this work, we effectively need to change the operator to LTE.
// Executor.executeFieldRangeSlice() takes this into account and returns
// Executor.executeBSIGroupRangeSlice() takes this into account and returns
// `frag.FieldNotNull(bsig.BitDepth())` in such instances.
func (b *bsiGroup) baseValue(op pql.Token, value int64) (baseValue uint64, outOfRange bool) {
if op == pql.GT || op == pql.GTE {

View file

@ -158,7 +158,7 @@ func TestIndex_CreateFrame(t *testing.T) {
}
})
t.Run("ErrInvalidFieldRange", func(t *testing.T) {
t.Run("ErrInvalidBSIGroupRange", func(t *testing.T) {
index := test.MustOpenIndex()
defer index.Close()
@ -166,7 +166,7 @@ func TestIndex_CreateFrame(t *testing.T) {
Fields: []*pilosa.Field{
{Name: "field0", Type: pilosa.FieldTypeInt, Min: 100, Max: 50},
},
}); err != pilosa.ErrInvalidFieldRange {
}); err != pilosa.ErrInvalidBSIGroupRange {
t.Fatal(err)
}
})