This is an automated email from the ASF dual-hosted git repository.
panxiaolei 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 9477436524 [fix](test) add def keyword to define local variable
success (#21206)
9477436524 is described below
commit 9477436524990f3998013b29bdcc9a8ba4f28ea5
Author: Kang <[email protected]>
AuthorDate: Tue Jul 4 14:24:37 2023 +0800
[fix](test) add def keyword to define local variable success (#21206)
add def keyword to define local variable success
---
regression-test/suites/json_p0/test_json_load_and_function.groovy | 2 +-
.../suites/json_p0/test_json_load_unique_key_and_function.groovy | 2 +-
regression-test/suites/jsonb_p0/test_jsonb_load_and_function.groovy | 2 +-
.../suites/jsonb_p0/test_jsonb_load_unique_key_and_function.groovy | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/regression-test/suites/json_p0/test_json_load_and_function.groovy
b/regression-test/suites/json_p0/test_json_load_and_function.groovy
index a02268c096..87ec372129 100644
--- a/regression-test/suites/json_p0/test_json_load_and_function.groovy
+++ b/regression-test/suites/json_p0/test_json_load_and_function.groovy
@@ -106,7 +106,7 @@ suite("test_json_load_and_function", "p0") {
// insert into invalid json rows with enable_insert_strict=true
// expect excepiton and no rows not changed
sql """ set enable_insert_strict = true """
- success = true
+ def success = true
try {
sql """INSERT INTO ${testTable} VALUES(26, '')"""
} catch(Exception ex) {
diff --git
a/regression-test/suites/json_p0/test_json_load_unique_key_and_function.groovy
b/regression-test/suites/json_p0/test_json_load_unique_key_and_function.groovy
index 5b2c487a5f..4b990bc4f7 100644
---
a/regression-test/suites/json_p0/test_json_load_unique_key_and_function.groovy
+++
b/regression-test/suites/json_p0/test_json_load_unique_key_and_function.groovy
@@ -97,7 +97,7 @@ suite("test_json_unique_load_and_function", "p0") {
// insert into invalid json rows with enable_insert_strict=true
// expect excepiton and no rows not changed
sql """ set enable_insert_strict = true """
- success = true
+ def success = true
try {
sql """INSERT INTO ${testTable} VALUES(26, '')"""
} catch(Exception ex) {
diff --git
a/regression-test/suites/jsonb_p0/test_jsonb_load_and_function.groovy
b/regression-test/suites/jsonb_p0/test_jsonb_load_and_function.groovy
index 4daa5a79f3..6941f335c2 100644
--- a/regression-test/suites/jsonb_p0/test_jsonb_load_and_function.groovy
+++ b/regression-test/suites/jsonb_p0/test_jsonb_load_and_function.groovy
@@ -104,7 +104,7 @@ suite("test_jsonb_load_and_function", "p0") {
// insert into invalid json rows with enable_insert_strict=true
// expect excepiton and no rows not changed
sql """ set enable_insert_strict = true """
- success = true
+ def success = true
try {
sql """INSERT INTO ${testTable} VALUES(26, '')"""
} catch(Exception ex) {
diff --git
a/regression-test/suites/jsonb_p0/test_jsonb_load_unique_key_and_function.groovy
b/regression-test/suites/jsonb_p0/test_jsonb_load_unique_key_and_function.groovy
index 6343b458ec..eee42e3a69 100644
---
a/regression-test/suites/jsonb_p0/test_jsonb_load_unique_key_and_function.groovy
+++
b/regression-test/suites/jsonb_p0/test_jsonb_load_unique_key_and_function.groovy
@@ -97,7 +97,7 @@ suite("test_jsonb_unique_load_and_function", "p0") {
// insert into invalid json rows with enable_insert_strict=true
// expect excepiton and no rows not changed
sql """ set enable_insert_strict = true """
- success = true
+ def success = true
try {
sql """INSERT INTO ${testTable} VALUES(26, '')"""
} catch(Exception ex) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]