mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-13 17:09:01 +08:00
fix: hotfix bug in enhance query (#4783)
This commit is contained in:
parent
51abe71421
commit
5e0e9da6c4
@ -153,9 +153,12 @@ func enrichFieldWithMetadata(field v3.AttributeKey, fields map[string]v3.Attribu
|
||||
return field
|
||||
}
|
||||
|
||||
// enrich with default values if metadata is not found
|
||||
field.Type = v3.AttributeKeyTypeTag
|
||||
field.DataType = v3.AttributeKeyDataTypeString
|
||||
if field.Type == "" {
|
||||
field.Type = v3.AttributeKeyTypeTag
|
||||
}
|
||||
if field.DataType == "" {
|
||||
field.DataType = v3.AttributeKeyDataTypeString
|
||||
}
|
||||
return field
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user