Skip to content

Commit d928cce

Browse files
kyleconroyclaude
andcommitted
Add duplicate table output for LOAD/UNLOAD PRIMARY KEY commands
SYSTEM LOAD PRIMARY KEY and SYSTEM UNLOAD PRIMARY KEY commands need the table name to appear twice in EXPLAIN output, similar to RELOAD DICTIONARY. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 4b241a1 commit d928cce

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

parser/parser.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7001,7 +7001,9 @@ func (p *Parser) parseSystem() *ast.SystemQuery {
70017001
strings.Contains(upperCmd, "DROP REPLICA") ||
70027002
strings.Contains(upperCmd, "RESTORE REPLICA") ||
70037003
strings.Contains(upperCmd, "STOP DISTRIBUTED SENDS") ||
7004-
strings.Contains(upperCmd, "START DISTRIBUTED SENDS") {
7004+
strings.Contains(upperCmd, "START DISTRIBUTED SENDS") ||
7005+
strings.Contains(upperCmd, "LOAD PRIMARY KEY") ||
7006+
strings.Contains(upperCmd, "UNLOAD PRIMARY KEY") {
70057007
sys.Database = tableName
70067008
sys.Table = tableName
70077009
} else {
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
{
2-
"explain_todo": {
3-
"stmt27": true
4-
}
5-
}
1+
{}

0 commit comments

Comments
 (0)