SiasDoming opened a new issue #2990:
URL: https://github.com/apache/iotdb/issues/2990
**描述**
UDF API提供的get*OrDefault参数解析接口(包括getBooleanOrDefault, getIntOrDefault,
getLongOrDefault, getFloatOrDefault, getDoubleOrDefault)在输入参数形式错误时报解析错误,而非返回默认值。
**样例**
UDF实现: udfParameter.getIntOrDefault("IntArgument", 10);
调用: SELECT ExampleUDF(s1, "IntArgument"="ThisIsNotAnInteger")
Msg: 411: Error occurred in query process: Error occurred during executing
UDTF#beforeStart(UDFParameters, UDTFConfigurations):
java.lang.NumberFormatException: For input string: "ThisIsNotAnInteger"
**解决方案**
在相关函数接口中加入异常处理,解析错误时返回预设的默认值
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]