You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'FROM logstash-* | WHERE dest == "tada!" | SORT @timestamp DESC | LIMIT 10000 | STATS countB = COUNT(bytes) BY geo.dest | SORT countB | WHERE countB > 0'
405
+
);
406
+
});
407
+
408
+
it('handles the case where the field being filtered on is a runtime field created by a stats command',()=>{
409
+
expect(
410
+
appendFilteringWhereClauseForCascadeLayout(
411
+
'FROM kibana_sample_data_logs | STATS count = COUNT(bytes), average = AVG(memory) BY Pattern = CATEGORIZE(message), agent.keyword, clientip',
412
+
'Pattern',
413
+
'tada!',
414
+
'+',
415
+
'string'
416
+
)
417
+
).toBe(
418
+
'FROM kibana_sample_data_logs | STATS count = COUNT(bytes), average = AVG(memory) BY Pattern = CATEGORIZE(message), agent.keyword, clientip | WHERE Pattern == "tada!"'
419
+
);
420
+
});
421
+
422
+
it('handles the case where the field being filtered on is a runtime field created by a stats command, followed by other commands',()=>{
423
+
expect(
424
+
appendFilteringWhereClauseForCascadeLayout(
425
+
'FROM kibana_sample_data_logs | STATS count = COUNT(bytes), average = AVG(memory) BY Pattern = CATEGORIZE(message), agent.keyword, clientip | SORT count DESC',
426
+
'Pattern',
427
+
'tada!',
428
+
'+',
429
+
'string'
430
+
)
431
+
).toBe(
432
+
'FROM kibana_sample_data_logs | STATS count = COUNT(bytes), average = AVG(memory) BY Pattern = CATEGORIZE(message), agent.keyword, clientip | WHERE Pattern == "tada!" | SORT count DESC'
433
+
);
434
+
});
435
+
436
+
it('handles the case where the field being filtered on is a runtime field created by a stats command, and with another filter applied there after',()=>{
0 commit comments