mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-08 14:22:58 +00:00
update other sqlness results
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user