MCPcopy Create free account
hub / github.com/brimdata/super / UniquifyFieldNames

Function UniquifyFieldNames

sio/arrowio/reader.go:74–82  ·  view source on GitHub ↗
(fields []super.Field)

Source from the content-addressed store, hash-verified

72}
73
74func UniquifyFieldNames(fields []super.Field) {
75 names := map[string]int{}
76 for i, f := range fields {
77 if n := names[f.Name]; n > 0 {
78 fields[i].Name += strconv.Itoa(n)
79 }
80 names[f.Name]++
81 }
82}
83
84func (r *Reader) Close() error {
85 if r.rbr != nil {

Callers 2

buildMethod · 0.92
newTypeFromDataTypeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected