-
Feature Request
-
Resolution: Done
-
Major
-
None
-
None
We should inline a with clause item that is only referenced a single time with a hint to prevent this behavior. Scalar with clauses could still be inlined multiple times.
Implemented in the rewriter as an early optimization with a better replacement strategy that what was used to inline just scalar with clauses. Also added the no_inline hint to prevent inlining if desired.