summaryrefslogtreecommitdiff
path: root/integrationtests/dmap_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2021-12-12 20:37:32 +0000
committerPaul Buetow <paul@buetow.org>2021-12-12 20:37:32 +0000
commita040084be859997b63cc5f8b627ae52ed52a9e24 (patch)
treefb2b6c175e5a772b5501e7618ec75eee46636c0f /integrationtests/dmap_test.go
parentc1e52e7a7fd925ae8450708c4337d6808e014ba4 (diff)
add set condition integraion test
Diffstat (limited to 'integrationtests/dmap_test.go')
-rw-r--r--integrationtests/dmap_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/integrationtests/dmap_test.go b/integrationtests/dmap_test.go
index 4321f70..34dab24 100644
--- a/integrationtests/dmap_test.go
+++ b/integrationtests/dmap_test.go
@@ -25,6 +25,9 @@ func TestDMap1(t *testing.T) {
"c": "from STATS select count($line),last($time)," +
"avg($goroutines),min(concurrentConnections),max(lifetimeConnections) " +
"group by $hostname where $time eq \"20211002-071949\"",
+ "d": "from STATS select $mask,$md5,$foo,$bar,$baz,last($time)," +
+ " set $mask = maskdigits($time), $md5 = md5sum($time), " +
+ "$foo = 42, $bar = \"baz\", $baz = $time group by $hostname",
}
for subtestName, query := range testTable {