From 22e14a3dbee9cf3a41520661c862a849ea8c02b6 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Tue, 28 May 2024 15:53:21 +0200 Subject: [PATCH] wip --- lib/logstorage/pipe_math_test.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/lib/logstorage/pipe_math_test.go b/lib/logstorage/pipe_math_test.go index 0703464c4..4edc5fdc1 100644 --- a/lib/logstorage/pipe_math_test.go +++ b/lib/logstorage/pipe_math_test.go @@ -134,6 +134,22 @@ func TestPipeMath(t *testing.T) { }, }) + f("math abs(-min(a,b)) as min, max(b,c) as max", [][]Field{ + { + {"a", "v1"}, + {"b", "2"}, + {"c", "3"}, + }, + }, [][]Field{ + { + {"a", "v1"}, + {"b", "2"}, + {"c", "3"}, + {"min", "2"}, + {"max", "3"}, + }, + }) + f("math round((2*c + (b%c))/(c-b)^(b-1), 0.001) as a", [][]Field{ { {"a", "v"},