mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-13 05:29:04 +08:00
fix: add support for bool values in time series result (#2713)
* fix: add support for bool values in time series result * chore: reserved target column can never be bool so removed obsolete code --------- Co-authored-by: Ankit Nayan <ankit@signoz.io> Co-authored-by: Palash Gupta <palashgdev@gmail.com>
This commit is contained in:
parent
ca3ff04f7d
commit
357e422eca
@ -4096,8 +4096,12 @@ func readRow(vars []interface{}, columnNames []string) ([]string, map[string]str
|
|||||||
groupBy = append(groupBy, fmt.Sprintf("%v", reflect.ValueOf(v).Elem().Int()))
|
groupBy = append(groupBy, fmt.Sprintf("%v", reflect.ValueOf(v).Elem().Int()))
|
||||||
groupAttributes[colName] = fmt.Sprintf("%v", reflect.ValueOf(v).Elem().Int())
|
groupAttributes[colName] = fmt.Sprintf("%v", reflect.ValueOf(v).Elem().Int())
|
||||||
}
|
}
|
||||||
|
case *bool:
|
||||||
|
groupBy = append(groupBy, fmt.Sprintf("%v", *v))
|
||||||
|
groupAttributes[colName] = fmt.Sprintf("%v", *v)
|
||||||
|
|
||||||
default:
|
default:
|
||||||
zap.S().Errorf("unsupported var type %v found in metric builder query result for column %s", v, colName)
|
zap.S().Errorf("unsupported var type %v found in query builder query result for column %s", v, colName)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return groupBy, groupAttributes, point
|
return groupBy, groupAttributes, point
|
||||||
@ -4424,4 +4428,4 @@ func (r *ClickHouseReader) GetSpanAttributeKeys(ctx context.Context) (map[string
|
|||||||
response[tagKey] = key
|
response[tagKey] = key
|
||||||
}
|
}
|
||||||
return response, nil
|
return response, nil
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user