You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/reference/sql/tql.md
+30-7Lines changed: 30 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,23 +5,24 @@ description: Covers the TQL keyword for executing Time-Series Query Language in
5
5
6
6
# TQL
7
7
8
-
The `TQL` keyword executes TQL language in SQL. The TQL is Time-Series Query Language, which is an extension for Prometheus's [PromQL](https://prometheus.io/docs/prometheus/latest/querying/basics/) in GreptimeDB.
8
+
The `TQL` keyword executes TQL language in SQL. The TQL is Telemetry Query Language, which is an extension for Prometheus's [PromQL](https://prometheus.io/docs/prometheus/latest/querying/basics/) in GreptimeDB.
`EXPLAIN` displays both the logical plan and execution plan for a given PromQL query. The syntax is as follows:
@@ -47,7 +70,7 @@ For example, to explain the PromQL `sum by (instance) (rate(node_disk_written_by
47
70
TQL EXPLAIN sum by (instance) (rate(node_disk_written_bytes_total[2m])) > 50;
48
71
```
49
72
50
-
Notice that since the given query won't be actually executed, the triple `(start, end, step)` is not necessary. But you can still provide it like in `TQL EVAL`:
73
+
Notice that since the given query won't be actually executed, the triple `(start, end, step, [lookback])` is not necessary. But you can still provide it like in `TQL EVAL`:
51
74
52
75
```
53
76
TQL EXPLAIN (0, 100, '10s') sum by (instance) (rate(node_disk_written_bytes_total[2m])) > 50;
0 commit comments