Yes. But it’s never been tried… so let me know how it goes. The related thing that has not been tried: a DAG query plan where node X is evaluated once but used by 2 or more parents, and we only want to cost it once. See https://issues.apache.org/jira/browse/CALCITE-481.
Julian On Nov 25, 2014, at 5:31 AM, Vladimir Sitnikov <[email protected]> wrote: > Do you mean to specialize RelMetadataQuery.getCumulativeCost(Correlate) ? > > Vladimir
