liaolanyu created IOTDB-6149:
--------------------------------
Summary: Fix incorrect output of UDF with multiple inputs
Key: IOTDB-6149
URL: https://issues.apache.org/jira/browse/IOTDB-6149
Project: Apache IoTDB
Issue Type: Bug
Reporter: liaolanyu
Assignee: liaolanyu
Attachments: udf.jar
How to reproduce:
# Create a function with UDF that uses SlidingTimeWinodw AccessStrategy and
takes multiple expressions as input.
# Run a query using this function with multiple inputs like: select func(s1,
s2) from root.sg
# See if the ouput is correct.
You can use the attached jar as the udf lib.
Inserting data into two series is enough to reproduce this issue.
You can register the UDF and run the SQL as follows:
CREATE FUNCTION best_fit_retrieval AS
'org.apache.iotdb.udf.cisdi.tendency.CisdiUDTFBestFitRetrievalWithText';
select
best_fit_retrieval(s1,'cycleTime'='10','preValue'='0.41335068807341324','preTime'='0','afterValue'='null',
'afterTime'='0','startTime'='1','endTime'='10','isCalcFitValue'='true','isCollectorNull'='false','interpolationType'='Linear')
from root.test.unitTest;
--
This message was sent by Atlassian Jira
(v8.20.10#820010)