1515// specific language governing permissions and limitations
1616// under the License.
1717
18- suite(" test_column_boundary" ) {
18+ suite(" test_column_boundary" , " nonConcurrent " ) {
1919 sql """ DROP TABLE IF EXISTS test_column_boundary """
2020 sql """
2121 CREATE TABLE IF NOT EXISTS test_column_boundary (
2222 u_id int NULL COMMENT "",
23- u_city varchar(20 ) NULL COMMENT ""
23+ u_city varchar(40 ) NULL COMMENT ""
2424 ) ENGINE=OLAP
2525 DUPLICATE KEY(`u_id`, `u_city`)
2626 DISTRIBUTED BY HASH(`u_id`, `u_city`) BUCKETS 1
@@ -31,24 +31,40 @@ suite("test_column_boundary") {
3131 );
3232 """
3333
34- sql """ insert into test_column_boundary select number, number + random() from numbers("number" = "1000000"); """
34+ sql """ DROP TABLE IF EXISTS test_column_boundary2 """
35+ sql """
36+ CREATE TABLE IF NOT EXISTS test_column_boundary2 (
37+ u_id int NULL COMMENT "",
38+ u_city varchar(40) NULL COMMENT ""
39+ ) ENGINE=OLAP
40+ DUPLICATE KEY(`u_id`, `u_city`)
41+ DISTRIBUTED BY HASH(`u_id`, `u_city`) BUCKETS 1
42+ PROPERTIES (
43+ "replication_allocation" = "tag.location.default: 1",
44+ "in_memory" = "false",
45+ "storage_format" = "V2"
46+ );
47+ """
48+
49+ sql """ insert into test_column_boundary2 select number, number + random() from numbers("number" = "1000000"); """
3550 Integer count = 0 ;
36- Integer maxCount = 25 ;
51+ Integer maxCount = 270 ;
3752 while (count < maxCount) {
38- sql """ insert into test_column_boundary select number, number + random() from numbers("number" = "10000000"); """
53+ log. info(" count: ${ count} " )
54+ sql """ insert into test_column_boundary select * from test_column_boundary2; """
3955 count++
4056 sleep(100 );
4157 }
4258 sql """ set parallel_pipeline_task_num = 1; """
4359
4460 qt_sql_1 """ select count() from test_column_boundary; """ // 256000000 rows
45- test {
46- // column size is too large
47- sql """ select sum(res) from (select count() over(partition by u_city) as res from test_column_boundary) as t; """
48- exception " string column length is too large"
61+
62+ try {
63+ GetDebugPoint (). enableDebugPointForAllBEs(" AnalyticSinkLocalState._remove_unused_rows" )
64+ // before column size will be too large
65+ qt_sql_2 """ select sum(res) from (select count() over(partition by u_city) as res from test_column_boundary) as t; """
66+ } finally {
67+ GetDebugPoint (). disableDebugPointForAllBEs(" AnalyticSinkLocalState._remove_unused_rows" )
4968 }
5069 sql """ DROP TABLE IF EXISTS test_column_boundary """
51- }
52-
53-
54-
70+ }
0 commit comments