github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/sql/opt/norm/rules/with.opt (about)

     1  # =============================================================================
     2  # with.opt contains normalization rules for the With operator.
     3  # =============================================================================
     4  
     5  # InlineWith replaces use of a With which is referenced at most one time with
     6  # the contents of the With itself.
     7  [InlineWith, Normalize]
     8  (With
     9      $binding:*
    10      $input:*
    11      $withPrivate:* & (CanInlineWith $binding $input $withPrivate)
    12  )
    13  =>
    14  (InlineWith $binding $input $withPrivate)