MCPcopy Create free account
hub / github.com/araddon/qlbridge / Finalize

Method Finalize

rel/sql.go:1220–1233  ·  view source on GitHub ↗

Finalize this Query plan by preparing sub-sources ie we need to rewrite some things into sub-statements - we need to share the join expression across sources

()

Source from the content-addressed store, hash-verified

1218// ie we need to rewrite some things into sub-statements
1219// - we need to share the join expression across sources
1220func (m *SqlSelect) Finalize() error {
1221 if m.finalized {
1222 return nil
1223 }
1224 m.finalized = true
1225 if len(m.From) == 0 {
1226 return nil
1227 }
1228 for _, from := range m.From {
1229 from.Finalize()
1230 }
1231
1232 return nil
1233}
1234
1235func (m *SqlSelect) UnAliasedColumns() map[string]*Column {
1236 cols := make(map[string]*Column, len(m.Columns))

Callers 2

parseSqlSelectMethod · 0.95
TestSqlRewriteFunction · 0.45

Calls

no outgoing calls

Tested by 1

TestSqlRewriteFunction · 0.36