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/14 07:44:00 UTC

[jira] [Created] (IOTDB-4926) [udf]should return error and error message when the key of parameter attributes is not quoted

changxue created IOTDB-4926:
-------------------------------

             Summary: [udf]should return error and error message when the key of parameter attributes is not quoted
                 Key: IOTDB-4926
                 URL: https://issues.apache.org/jira/browse/IOTDB-4926
             Project: Apache IoTDB
          Issue Type: Bug
    Affects Versions: 0.14.0-SNAPSHOT
            Reporter: changxue
            Assignee: Yuan Tian
         Attachments: image-2022-11-14-15-40-37-461.png, normla-udf-0.14-SNAPSHOT.jar

[udf]should return error and error message when the key of parameter attributes is not quoted

reproduction:
{code:java}
create function sum_sec as "com.timecho.udf.normal.TestSlidingTimeWindowAccessStrategy";CREATE TIMESERIES root.udf.d1.s1 WITH DATATYPE=int64, ENCODING=PLAIN;
CREATE TIMESERIES root.udf.d1.s2 WITH DATATYPE=int64, ENCODING=PLAIN;
CREATE TIMESERIES root.udf.d1.s3 WITH DATATYPE=int32, ENCODING=PLAIN;
CREATE TIMESERIES root.udf.d1.ss1 WITH DATATYPE=int64, ENCODING=PLAIN;select (s1, interval=3) from root.udf.d1;
 
insert into root.udf.d1 (time, s1, s2) values (1, 1, 2),(2, 3, 4),(3, null, 6),(4, 7, 8),(5, 9, 10),(6, 11, null),(7, 13, 14),(8, 15, 16),(12, 17, 18),(20, 19, 20);-- 检验
-- quote
select sum_sec(s1, 'interval'=3) from root.udf.d1; 

-- no error, no logs, but it doesn't work.
select sum_sec(s1, interval=3) from root.udf.d1; {code}
 

!image-2022-11-14-15-40-37-461.png!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)