mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-15 11:35:53 +08:00
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:
parent
481c4e1271
commit
1b59719891
@ -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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user