From 25767ce31b65b13c550c43c1d92f7ca65f16c1ba Mon Sep 17 00:00:00 2001 From: Andres Taylor Date: Sat, 9 Oct 2021 12:24:44 +0200 Subject: [PATCH] create all necessary maps Signed-off-by: Andres Taylor --- go/vt/vtgate/semantics/semantic_state.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/go/vt/vtgate/semantics/semantic_state.go b/go/vt/vtgate/semantics/semantic_state.go index 4e2d9749f54..235ca0a367d 100644 --- a/go/vt/vtgate/semantics/semantic_state.go +++ b/go/vt/vtgate/semantics/semantic_state.go @@ -129,7 +129,11 @@ func (st *SemTable) CopyDependencies(from, to sqlparser.Expr) { // NewSemTable creates a new empty SemTable func NewSemTable() *SemTable { - return &SemTable{Recursive: map[sqlparser.Expr]TableSet{}, ColumnEqualities: map[columnName][]sqlparser.Expr{}} + return &SemTable{ + Recursive: map[sqlparser.Expr]TableSet{}, + Direct: map[sqlparser.Expr]TableSet{}, + ColumnEqualities: map[columnName][]sqlparser.Expr{}, + } } // TableSetFor returns the bitmask for this particular table