mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-06 00:25:55 +00:00
removed debugging code'
This commit is contained in:
parent
e1eca36a9d
commit
a74d826b41
2 changed files with 0 additions and 8 deletions
3
attr.go
3
attr.go
|
|
@ -182,13 +182,10 @@ func encodeAttr(key string, value interface{}) *internal.Attr {
|
|||
case string:
|
||||
pb.StringValue = proto.String(value)
|
||||
case float64:
|
||||
fmt.Println("A")
|
||||
pb.UintValue = proto.Uint64(uint64(value))
|
||||
case uint64:
|
||||
fmt.Println("b")
|
||||
pb.UintValue = proto.Uint64(value)
|
||||
case int64:
|
||||
fmt.Println("c")
|
||||
pb.UintValue = proto.Uint64(uint64(value))
|
||||
case bool:
|
||||
pb.BoolValue = proto.Bool(value)
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ import (
|
|||
"io/ioutil"
|
||||
"log"
|
||||
"os"
|
||||
"reflect"
|
||||
"sort"
|
||||
"strings"
|
||||
"sync"
|
||||
|
|
@ -385,8 +384,6 @@ func (f *Fragment) TopN(n int, src *Bitmap, field string, fieldValues []interfac
|
|||
filters = make(map[interface{}]struct{})
|
||||
for _, v := range fieldValues {
|
||||
filters[v] = struct{}{}
|
||||
fmt.Println("B:", reflect.TypeOf(v))
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -403,7 +400,6 @@ func (f *Fragment) TopN(n int, src *Bitmap, field string, fieldValues []interfac
|
|||
// Apply filter, if set.
|
||||
if filters != nil {
|
||||
attr, err := f.BitmapAttrStore.Attrs(bitmapID)
|
||||
fmt.Println("C:", reflect.TypeOf(attr), attr)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
} else if attr == nil {
|
||||
|
|
@ -411,7 +407,6 @@ func (f *Fragment) TopN(n int, src *Bitmap, field string, fieldValues []interfac
|
|||
} else if attrValue := attr[field]; attrValue == nil {
|
||||
continue
|
||||
} else if _, ok := filters[attrValue]; !ok {
|
||||
fmt.Println("A:", reflect.TypeOf(attrValue))
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue