github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/sql/testdata/telemetry/schema (about) 1 # This file contains tests for reported schema information. 2 # All names should be hidden. 3 4 exec 5 CREATE TABLE x (a INT PRIMARY KEY) 6 ---- 7 8 schema 9 ---- 10 table:_ 11 └── columns 12 └── _:int 13 14 exec 15 CREATE TABLE t ( 16 a INT UNIQUE PRIMARY KEY, 17 b STRING DEFAULT ('foo'), 18 c STRING AS (concat(b, 'bar')) STORED, 19 d DECIMAL DEFAULT 42 CHECK (d != 1), 20 CONSTRAINT foo CHECK (b != 'baz') 21 ) 22 ---- 23 24 schema 25 ---- 26 table:_ 27 └── columns 28 └── _:int 29 table:_ 30 ├── columns 31 │ ├── _:int 32 │ ├── _:string default: _ 33 │ ├── _:string computed: _ 34 │ └── _:decimal default: _ 35 └── checks 36 ├── _: _ 37 └── _: _ 38 39 feature-whitelist 40 sql.schema.* 41 ---- 42 43 feature-usage 44 CREATE TABLE y (a SERIAL2) 45 ---- 46 sql.schema.create_table 47 sql.schema.new_column_type.int2 48 sql.schema.serial.rowid.int2 49 50 schema 51 ---- 52 table:_ 53 └── columns 54 └── _:int 55 table:_ 56 ├── columns 57 │ ├── _:int 58 │ ├── _:string default: _ 59 │ ├── _:string computed: _ 60 │ └── _:decimal default: _ 61 └── checks 62 ├── _: _ 63 └── _: _ 64 table:_ 65 └── columns 66 ├── _:int default: _ 67 └── _:int default: _