Skip to content

Commit 3783bb2

Browse files
committed
Enable duplicate output for RELOAD DICTIONARY in SYSTEM queries
Add RELOAD DICTIONARY to the list of SYSTEM commands that output database/table identifiers twice in EXPLAIN AST format.
1 parent a59b23f commit 3783bb2

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

parser/parser.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6777,7 +6777,8 @@ func (p *Parser) parseSystem() *ast.SystemQuery {
67776777
upperCmd := strings.ToUpper(sys.Command)
67786778
if strings.Contains(upperCmd, "STOP DISTRIBUTED SENDS") ||
67796779
strings.Contains(upperCmd, "START DISTRIBUTED SENDS") ||
6780-
strings.Contains(upperCmd, "FLUSH DISTRIBUTED") {
6780+
strings.Contains(upperCmd, "FLUSH DISTRIBUTED") ||
6781+
strings.Contains(upperCmd, "RELOAD DICTIONARY") {
67816782
// Only set duplicate if database and table are different (qualified name)
67826783
if sys.Database != sys.Table {
67836784
sys.DuplicateTableOutput = true
Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1 @@
1-
{
2-
"explain_todo": {
3-
"stmt13": true,
4-
"stmt18": true
5-
}
6-
}
1+
{}

0 commit comments

Comments
 (0)