From 0db33969235b785b3a7c15de5a18207457487140 Mon Sep 17 00:00:00 2001 From: Katya Katsenelenbogen Date: Mon, 14 Dec 2020 14:32:30 +0200 Subject: [PATCH] IG-14607: renaming default index column to 'idx' (#580) --- rowiter.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rowiter.go b/rowiter.go index 823b5f5d..7604caa4 100644 --- a/rowiter.go +++ b/rowiter.go @@ -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 }