From 6430a5de1db7991a03dc936967ae632df1c2cf9c Mon Sep 17 00:00:00 2001 From: hantmac Date: Tue, 19 Mar 2024 20:10:37 +0800 Subject: [PATCH] fix: check state --- .../src/main/java/com/databend/client/DatabendClientV1.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/databend-client/src/main/java/com/databend/client/DatabendClientV1.java b/databend-client/src/main/java/com/databend/client/DatabendClientV1.java index e666c2da..90ad7aff 100644 --- a/databend-client/src/main/java/com/databend/client/DatabendClientV1.java +++ b/databend-client/src/main/java/com/databend/client/DatabendClientV1.java @@ -218,7 +218,7 @@ public boolean isRunning() { return false; } // if State is Failed or Finished, then it is not running - if (results.getState().toLowerCase(Locale.US).equals(succeededState) || results.getState().toLowerCase(Locale.US).equals(failedState) || results.getState().toLowerCase(Locale.US).equals(finishedState)) { + if (results.getState().toLowerCase(Locale.US).equals(failedState) || results.getState().toLowerCase(Locale.US).equals(finishedState)) { return false; } // is running if nextUri is not null