Skip to content

Commit f392710

Browse files
committed
Added a parser to the analyzer
1 parent 5b478d4 commit f392710

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sql/analyzer/analyzer.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ func (ab *Builder) Build() *Analyzer {
266266
Catalog: NewCatalog(ab.provider),
267267
Coster: memo.NewDefaultCoster(),
268268
ExecBuilder: rowexec.DefaultBuilder,
269+
Parser: sql.GlobalParser,
269270
}
270271
}
271272

@@ -288,6 +289,8 @@ type Analyzer struct {
288289
ExecBuilder sql.NodeExecBuilder
289290
// Runner represents the engine, which is represented as a separate interface to work around circular dependencies
290291
Runner StatementRunner
292+
// Parser is the parser used to parse SQL statements.
293+
Parser sql.Parser
291294
}
292295

293296
// NewDefault creates a default Analyzer instance with all default Rules and configuration.

0 commit comments

Comments
 (0)