Skip to content

Commit 117a924

Browse files
committed
PR feedback
1 parent b75f3b7 commit 117a924

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

sql/memo/expr_group.go

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,8 @@ func (e *ExprGroup) Format(f fmt.State, verb rune) {
4848
expr = e.First
4949
}
5050
switch ex := expr.(type) {
51-
case *TableAlias:
52-
io.WriteString(f, fmt.Sprintf("%d", ex.Group().Id))
53-
io.WriteString(f, "[")
54-
io.WriteString(f, ex.Name())
55-
io.WriteString(f, "]")
56-
case *TableScan:
57-
io.WriteString(f, fmt.Sprintf("%d", ex.Group().Id))
58-
io.WriteString(f, "[")
59-
io.WriteString(f, ex.Name())
60-
io.WriteString(f, "]")
61-
case *SubqueryAlias:
62-
io.WriteString(f, fmt.Sprintf("%d", ex.Group().Id))
51+
case sql.Nameable:
52+
io.WriteString(f, fmt.Sprintf("%d", expr.Group().Id))
6353
io.WriteString(f, "[")
6454
io.WriteString(f, ex.Name())
6555
io.WriteString(f, "]")

0 commit comments

Comments
 (0)