update other sqlness results

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
This commit is contained in:
Ruihang Xia
2026-01-06 11:49:15 +08:00
parent 5c44410d5a
commit 8d393806eb
2 changed files with 12 additions and 14 deletions

View File

@@ -38,22 +38,11 @@ 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)"};
+---------------------+-------------------+-----+
| 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 |
+---------------------+-------------------+-----+
Error: 2000(InvalidSyntax), Invalid regex pattern, invalid char, '.' break at 4
-- Some radical regex optimization
-- SQLNESS REPLACE (metrics.*) REDACTED

View File

@@ -122,7 +122,16 @@ tql eval (0,10,'5s') sum by (AbCdE) (metric);
-- not allowed by the parser
tql eval (0,10,'5s') sum by (`AbCdE`) (metric);
Error: 2000(InvalidSyntax), invalid promql query
+-------+---------------------+-----------------+
| AbCdE | ts | sum(metric.val) |
+-------+---------------------+-----------------+
| host1 | 1970-01-01T00:00:00 | 1.0 |
| host1 | 1970-01-01T00:00:05 | 2.0 |
| host1 | 1970-01-01T00:00:10 | 3.0 |
| host2 | 1970-01-01T00:00:00 | 4.0 |
| host2 | 1970-01-01T00:00:05 | 5.0 |
| host2 | 1970-01-01T00:00:10 | 6.0 |
+-------+---------------------+-----------------+
drop table metric;