Skip to content

Commit

Permalink
print all plan
Browse files Browse the repository at this point in the history
  • Loading branch information
englefly committed Dec 19, 2024
1 parent 06468f1 commit 7b4f455
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
}

Expand Down

0 comments on commit 7b4f455

Please sign in to comment.