SteveYurongSu commented on code in PR #5857:
URL: https://github.com/apache/iotdb/pull/5857#discussion_r869792313


##########
library-udf/src/main/java/org/apache/iotdb/library/drepair/util/ARFill.java:
##########
@@ -75,6 +76,14 @@ public void fill() {
       mean_epsilon += epsilon;
       var_epsilon += epsilon * epsilon;
     }
+    try {
+      assert cnt_epsilon > 0d;
+    } catch (AssertionError e) {

Review Comment:
   We can use UDFException instead.
   
   ```
   if (cnt_epsilon <= 0d) {
     throw new UDFException("xxx");
   }
   ```



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to