Will add lower-level test cases that verify the plans are generated as desired.
For any query that only has a series of inner or left joins, it can be handled as star joins. Once we've got the stats, we'll be able to know which are small tables and choose the scan side and the hash side in a more optimal way.