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

zhangchen pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.1 by this push:
     new a4aaace4818 [Fix](branch-2.1) Fix partial update regression test 
(#37560)
a4aaace4818 is described below

commit a4aaace4818059fdd5711b862d3eeb9ae4bf8b69
Author: abmdocrt <[email protected]>
AuthorDate: Wed Jul 10 10:44:24 2024 +0800

    [Fix](branch-2.1) Fix partial update regression test (#37560)
    
    Version 2.1 does not support partial update for variant type data, so we
    delete this case.
---
 .../test_partial_update_with_inverted_index.out    | 13 -----
 .../test_partial_update_with_inverted_index.groovy | 60 ----------------------
 2 files changed, 73 deletions(-)

diff --git 
a/regression-test/data/unique_with_mow_p0/partial_update/test_partial_update_with_inverted_index.out
 
b/regression-test/data/unique_with_mow_p0/partial_update/test_partial_update_with_inverted_index.out
deleted file mode 100644
index 7ddbe783e7e..00000000000
--- 
a/regression-test/data/unique_with_mow_p0/partial_update/test_partial_update_with_inverted_index.out
+++ /dev/null
@@ -1,13 +0,0 @@
--- This file is automatically generated. You should know what you did if you 
want to edit this
--- !select_1 --
-true   1       1       {"a":"a"}
-
--- !select_2 --
-true   1       1       {"b":"b"}
-
--- !select_1 --
-true   1       1       {"a":"a"}
-
--- !select_2 --
-true   1       1       {"b":"b"}
-
diff --git 
a/regression-test/suites/unique_with_mow_p0/partial_update/test_partial_update_with_inverted_index.groovy
 
b/regression-test/suites/unique_with_mow_p0/partial_update/test_partial_update_with_inverted_index.groovy
deleted file mode 100644
index f72160bb594..00000000000
--- 
a/regression-test/suites/unique_with_mow_p0/partial_update/test_partial_update_with_inverted_index.groovy
+++ /dev/null
@@ -1,60 +0,0 @@
-
-// 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.
-
-suite("test_partial_update_with_inverted_index", "p0") {
-
-    String db = context.config.getDbNameByFile(context.file)
-    sql "select 1;" // to create database
-
-    for (def use_row_store : [false, true]) {
-        logger.info("current params: use_row_store: ${use_row_store}")
-
-        connect(user = context.config.jdbcUser, password = 
context.config.jdbcPassword, url = context.config.jdbcUrl) {
-            sql "use ${db};"
-            def tableName = "test_partial_update_with_inverted_index"
-            // create table
-            sql """ DROP TABLE IF EXISTS ${tableName} """
-            sql """ CREATE TABLE ${tableName} (
-                        col1 BOOLEAN,
-                        col2 TINYINT,
-                        col3 SMALLINT,
-                        col4 variant,
-                        INDEX idx_col1 (`col1`) USING INVERTED,
-                        INDEX idx_col2 (`col2`) USING INVERTED,
-                        INDEX idx_col3 (`col3`) USING INVERTED,
-                        INDEX idx_col4 (`col4`) USING INVERTED
-                    ) unique key(col1, col2) distributed by hash(col1) buckets 
1
-                    properties(
-                        "replication_num" = "1",
-                        "store_row_column" = "${use_row_store}"
-                    ); """
-
-            sql """
-                insert into ${tableName} values(true, 1, 1, '{"a":"a"}');
-            """
-            qt_select_1 "select * from ${tableName};"
-
-            sql "set enable_unique_key_partial_update=true;" 
-            sql "set enable_insert_strict=false;"
-            sql """
-                insert into ${tableName} (col1, col2, col4)values(true, 1, 
'{"b":"b"}');
-            """
-            qt_select_2 "select * from ${tableName};"
-        }
-    }
-}


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

Reply via email to