(name string, typ super.Type, length uint32)
| 102 | } |
| 103 | |
| 104 | func (r *recordExpr) addOrUpdateNone(name string, typ super.Type, length uint32) { |
| 105 | if i, ok := r.fieldIndexes[name]; ok { |
| 106 | r.fields[i].Type = typ |
| 107 | r.fieldVecs[i] = vector.NewNone(r.sctx, typ, length) |
| 108 | return |
| 109 | } |
| 110 | r.fieldIndexes[name] = len(r.fields) |
| 111 | r.fields = append(r.fields, super.NewFieldWithOpt(name, typ, true)) |
| 112 | r.fieldVecs = append(r.fieldVecs, vector.NewNone(r.sctx, typ, length)) |
| 113 | } |
| 114 | |
| 115 | func (r *recordExpr) spread(vec vector.Any) { |
| 116 | // Ignore non-record values. |
no test coverage detected