(colName string, vt value.ValueType)
| 471 | } |
| 472 | |
| 473 | func (m *Projection) AddColumnShort(colName string, vt value.ValueType) { |
| 474 | //colName = strings.ToLower(colName) |
| 475 | // if _, exists := m.colNames[colName]; exists { |
| 476 | // return |
| 477 | // } |
| 478 | //u.Infof("adding column %s to %v", colName, m.colNames) |
| 479 | //m.colNames[colName] = struct{}{} |
| 480 | m.Columns = append(m.Columns, NewResultColumn(colName, len(m.Columns), nil, vt)) |
| 481 | } |
| 482 | func (m *Projection) AddColumn(col *Column, vt value.ValueType) { |
| 483 | //colName := strings.ToLower(col.As) |
| 484 | // if _, exists := m.colNames[colName]; exists { |
no test coverage detected