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

Method JoinNodes

rel/sql.go:1518–1520  ·  view source on GitHub ↗

We need to be able to rewrite statements to convert a stmt such as: FROM users AS u INNER JOIN orders AS o ON u.user_id = o.user_id So that we can evaluate the Join Key on left/right in this case, it is simple, just => user_id or this one: FROM users AS u INNER JOIN orders AS o ON LOW

()

Source from the content-addressed store, hash-verified

1516// => LOWER(user_id)
1517//
1518func (m *SqlSource) JoinNodes() []expr.Node {
1519 return m.joinNodes
1520}
1521func (m *SqlSource) Finalize() error {
1522 if m.final {
1523 return nil

Callers 3

WalkSourceSelectMethod · 0.80
RunMethod · 0.80
TestSqlRewriteFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestSqlRewriteFunction · 0.64