This is an automated email from the ASF dual-hosted git repository.

dataroaring pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 51d21c4b97b [test](doc) add cancel-warm-up example in doris's doc to 
regression test (#43286)
51d21c4b97b is described below

commit 51d21c4b97b2992317609935a9dcf7abc834c124
Author: zhengyu <[email protected]>
AuthorDate: Thu Nov 21 11:35:22 2024 +0800

    [test](doc) add cancel-warm-up example in doris's doc to regression test 
(#43286)
    
    Signed-off-by: freemandealer <[email protected]>
---
 .../Utility-Statements/cancel-warm-up.md.groovy    | 42 ++++++++++++++++++++++
 1 file changed, 42 insertions(+)

diff --git 
a/regression-test/suites/doc/sql-manual/sql-statements/Utility-Statements/cancel-warm-up.md.groovy
 
b/regression-test/suites/doc/sql-manual/sql-statements/Utility-Statements/cancel-warm-up.md.groovy
new file mode 100644
index 00000000000..925195540f9
--- /dev/null
+++ 
b/regression-test/suites/doc/sql-manual/sql-statements/Utility-Statements/cancel-warm-up.md.groovy
@@ -0,0 +1,42 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+import org.junit.jupiter.api.Assertions;
+
+suite("docs/sql-manual/sql-statements/Utility-Statements/cancel-warm-up.md") {
+
+    if (!isCloudMode()) {
+        return
+    }
+
+    def show = {
+        multi_sql """
+            SHOW WARM UP JOB;
+        """
+    }
+
+    try {
+        show()
+        multi_sql """
+            CANCEL WARM UP JOB WHERE id = 1;
+        """
+    } catch (Throwable t) {
+        println("examples in 
docs/sql-manual/sql-statements/Utility-Statements/cancel-warm-up.md is expected 
to fail on bad job id")
+    } finally {
+        show()
+    }
+}


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to