Open leo-cai-timeplus opened 1 year ago
if we run
create stream a(i int);
insert into a (i) values (1);
insert into a (i) values (2);
insert into a (i) values (3);
truncate stream a;
in multiquery mode,
then we run select * from table(a)
and the result will be
d483020dcef5 :) select * from table(a)
SELECT
*
FROM
table(a)
Query id: 6f562454-2eef-4ee5-b2ca-ef640bce1be9
┌─i─┬────────────────_tp_time─┐
│ 1 │ 2023-09-20 02:52:51.267 │
│ 2 │ 2023-09-20 02:52:51.270 │
│ 3 │ 2023-09-20 02:52:51.272 │
└───┴─────────────────────────┘
3 rows in set. Elapsed: 0.003 sec.
if we run
create stream a(i int);
insert into a (i) values (1);
insert into a (i) values (2);
insert into a (i) values (3);
and then run
truncate stream a;
then we run select * from table(a)
and the result will be empty.
Describe what's wrong
after that, run
select * from table(a)
and you will get nothing,but run
select i from a where _tp_time>earliest_ts() limit 1
and the result will beHow to reproduce
run
Error message and/or stacktrace
Additional context