AHeise commented on PR #29881: URL: https://github.com/apache/flink/pull/29881#issuecomment-6806634753
Yes. Repeated references share the parsed query's RelNode via `QueryOperationCatalogViewTable`; tables created with `createTemporaryView(name, Table)` share a plan the same way. Added `testRepeatedlyReferencedCorrelatedViewsPlan`: correlated EXISTS/IN in the innermost view, a LATERAL TABLE on top, each level referenced twice; it plans fine. A correlated scalar subquery with an aggregate fails in streaming with "unexpected correlate variable", but identically without the cache and with a single reference, so that's unrelated to this change. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
