Fix/iscolumn (#5983)

* fix: fix isColumn method to rely on column instead of index

* fix: add the space for explicit check
This commit is contained in:
Nityananda Gohain 2024-09-16 16:35:47 +05:30 committed by GitHub
parent 481c4e1271
commit 1b59719891
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)
}