mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
Add columns in columns.sql for INFORMATION_SCHEMA (#29637)
* add columns in columns.sql for INFORMATION_SCHEMA
This commit is contained in:
parent
5a60d9a3a3
commit
1c72421e53
@ -23,6 +23,8 @@ ATTACH VIEW columns
|
|||||||
`domain_catalog` Nullable(String),
|
`domain_catalog` Nullable(String),
|
||||||
`domain_schema` Nullable(String),
|
`domain_schema` Nullable(String),
|
||||||
`domain_name` Nullable(String),
|
`domain_name` Nullable(String),
|
||||||
|
`column_comment` String,
|
||||||
|
`column_type` String,
|
||||||
`TABLE_CATALOG` String ALIAS table_catalog,
|
`TABLE_CATALOG` String ALIAS table_catalog,
|
||||||
`TABLE_SCHEMA` String ALIAS table_schema,
|
`TABLE_SCHEMA` String ALIAS table_schema,
|
||||||
`TABLE_NAME` String ALIAS table_name,
|
`TABLE_NAME` String ALIAS table_name,
|
||||||
@ -45,7 +47,9 @@ ATTACH VIEW columns
|
|||||||
`COLLATION_NAME` Nullable(String) ALIAS collation_name,
|
`COLLATION_NAME` Nullable(String) ALIAS collation_name,
|
||||||
`DOMAIN_CATALOG` Nullable(String) ALIAS domain_catalog,
|
`DOMAIN_CATALOG` Nullable(String) ALIAS domain_catalog,
|
||||||
`DOMAIN_SCHEMA` Nullable(String) ALIAS domain_schema,
|
`DOMAIN_SCHEMA` Nullable(String) ALIAS domain_schema,
|
||||||
`DOMAIN_NAME` Nullable(String) ALIAS domain_name
|
`DOMAIN_NAME` Nullable(String) ALIAS domain_name,
|
||||||
|
`COLUMN_COMMENT` String ALIAS column_comment,
|
||||||
|
`COLUMN_TYPE` String ALIAS column_type
|
||||||
) AS
|
) AS
|
||||||
SELECT
|
SELECT
|
||||||
database AS table_catalog,
|
database AS table_catalog,
|
||||||
@ -70,5 +74,7 @@ SELECT
|
|||||||
NULL AS collation_name,
|
NULL AS collation_name,
|
||||||
NULL AS domain_catalog,
|
NULL AS domain_catalog,
|
||||||
NULL AS domain_schema,
|
NULL AS domain_schema,
|
||||||
NULL AS domain_name
|
NULL AS domain_name,
|
||||||
|
comment AS column_comment,
|
||||||
|
type AS column_type
|
||||||
FROM system.columns
|
FROM system.columns
|
||||||
|
@ -14,14 +14,14 @@ default default v VIEW
|
|||||||
tmp LOCAL TEMPORARY
|
tmp LOCAL TEMPORARY
|
||||||
default default mv SELECT * FROM system.one NONE NO YES NO NO NO
|
default default mv SELECT * FROM system.one NONE NO YES NO NO NO
|
||||||
default default v SELECT n, f FROM default.t NONE NO NO NO NO NO
|
default default v SELECT n, f FROM default.t NONE NO NO NO NO NO
|
||||||
default default mv dummy 1 0 UInt8 \N \N 8 2 0 \N \N \N \N \N \N \N \N \N \N
|
default default mv dummy 1 0 UInt8 \N \N 8 2 0 \N \N \N \N \N \N \N \N \N \N UInt8
|
||||||
default default t n 1 0 UInt64 \N \N 64 2 0 \N \N \N \N \N \N \N \N \N \N
|
default default t n 1 0 UInt64 \N \N 64 2 0 \N \N \N \N \N \N \N \N \N \N UInt64
|
||||||
default default t f 2 0 Float32 \N \N \N \N \N \N \N \N \N \N \N \N \N \N \N
|
default default t f 2 0 Float32 \N \N \N \N \N \N \N \N \N \N \N \N \N \N \N Float32
|
||||||
default default t s 3 0 String \N \N \N \N \N \N \N \N \N \N \N \N \N \N \N
|
default default t s 3 0 String \N \N \N \N \N \N \N \N \N \N \N \N \N \N \N String
|
||||||
default default t fs 4 0 FixedString(42) 42 42 \N \N \N \N \N \N \N \N \N \N \N \N \N
|
default default t fs 4 0 FixedString(42) 42 42 \N \N \N \N \N \N \N \N \N \N \N \N \N FixedString(42)
|
||||||
default default t d 5 0 Decimal(9, 6) \N \N 9 10 6 \N \N \N \N \N \N \N \N \N \N
|
default default t d 5 0 Decimal(9, 6) \N \N 9 10 6 \N \N \N \N \N \N \N \N \N \N Decimal(9, 6)
|
||||||
default default v n 1 1 Nullable(Int32) \N \N 32 2 0 \N \N \N \N \N \N \N \N \N \N
|
default default v n 1 1 Nullable(Int32) \N \N 32 2 0 \N \N \N \N \N \N \N \N \N \N Nullable(Int32)
|
||||||
default default v f 2 0 Float64 \N \N \N \N \N \N \N \N \N \N \N \N \N \N \N
|
default default v f 2 0 Float64 \N \N \N \N \N \N \N \N \N \N \N \N \N \N \N Float64
|
||||||
tmp d 1 0 Date \N \N \N \N \N 0 \N \N \N \N \N \N \N \N \N
|
tmp d 1 0 Date \N \N \N \N \N 0 \N \N \N \N \N \N \N \N \N Date
|
||||||
tmp dt 2 0 DateTime \N \N \N \N \N 0 \N \N \N \N \N \N \N \N \N
|
tmp dt 2 0 DateTime \N \N \N \N \N 0 \N \N \N \N \N \N \N \N \N DateTime
|
||||||
tmp dtms 3 0 DateTime64(3) \N \N \N \N \N 3 \N \N \N \N \N \N \N \N \N
|
tmp dtms 3 0 DateTime64(3) \N \N \N \N \N 3 \N \N \N \N \N \N \N \N \N DateTime64(3)
|
||||||
|
Loading…
Reference in New Issue
Block a user