Commit Graph

2 Commits (cc1d3fddf014159bdc5172a85de9f15d960ccbda)

Author SHA1 Message Date
Sait Talha Nisanci cc1d3fddf0 address review 2021-01-06 22:00:00 +03:00
Sait Talha Nisanci 69f4b0f297 Detect vars referencing outer queries in local-dist table
We were checking just range table list to detect local-dist table joins
but there can be vars referencing to outer queries which belong to a
distributed table.

The current logic is we keep track of rtable list when we are descending
in the query tree. At any level, we find the range table entries that
are references by the vars of the current subquery. Then we use this to
determine if we should convert local-distributed tables to a subquery.
2021-01-06 22:00:00 +03:00