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


##########
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) {
+      System.out.println("Cannot fit AR(1) model. Please try another method.");
+      this.time = new long[] {0};
+      this.repaired = new double[] {0D};

Review Comment:
   I think it's not necessary to do this



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