(col *Column, vt value.ValueType)
| 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 { |
| 485 | // return |
| 486 | // } |
| 487 | //m.colNames[colName] = struct{}{} |
| 488 | m.Columns = append(m.Columns, NewResultColumn(col.As, len(m.Columns), col, vt)) |
| 489 | } |
| 490 | func (m *Projection) Equal(s *Projection) bool { |
| 491 | if m == nil && s == nil { |
| 492 | return true |
nothing calls this directly
no test coverage detected