Skip to content

Commit

Permalink
[regression-test](cases) optimize some cases (apache#40174)
Browse files Browse the repository at this point in the history
1. modify some variant cases to concurrent and p1
2. rowsstore cases to concurrent
  • Loading branch information
eldenmoon committed Sep 2, 2024
1 parent b4e6776 commit d13270a
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion be/src/common/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -988,7 +988,7 @@ DEFINE_Bool(enable_index_apply_preds_except_leafnode_of_andnode, "true");

DEFINE_mBool(variant_enable_flatten_nested, "false");
DEFINE_mDouble(variant_ratio_of_defaults_as_sparse_column, "1");
DEFINE_mInt64(variant_threshold_rows_to_estimate_sparse_column, "1000");
DEFINE_mInt64(variant_threshold_rows_to_estimate_sparse_column, "2048");
DEFINE_mBool(variant_throw_exeception_on_invalid_json, "false");

// block file cache
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import org.codehaus.groovy.runtime.IOGroovyMethods


suite("test_compaction_uniq_keys_row_store", "nonConcurrent") {
suite("test_compaction_uniq_keys_row_store", "p0") {
def realDb = "regression_test_serving_p0"
def tableName = realDb + ".compaction_uniq_keys_row_store_regression_test"
sql "CREATE DATABASE IF NOT EXISTS ${realDb}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.

suite("test_variant_index_format_v1", "p0") {

suite("test_variant_index_format_v1", "p2") {
def calc_file_crc_on_tablet = { ip, port, tablet ->
return curl("GET", String.format("http://%s:%s/api/calc_crc?tablet_id=%s", ip, port, tablet))
}
Expand Down
3 changes: 1 addition & 2 deletions regression-test/suites/variant_p0/with_index/load.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ suite("regression_test_variant_with_index", "nonConcurrent"){
qt_sql_inv_3 """select * from var_with_index where inv match 'hello' and cast(v["a"] as int) > 0 order by k"""
sql "truncate table var_with_index"
// set back configs
set_be_config.call("variant_ratio_of_defaults_as_sparse_column", "0.95")
set_be_config.call("variant_threshold_rows_to_estimate_sparse_column", "1000")
set_be_config.call("variant_threshold_rows_to_estimate_sparse_column", "2048")
// sql "truncate table ${table_name}"
sql """insert into var_with_index values(1, '{"a1" : 0, "b1": 3}', 'hello world'), (2, '{"a2" : 123}', 'world'),(3, '{"a3" : 123}', 'hello world')"""
sql """insert into var_with_index values(4, '{"b1" : 0, "b2": 3}', 'hello world'), (5, '{"b2" : 123}', 'world'),(6, '{"b3" : 123}', 'hello world')"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import org.codehaus.groovy.runtime.IOGroovyMethods

suite("test_compaction_sparse_column", "nonConcurrent") {
suite("test_compaction_sparse_column", "p1,nonConcurrent") {
def tableName = "test_compaction"

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import org.codehaus.groovy.runtime.IOGroovyMethods

suite("test_compaction_extract_root", "nonConcurrent") {
suite("test_compaction_extract_root", "p1,nonConcurrent") {
def tableName = "test_t"

def backendId_to_backendIP = [:]
Expand Down

0 comments on commit d13270a

Please sign in to comment.