-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
String last aggregator is not considering all the segments for calculating the aggregation #9645
Comments
Hi @roopini550, Aggregators don't really have control over what segments they read. So I think what you are seeing is probably happening for some other reason. Do you have any more details? Some steps to reproduce this behavior would be great. |
Hi @gianm , Here is our simple query with "descending": "true" for getting sample data in timestamp colum descending order.. And here "instrument_breached_time" is our timestamp field.... { And here is the result for above query.. [ { And here is our Stringlast groupBy query on instrument_id for latest value of dimension task_status.... { And here is the result of above StringLast query... [ { As you can see here latest task status should be "ASSIGNED" here.. but it is giving QUEUED as a result.. And another observation here is Last aggregators are not considering segments having partition/version numbers in their segment ids. Same you can observe in the above example. |
Hi, Can anyone please give more info about this issue. we are stuck by using stringlast in some of our functionalities. Thanks, |
This issue has been marked as stale due to 280 days of inactivity. |
This issue has been closed due to lack of activity. If you think that |
String last aggregator is not considering all the segments in the given interval for calculating the aggregation in a groupby query.
Affected Version
Druid version - 0.16.0-incubating.
Description
We are using stringlast aggregation for getting the latest value of the dimension in datasource in a groupby query. But Last aggregators are considering only few segmets for calculating the last value of the specified dimension in the query, so giving wrong results. We expected that it will consider all the segments for calculating last aggregation.
The text was updated successfully, but these errors were encountered: