Details
Description
plan stores as string for subqueries/expressions that are not in from clause (i.e. where, projection) During unmarshall we prepare expression/subqueries as satndalone.
This leaves hole detection of correlation because this is done in algebra as part of Fromalizer. during unmarsalll we never cal Formalizer and leaves missing correlation and may use cached results. Which can result in wrong results.