diff --git a/pkg/query-service/app/clickhouseReader/reader.go b/pkg/query-service/app/clickhouseReader/reader.go index 946f0e213d..5f34a2f9dc 100644 --- a/pkg/query-service/app/clickhouseReader/reader.go +++ b/pkg/query-service/app/clickhouseReader/reader.go @@ -3971,7 +3971,8 @@ func isColumn(useLogsNewSchema bool, tableStatement, attrType, field, datType st // value of attrType will be `resource` or `tag`, if `tag` change it to `attribute` var name string if useLogsNewSchema { - name = utils.GetClickhouseColumnNameV2(attrType, datType, field) + // adding explict '`' + name = fmt.Sprintf("`%s`", utils.GetClickhouseColumnNameV2(attrType, datType, field)) } else { name = utils.GetClickhouseColumnName(attrType, datType, field) }