yiguolei commented on code in PR #22213: URL: https://github.com/apache/doris/pull/22213#discussion_r1274264225
########## regression-test/suites/unique_with_mow_p0/partial_update/test_partial_update_schema_change.groovy: ########## @@ -17,39 +17,1093 @@ // under the License. suite("test_partial_update_schema_change", "p0") { - def tableName = "test_partial_update_schema_change" + // test add value column + def tableName = "test_partial_update_light_schema_change_add_column" + sql """ DROP TABLE IF EXISTS ${tableName} """ + sql """ + CREATE TABLE ${tableName} ( + `c0` int NULL, + `c1` int NULL, + `c2` int NULL, + `c3` int NULL, + `c4` int NULL, + `c5` int NULL, + `c6` int NULL, + `c7` int NULL, + `c8` int NULL, + `c9` int NULL,) + UNIQUE KEY(`c0`) DISTRIBUTED BY HASH(`c0`) BUCKETS 1 + PROPERTIES( + "replication_num" = "1", + "light_schema_change" = "true", + "enable_unique_key_merge_on_write" = "true") + """ + + streamLoad { + table "${tableName}" + + set 'column_separator', ',' + set 'columns', 'c0, c1, c2, c3, c4, c5, c6, c7, c8, c9' + + file 'schema_change/load.csv' + time 10000 // limit inflight 10s + + check { result, exception, startTime, endTime -> + if (exception != null) { + throw exception + } + log.info("Stream load result: ${result}".toString()) + def json = parseJson(result) + assertEquals("success", json.Status.toLowerCase()) + assertEquals(1, json.NumberTotalRows) + assertEquals(0, json.NumberFilteredRows) + assertEquals(0, json.NumberUnselectedRows) + } + } + qt_sql1 " select * from ${tableName}" Review Comment: add order by please -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org