Open 0x777 opened 3 years ago
Related to #2614.
When a function appears in a join tree, Citus executes the function and converts the results into an intermediate result via http://docs.citusdata.com/en/v10.0/develop/reference_processing.html#subquery-cte-push-pull-execution.
And, Citus currently doesn't support: intermediate_result LEFT JOIN distributed_table
In fact, the first JOIN query between two subqueries that you shared can be fully pushed down, so the performance would be better anyway.
I'm using the schema as described in this getting started page on a single node citus instance as described here.
The following query works as expected:
This one fails with an error:
Making
search_companies
a distributed function didn't help: