From 0e73d061c3978b9d49249556a0dd6d5e876e5d76 Mon Sep 17 00:00:00 2001 From: zhengyu Date: Tue, 24 Oct 2023 10:54:48 +0800 Subject: [PATCH] [fix](regression) fix auth case for move-memtable streamload test (#25659) Signed-off-by: freemandealer --- .../test_stream_load_move_memtable.groovy | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/regression-test/suites/load_p0/stream_load/test_stream_load_move_memtable.groovy b/regression-test/suites/load_p0/stream_load/test_stream_load_move_memtable.groovy index f0910c2dee1b4f..f8fb9367fc4436 100644 --- a/regression-test/suites/load_p0/stream_load/test_stream_load_move_memtable.groovy +++ b/regression-test/suites/load_p0/stream_load/test_stream_load_move_memtable.groovy @@ -50,7 +50,7 @@ suite("test_stream_load_move_memtable", "p0") { DISTRIBUTED BY HASH(`k1`, `k2`) BUCKETS 3 PROPERTIES ("replication_allocation" = "tag.location.default: 1"); """ - + // test strict_mode success streamLoad { table "${tableName}" @@ -284,7 +284,7 @@ suite("test_stream_load_move_memtable", "p0") { `k4` ARRAY NULL COMMENT "", `k5` ARRAY NULL COMMENT "", `k6` ARRAY NULL COMMENT "", - `k7` ARRAY NULL COMMENT "", + `k7` ARRAY NULL COMMENT "", `k8` ARRAY NULL COMMENT "", `k9` ARRAY NULL COMMENT "", `k10` ARRAY NULL COMMENT "", @@ -851,7 +851,7 @@ suite("test_stream_load_move_memtable", "p0") { assertEquals(5, json.NumberUnselectedRows) } } - + sql "sync" order_qt_sql1 "select * from ${tableName9} order by k1, k2" @@ -876,7 +876,7 @@ suite("test_stream_load_move_memtable", "p0") { DISTRIBUTED BY HASH(`k1`, `k2`) BUCKETS 3 PROPERTIES ("replication_allocation" = "tag.location.default: 1"); """ - + sql """create USER common_user1@'%' IDENTIFIED BY '123456'""" sql """GRANT LOAD_PRIV ON *.* TO 'common_user1'@'%';""" @@ -886,7 +886,7 @@ suite("test_stream_load_move_memtable", "p0") { set 'column_separator', '|' set 'columns', 'k1, k2, v1, v2, v3' set 'strict_mode', 'true' - set 'Authorization', 'Basic Y29tbW9uX3VzZXI6MTIzNDU2' + set 'Authorization', 'Basic Y29tbW9uX3VzZXIxOjEyMzQ1Ng==' set 'memtable_on_sink_node', 'true' file 'test_auth.csv' @@ -904,7 +904,7 @@ suite("test_stream_load_move_memtable", "p0") { assertEquals(0, json.NumberUnselectedRows) } } - + sql "sync" sql """DROP USER 'common_user1'@'%'""" @@ -947,7 +947,7 @@ suite("test_stream_load_move_memtable", "p0") { assertEquals(0, json.NumberUnselectedRows) } } - + sql "sync" def res = sql "select * from ${tableName14}" def time = res[0][5].toString().split("T")[0].split("-")