Skip to content

Commit

Permalink
fix: add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
nityanandagohain committed Dec 20, 2024
1 parent 161f5fd commit 2df8d40
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/query-service/app/traces/v4/query_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ func getExistsNexistsFilter(op v3.FilterOperator, item v3.FilterItem) string {
if op == v3.FilterOperatorNotExists {
val = false
}
// trim suffix is added to add the _exists to the column name,
// eg: `resource_string_host` to `resource_string_host_exists`
return fmt.Sprintf("%s_exists` = %v", strings.TrimSuffix(getColumnName(item.Key), "`"), val)
}
// filter for non materialized attributes
Expand Down

0 comments on commit 2df8d40

Please sign in to comment.