mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-15 14:45:53 +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
|
return field
|
||||||
}
|
}
|
||||||
|
|
||||||
// enrich with default values if metadata is not found
|
if field.Type == "" {
|
||||||
field.Type = v3.AttributeKeyTypeTag
|
field.Type = v3.AttributeKeyTypeTag
|
||||||
field.DataType = v3.AttributeKeyDataTypeString
|
}
|
||||||
|
if field.DataType == "" {
|
||||||
|
field.DataType = v3.AttributeKeyDataTypeString
|
||||||
|
}
|
||||||
return field
|
return field
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user