sql: augment EXPLAIN to explicitly distinguish between hash and merge joins #20336
Labels
A-sql-optimizer
SQL logical planning and optimizations.
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
Right now, when you create indexes to do a merge join, EXPLAIN tells you (in a roundabout fashion):
But if you accidentally mess up (say you create an index slightly inaccurately, which in my experience I've found is a very easy mistake to make), then cockroach happily does a hash join, telling you nothing, e.g.:
We should augment EXPLAIN to explicitly indicate the JOIN strategy. This will make giving performance guidance (cc @Amruta-Ranade who is currently working on that) easier.
The text was updated successfully, but these errors were encountered: