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

     1  # =============================================================================
     2  # scan.opt contains exploration rules for the Scan operator.
     3  # =============================================================================
     4  
     5  # GenerateIndexScans creates alternate Scan expressions for each secondary index
     6  # on the scanned table.
     7  [GenerateIndexScans, Explore]
     8  (Scan $scanPrivate:* & (IsCanonicalScan $scanPrivate))
     9  =>
    10  (GenerateIndexScans $scanPrivate)