Skip to content

Conversation

reltuk
Copy link
Contributor

@reltuk reltuk commented Mar 10, 2021

No description provided.

…ithin subqueries when query scope is non-empty.
Copy link
Member

@zachmu zachmu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, this one has been bother me for months, thanks for fixing!

@@ -139,3 +139,24 @@ func replaceExpressionsForNaturalJoin(
return e, nil
})
}

func setJoinScopeLen(ctx *sql.Context, a *Analyzer, n sql.Node, scope *Scope) (sql.Node, error) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably not the right file for this function? Maybe resolve_subqueries.go is a better match?

}, nil
}

func (srn *StripRowNode) String() string {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably just want to print the child for this one, don't want these cluttering up query plans unless we're looking at debug output

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also implement DebugString for this purpose

@reltuk reltuk merged commit 746aa77 into aaron/analyzer-join-search-commute-only-when-safe Mar 12, 2021
@Hydrocharged Hydrocharged deleted the aaron/joins-work-in-subquery-expressions branch December 8, 2021 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants