You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "changxue (Jira)" <ji...@apache.org> on 2022/11/28 02:21:00 UTC
[jira] [Created] (IOTDB-5065) [udf][regression]session time window, should fail when max_interval=0
changxue created IOTDB-5065:
-------------------------------
Summary: [udf][regression]session time window, should fail when max_interval=0
Key: IOTDB-5065
URL: https://issues.apache.org/jira/browse/IOTDB-5065
Project: Apache IoTDB
Issue Type: Bug
Affects Versions: 0.14.0-SNAPSHOT
Reporter: changxue
Assignee: Yuan Tian
Attachments: image-2022-11-28-10-15-36-888.png, image-2022-11-28-10-15-53-447.png
[udf][regression]session time window, should fail when max_interval=0
expect:
!image-2022-11-28-10-15-36-888.png!
actual:
!image-2022-11-28-10-15-53-447.png!
reproduction:
{code:sql}
create function count_sec as "com.timecho.udf.normal.TestSessionTimeWindowAccessStrategy";
CREATE DATABASE root.udf;
CREATE TIMESERIES root.udf.d1.s1 WITH DATATYPE=text, ENCODING=PLAIN;
CREATE TIMESERIES root.udf.d1.s2 WITH DATATYPE=text, ENCODING=PLAIN;
select count_sec(s1, 'max_interval'='3', 'standard'='udf') from root.udf.d1;
insert into root.udf.d1 (time, s1, s2) values (1, 'udf', 'trigger'),(2, 'some' , 'old'),(3, null, 'trigger'),(9, 'udf', 'new'),(5, 'woman', 'udf'),(12, 'trigger', null),(14, 'udf', 14),(18, 'udf', 16),(21, 'trigger', 18),(24, 'udf', 20);
-- expect error
select count_sec(s1, 'max_interval'='0', 'standard'='udf') from root.udf.d1;
{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)