update to v0.7.1

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
This commit is contained in:
Ruihang Xia
2026-01-07 11:58:08 +08:00
parent 4610e86dcb
commit fbb6666942
4 changed files with 16 additions and 7 deletions

View File

@@ -38,11 +38,22 @@ TQL EVAL (0, 100, '15s') test{host=~"(10.0.160.237:8080|10.0.160.237:9090)"};
TQL EVAL (0, 100, '15s') test{host=~"10\\.0\\.160\\.237:808|nonexistence"};
Error: 2000(InvalidSyntax), Invalid regex pattern, invalid char, '.' break at 3
++
++
TQL EVAL (0, 100, '15s') test{host=~"(10\\.0\\.160\\.237:8080|10\\.0\\.160\\.237:9090)"};
Error: 2000(InvalidSyntax), Invalid regex pattern, invalid char, '.' break at 4
+---------------------+-------------------+-----+
| ts | host | val |
+---------------------+-------------------+-----+
| 1970-01-01T00:00:00 | 10.0.160.237:8080 | 1 |
| 1970-01-01T00:00:15 | 10.0.160.237:8080 | 1 |
| 1970-01-01T00:00:30 | 10.0.160.237:8080 | 1 |
| 1970-01-01T00:00:45 | 10.0.160.237:8080 | 1 |
| 1970-01-01T00:01:00 | 10.0.160.237:8080 | 1 |
| 1970-01-01T00:01:15 | 10.0.160.237:8080 | 1 |
| 1970-01-01T00:01:30 | 10.0.160.237:8080 | 1 |
+---------------------+-------------------+-----+
-- Some radical regex optimization
-- SQLNESS REPLACE (metrics.*) REDACTED

View File

@@ -55,7 +55,6 @@ tql eval (0,10,'5s') sum by (abcde) (metric);
tql eval (0,10,'5s') sum by (AbCdE) (metric);
-- not allowed by the parser
tql eval (0,10,'5s') sum by (`AbCdE`) (metric);
drop table metric;