mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-09 14:41:02 +00:00
fixed comments; removed create fragment
This commit is contained in:
parent
75e017cf4f
commit
d843959904
2 changed files with 4 additions and 4 deletions
|
|
@ -3031,7 +3031,7 @@ func (e *executor) executeSetValueField(ctx context.Context, index string, c *pq
|
|||
return ret, nil
|
||||
}
|
||||
|
||||
// executeSetValueField removes value for colID if present
|
||||
// executeClearValueField removes value for colID if present
|
||||
func (e *executor) executeClearValueField(ctx context.Context, index string, c *pql.Call, f *Field, colID uint64, opt *execOptions) (bool, error) {
|
||||
span, ctx := tracing.StartSpanFromContext(ctx, "Executor.executeClearValueField")
|
||||
defer span.Finish()
|
||||
|
|
|
|||
6
view.go
6
view.go
|
|
@ -408,9 +408,9 @@ func (v *view) setValue(columnID uint64, bitDepth uint, value int64) (changed bo
|
|||
// clearValue removes a specific value assigned to columnID
|
||||
func (v *view) clearValue(columnID uint64, bitDepth uint, value int64) (changed bool, err error) {
|
||||
shard := columnID / ShardWidth
|
||||
frag, err := v.CreateFragmentIfNotExists(shard)
|
||||
if err != nil {
|
||||
return changed, err
|
||||
frag := v.Fragment(shard)
|
||||
if frag == nil {
|
||||
return false, nil
|
||||
}
|
||||
return frag.clearValue(columnID, bitDepth, value)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue