Conversation
fead311 to
c4ab0de
Compare
03087f8 to
054c4ab
Compare
|
You have an off by one on hard bounds - |
f85f3b2 to
4cb81aa
Compare
Co-authored-by: Tamir Kamara <26870601+tamirkamara@users.noreply.github.com>
Co-authored-by: Tamir Kamara <26870601+tamirkamara@users.noreply.github.com>
Co-authored-by: Tamir Kamara <26870601+tamirkamara@users.noreply.github.com>
tamirkamara
left a comment
There was a problem hiding this comment.
Query and visitor look good now!
I'll let the others review the rest of the code.
|
@tamirkamara are you sure? There is something wrong with the logic of the bins, no matter what options I choose it puts 99.9% of the data in the "0" bin, the rest in the next bin, and all the other bins are emtpy. Even when entering a manual interval of 500 I got the following query: let _data = database("kibana").StormEvents ;
let _extdata = _data
| extend ['2%False'] = bin(todouble(['StormSummary'].['TotalDamages']), 7000000);
let _summarizablemetrics = _extdata
| summarize count() by ['2%False']
| order by ['2%False'] asc;
(_summarizablemetrics
| as aggs);
(_data | count | as hitsTotal);
(_data | limit 0 | as hits) |
|
I didn't test it myself @AsafMah, only looked at the visitor logic. With the newly added base classes it's not easy to see the exact query that gets generated... |
No, it always sets the bin size so it's basically all in the first bin. @nebrass have you tested it? |
|
@AsafMah I just made a test and the result is not as expected as you mentioned below: The generated query: let _data = database("dev").StormEvents | where (['StartTime'] >= todatetime("2007-01-18T15:52:40.4150000Z") and ['StartTime'] <= todatetime("2022-01-18T15:52:40.4150000Z"));
let _extdata = _data
| extend ['2%False'] = bin(['InjuriesDirect'], 500);
let _summarizablemetrics = _extdata
| summarize count() by ['2%False']
| order by ['2%False'] asc;
(_summarizablemetrics | as aggs);
(_data | count | as hitsTotal);
(_data | limit 0 | as hits) |
All comments were resolved and discussed
Try it with a field with bigger values (DamageCrops) |
eladiw
left a comment
There was a problem hiding this comment.
changing the approval until all comments are resolved to avoid accidental merge
AsafMah
left a comment
There was a problem hiding this comment.
Overall looks good!
Some minor comments here
Also fix the open comments & merge conflict files and we can merge





The following changes are proposed:
Screenshot:
