github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/sql/opt/optgen/exprgen/testdata/limit (about)

     1  exec-ddl
     2  CREATE TABLE abc (a INT, b INT, c INT, INDEX ab(a, b))
     3  ----
     4  
     5  expr
     6  (Limit
     7    (Scan [ (Table "abc") (Index "abc@ab") (Cols "a,b") ])
     8    (Const 10 "int")
     9    (OrderingChoice "+a")
    10  )
    11  ----
    12  limit
    13   ├── columns: t.public.abc.a:1(int) t.public.abc.b:2(int)
    14   ├── internal-ordering: +1
    15   ├── cardinality: [0 - 10]
    16   ├── stats: [rows=10]
    17   ├── cost: 21.13
    18   ├── prune: (2)
    19   ├── interesting orderings: (+1,+2)
    20   ├── scan t.public.abc@ab
    21   │    ├── columns: t.public.abc.a:1(int) t.public.abc.b:2(int)
    22   │    ├── stats: [rows=1000]
    23   │    ├── cost: 21.02
    24   │    ├── ordering: +1
    25   │    ├── limit hint: 10.00
    26   │    ├── prune: (1,2)
    27   │    └── interesting orderings: (+1,+2)
    28   └── const: 10 [type=int]
    29  
    30  expr
    31  (Limit
    32    (Sort (Scan [ (Table "abc") (Cols "a,b") ]))
    33    (Const 10 "int")
    34    (OrderingChoice "+a")
    35  )
    36  ----
    37  limit
    38   ├── columns: t.public.abc.a:1(int) t.public.abc.b:2(int)
    39   ├── internal-ordering: +1
    40   ├── cardinality: [0 - 10]
    41   ├── stats: [rows=10]
    42   ├── cost: 1279.45569
    43   ├── interesting orderings: (+1)
    44   ├── sort
    45   │    ├── columns: t.public.abc.a:1(int) t.public.abc.b:2(int)
    46   │    ├── stats: [rows=1000]
    47   │    ├── cost: 1279.34569
    48   │    ├── ordering: +1
    49   │    ├── limit hint: 10.00
    50   │    └── scan t.public.abc
    51   │         ├── columns: t.public.abc.a:1(int) t.public.abc.b:2(int)
    52   │         ├── stats: [rows=1000]
    53   │         └── cost: 1060.02
    54   └── const: 10 [type=int]