-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove the default exists condition for group by keys? #5136
Comments
So you are saying that if the user doesn't explicitly use the exists then empty values is fine ? So are with fine with:- If there I group by service.name. And there are n logs with no service name then count of n will be added to empty service name. So it will be difficult to differentiate between empty service name and logs where service.name doesn't exists. |
In practice, this doesn't happen where
The current result doesn't display anything and just discards the data, as we observed when trying to group by |
This should be fixed otherwise the charts are just lying. |
sure prioritising this |
This is a lazy assumption to make for any data type specifically expecting users to add the filter. |
Bug description
For every group by clause, we are adding a condition to make sure that the key exists
signoz/pkg/query-service/app/logs/v3/query_builder.go
Lines 208 to 218 in 03838f5
service.name
andecs.service.name
which are mutually exclusive i.e a log record has either one of them in attributes but not both. If I group byservice.name
andecs.service.name
it could return no result. Perhaps we should not add key exists condition ourselves and let the user do it if necessary.The text was updated successfully, but these errors were encountered: