diff --git a/regression-test/framework/src/main/groovy/org/apache/doris/regression/suite/Suite.groovy b/regression-test/framework/src/main/groovy/org/apache/doris/regression/suite/Suite.groovy index 635f440abaf00a9..caffdc08b4c187c 100644 --- a/regression-test/framework/src/main/groovy/org/apache/doris/regression/suite/Suite.groovy +++ b/regression-test/framework/src/main/groovy/org/apache/doris/regression/suite/Suite.groovy @@ -1320,8 +1320,8 @@ class Suite implements GroovyInterceptable { def query = (String) arg; def pattern = Pattern.compile("^\\s*explain\\s+shape\\s*plan\\s*", Pattern.MULTILINE) if (query =~ pattern) { - def physical = query.replaceAll(pattern, "explain physical plan ") - physicalPlan = JdbcUtils.executeToStringList(context.getConnection(), physical) + def physical = query.replaceAll(pattern, "explain all plan ") + physicalPlan = JdbcUtils.executeToStringList(context.getConnection(), physical)[0].join('\n') } }