range too large when database using precision=us(or ns) and query with interval(1n)
jiumar19 opened this issue · comments
Is there something wrong with time window query when database using precision 'us' (or 'ns')
taosd version: 3.3.0.3
-
create database test_db precision 'us';
-
create stable if not exists test_table (ts timestamp,vol int) tags ( pos binary(64));
-
insert into test_client using test_table tags ('somewhere') values (now,1);
-
select _wstart,count(*) from test_table where ts>='2024-01-01' and ts <='2024-10-01' interval(1n) fill(value,0);
server resp: Query OK, 10 row(s) in set (0.004353s) -
select _wstart,count(*) from test_table where ts>='2024-01-01' and ts <='2024-11-01' interval(1n) fill(value,0);
server resp: DB error: Start(end) time of query range required or time range too large (0.000702s) -
select _wstart,count(*) from test_table where ts>='2024-01-01' and ts <='2024-11-01' interval(1n);
server resp: Query OK, 1 row(s) in set (0.003900s)
if I set database precision='ms', all the queries above are running well