exec-ddl
CREATE TABLE kv (
  k INT PRIMARY KEY,
  v INT,
  w INT,
  f FLOAT,
  d DECIMAL,
  s STRING,
  b BOOL,
  FAMILY (k, v, w, f, b),
  FAMILY (d),
  FAMILY (s)
)
----

build colstat=10
SELECT k, rank() OVER () FROM (SELECT * FROM kv LIMIT 10)
----
project
 ├── columns: k:1(int!null) rank:10(int)
 ├── cardinality: [0 - 10]
 ├── stats: [rows=10, distinct(10)=10, null(10)=0]
 ├── key: (1)
 ├── fd: (1)-->(10)
 └── window partition=()
      ├── columns: k:1(int!null) v:2(int) w:3(int) f:4(float) d:5(decimal) s:6(string) b:7(bool) rank:10(int)
      ├── cardinality: [0 - 10]
      ├── stats: [rows=10, distinct(10)=10, null(10)=0]
      ├── key: (1)
      ├── fd: (1)-->(2-7,10)
      ├── limit
      │    ├── columns: k:1(int!null) v:2(int) w:3(int) f:4(float) d:5(decimal) s:6(string) b:7(bool)
      │    ├── cardinality: [0 - 10]
      │    ├── stats: [rows=10]
      │    ├── key: (1)
      │    ├── fd: (1)-->(2-7)
      │    ├── project
      │    │    ├── columns: k:1(int!null) v:2(int) w:3(int) f:4(float) d:5(decimal) s:6(string) b:7(bool)
      │    │    ├── stats: [rows=1000]
      │    │    ├── key: (1)
      │    │    ├── fd: (1)-->(2-7)
      │    │    ├── limit hint: 10.00
      │    │    └── scan kv
      │    │         ├── columns: k:1(int!null) v:2(int) w:3(int) f:4(float) d:5(decimal) s:6(string) b:7(bool) crdb_internal_mvcc_timestamp:8(decimal) tableoid:9(oid)
      │    │         ├── stats: [rows=1000]
      │    │         ├── key: (1)
      │    │         ├── fd: (1)-->(2-9)
      │    │         └── limit hint: 10.00
      │    └── 10 [type=int]
      └── windows
           └── rank [as=rank:10, type=int]
