mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-11 07:11:02 +00:00
fix misplaced _exists check
This commit is contained in:
parent
8fe1b9a37c
commit
bcb71b023a
1 changed files with 4 additions and 4 deletions
|
|
@ -891,14 +891,14 @@ func (h *Holder) schema(ctx context.Context, includeViews bool) ([]*IndexInfo, e
|
|||
ShardWidth: ShardWidth,
|
||||
Fields: make([]*FieldInfo, 0, len(index.Fields)),
|
||||
}
|
||||
for _, field := range index.Fields {
|
||||
for fieldName, field := range index.Fields {
|
||||
if fieldName == existenceFieldName {
|
||||
continue
|
||||
}
|
||||
cfm, err := h.decodeCreateFieldMessage(field.Data)
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(err, "decoding CreateFieldMessage")
|
||||
}
|
||||
if cfm.Field == existenceFieldName {
|
||||
continue
|
||||
}
|
||||
fi := &FieldInfo{
|
||||
Name: cfm.Field,
|
||||
CreatedAt: cfm.CreatedAt,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue