BePPPower commented on code in PR #47976: URL: https://github.com/apache/doris/pull/47976#discussion_r1959192412
########## regression-test/suites/export_p0/test_export_basic.groovy: ########## @@ -184,28 +166,23 @@ suite("test_export_basic", "p0") { DISTRIBUTED BY HASH(id) PROPERTIES("replication_num" = "1"); """ - File[] files = new File("${outFilePath}").listFiles() - String file_path = files[0].getAbsolutePath() - streamLoad { - table "${table_load_name}" - - set 'column_separator', ',' - set 'columns', 'id, Name, age' - set 'strict_mode', 'true' - - file "${file_path}" - 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(150, json.NumberTotalRows) - assertEquals(0, json.NumberFilteredRows) - } + // use local() tvf to reload the data + def ipList = [:] + def portList = [:] + getBackendIpHeartbeatPort(ipList, portList) + ipList.each { beid, ip -> + logger.info("Begin to insert into ${table_load_name} from local()") + sql """ + insert into ${table_load_name} + select * from local( + "file_path" = "${local_tvf_prefix}/${local_tvf_prefix}/${table_export_name}_${uuid}/*", Review Comment: done -- 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