changxue created IOTDB-4958:
-------------------------------
Summary: [UDF] use a udf which has not been created , should
return error whatever the timeseries exists or not
Key: IOTDB-4958
URL: https://issues.apache.org/jira/browse/IOTDB-4958
Project: Apache IoTDB
Issue Type: Bug
Affects Versions: 0.14.0-SNAPSHOT
Reporter: changxue
Assignee: Yuan Tian
[UDF] use a udf which has not been created , should return error whatever the
timeseries exists or not
问题:
# timeseries 不存在时,返回空,不报错
# timeseries 存在时,报错
期望结果:
无论timeseries 是否存在,都应该报错。
reproduction:
{code:sql}
show functions;
drop database root.**;
-- notice this
IoTDB> select my_compare_http(s1,s2) from root.udf.upload.d1
+----+
|Time|
+----+
+----+
Empty set.
It costs 0.003s
create timeseries root.udf.upload.d1.s1 with datatype=int32;
create timeseries root.udf.upload.d1.s2 with datatype=int32;
-- notice this
IoTDB> select my_compare_http(s1,s2) from root.udf.upload.d1
Msg: 416: Error occurred during inferring UDF data type:
java.lang.RuntimeException: Failed to reflect UDF instance, because UDF
MY_COMPARE_HTTP has not been registered.
{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)