Skip to content

Commit

Permalink
IG-14607: renaming default index column to 'idx' (#580)
Browse files Browse the repository at this point in the history
  • Loading branch information
katyakats authored Dec 14, 2020
1 parent 52607a7 commit 0db3396
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rowiter.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ func (it *rowIterator) init() {
for i, col := range it.frame.Indices() {
name := col.Name()
if name == "" {
name = fmt.Sprintf("index-%d", i)
if i == 0 {
name = "idx"
} else {
name = fmt.Sprintf("idx-%d", i)
}
noNames[it.numCols+i] = name
}

Expand Down

0 comments on commit 0db3396

Please sign in to comment.