dolthub / go-mysql-server

A MySQL-compatible relational database with a storage agnostic query engine. Implemented in pure Go.
Apache License 2.0
2.32k stars 199 forks source link

[memo] reorder should add new plans to intermediate expr join child #2603

Closed max-hoffman closed 1 month ago

max-hoffman commented 1 month ago

There was a bug where we'd add reordered join plans to project or distinct nodes, rather than their join children. Code comment explains more clearly how this works.