Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -713,41 +713,12 @@ class Suite implements GroovyInterceptable {
}

void checkNereidsExecute(String sqlString) {
String tag = UUID.randomUUID().toString();
log.info("start check" + tag)
String finalSqlString = "--" + tag + "\n" + sqlString
ProfileAction profileAction = new ProfileAction(context, tag)
profileAction.run {
log.info("start profile run" + tag)
sql (finalSqlString)
}
profileAction.check {
profileString, exception ->
log.info("start profile check" + tag)
log.info(profileString)
Assertions.assertTrue(profileString.contains("- Is Nereids: Yes"))
}
profileAction.run()
sql (sqlString)
}

String checkNereidsExecuteWithResult(String sqlString) {
String tag = UUID.randomUUID().toString();
String result = null;
log.info("start check" + tag)
String finalSqlString = "--" + tag + "\n" + sqlString
ProfileAction profileAction = new ProfileAction(context, tag)
profileAction.run {
log.info("start profile run" + tag)
result = sql (finalSqlString)
}
profileAction.check {
profileString, exception ->
log.info("start profile check" + tag)
log.info(profileString)
Assertions.assertTrue(profileString.contains("- Is Nereids: Yes"))
}
profileAction.run()
return result;
String result = sql (sqlString);
return result
}

void createMV(String sql) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@


suite("test_nereids_admin_check_tablet") {
//cloud-mode
if (isCloudMode()) {
return
}
def table = "test_nereids_admin_check_tablet"
// create table and insert data
sql """ drop table if exists ${table} force"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ suite("show_trash_nereids") {
checkNereidsExecute("""show trash;""")
checkNereidsExecute("""show trash on "127.0.0.1:9050";""")

//cloud-mode
if (isCloudMode()) {
return
}
checkNereidsExecute("""ADMIN CLEAN TRASH;""")
checkNereidsExecute("""ADMIN CLEAN TRASH ON ("127.0.0.1:9050");""")
checkNereidsExecute("""ADMIN CLEAN TRASH ON ("192.168.0.1:9050", "192.168.0.2:9050", "192.168.0.3:9050");""")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@


suite("test_nereids_show_tablet_storage_format") {
//cloud-mode
if (isCloudMode()) {
return
}
checkNereidsExecute("""show tablet storage format;""")
checkNereidsExecute("""show tablet storage format verbose;""")
checkNereidsExecute("""admin show tablet storage format;""")
Expand Down
Loading