This is an automated email from the ASF dual-hosted git repository. dataroaring pushed a commit to branch branch-3.0 in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.0 by this push: new 9161074cbcc [test](inverted index) Change the duplicate name test (#39014) 9161074cbcc is described below commit 9161074cbcc36533a1c172c812487968e6ca9aeb Author: zzzxl <33418555+zzzxl1...@users.noreply.github.com> AuthorDate: Wed Aug 7 20:31:19 2024 +0800 [test](inverted index) Change the duplicate name test (#39014) https://github.com/apache/doris/pull/39013 --- .../inverted_index_p0/test_no_index_match.groovy | 28 +++++++++++----------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/regression-test/suites/inverted_index_p0/test_no_index_match.groovy b/regression-test/suites/inverted_index_p0/test_no_index_match.groovy index 60227b01168..2df40235a3f 100644 --- a/regression-test/suites/inverted_index_p0/test_no_index_match.groovy +++ b/regression-test/suites/inverted_index_p0/test_no_index_match.groovy @@ -18,7 +18,7 @@ suite("test_no_index_match", "p0") { // define a sql table - def testTable_unique = "httplogs_unique" + def testTable = "test_no_index_match" def create_httplogs_unique_table = {testTablex -> // multi-line sql @@ -77,35 +77,35 @@ suite("test_no_index_match", "p0") { } try { - sql "DROP TABLE IF EXISTS ${testTable_unique}" - create_httplogs_unique_table.call(testTable_unique) - load_httplogs_data.call(testTable_unique, 'httplogs_unique', 'true', 'json', 'documents-1000.json') + sql "DROP TABLE IF EXISTS ${testTable}" + create_httplogs_unique_table.call(testTable) + load_httplogs_data.call(testTable, 'test_no_index_match', 'true', 'json', 'documents-1000.json') - sql """ INSERT INTO ${testTable_unique} VALUES (1, '1', '', 1, 1); """ + sql """ INSERT INTO ${testTable} VALUES (1, '1', '', 1, 1); """ sql 'sync' try { - qt_sql """ select count() from ${testTable_unique} where (request match_any 'hm bg'); """ - qt_sql """ select count() from ${testTable_unique} where (request match_all 'hm bg'); """ - qt_sql """ select count() from ${testTable_unique} where (request match_phrase 'hm bg'); """ - qt_sql """ select count() from ${testTable_unique} where (request match_phrase_prefix 'hm b'); """ - qt_sql """ select count() from ${testTable_unique} where (request match_regexp 'la'); """ + qt_sql """ select count() from ${testTable} where (request match_any 'hm bg'); """ + qt_sql """ select count() from ${testTable} where (request match_all 'hm bg'); """ + qt_sql """ select count() from ${testTable} where (request match_phrase 'hm bg'); """ + qt_sql """ select count() from ${testTable} where (request match_phrase_prefix 'hm b'); """ + qt_sql """ select count() from ${testTable} where (request match_regexp 'la'); """ - qt_sql """ select count() from ${testTable_unique} where (request match_phrase '欧冶工业品'); """ - qt_sql """ select count() from ${testTable_unique} where (request match_phrase_prefix '欧冶工业品'); """ + qt_sql """ select count() from ${testTable} where (request match_phrase '欧冶工业品'); """ + qt_sql """ select count() from ${testTable} where (request match_phrase_prefix '欧冶工业品'); """ } finally { } try { - sql """ select /*+ SET_VAR(enable_match_without_inverted_index = 0) */ count() from ${testTable_unique} where (request match_phrase 'hm bg'); """ + sql """ select /*+ SET_VAR(enable_match_without_inverted_index = 0) */ count() from ${testTable} where (request match_phrase 'hm bg'); """ } catch (Exception e) { log.info(e.getMessage()); assertTrue(e.getMessage().contains("match_phrase not support execute_match")) } try { - sql """ select /*+ SET_VAR(enable_match_without_inverted_index = 0) */ count() from ${testTable_unique} where (request match_phrase_prefix 'hm b'); """ + sql """ select /*+ SET_VAR(enable_match_without_inverted_index = 0) */ count() from ${testTable} where (request match_phrase_prefix 'hm b'); """ } catch (Exception e) { log.info(e.getMessage()); assertTrue(e.getMessage().contains("match_phrase_prefix not support execute_match")) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org