If anybody is wondering why this has not been caught earlier:
In order to hit this bug,
1. parent subquery must use GROUP BY (so that add_ref_to_table_cond is invoked)
2. SJ-Materialization table must be accessed with lookups
3. and it the first non-const table
most of written-to-purpose materialization tests lack #1.
If anybody is wondering why this has not been caught earlier:
In order to hit this bug, to_table_ cond is invoked)
1. parent subquery must use GROUP BY (so that add_ref_
2. SJ-Materialization table must be accessed with lookups
3. and it the first non-const table
most of written-to-purpose materialization tests lack #1.