Files
greptimedb/tests/cases/standalone/common/tql/binary_operator.sql
Ruihang Xia 605776f49c feat: support bool operator with other computation (#1844)
* add some cases

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* fix sqlness test

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* impl atan2 and power

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* fix instant manipulator

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* fix clippy

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

---------

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
2023-06-29 19:23:54 +08:00

12 lines
265 B
SQL

create table data (ts timestamp(3) time index, val double);
insert into data values (0, 1), (10000, 2), (20000, 3);
tql eval (0, 30, '10s'), data < 1;
tql eval (0, 30, '10s'), data + (1 < bool 2);
tql eval (0, 30, '10s'), data + (1 > bool 2);
drop table data;