mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-17 03:42:48 +00:00
367 lines
11 KiB
Plaintext
367 lines
11 KiB
Plaintext
Drop tables if they exist
|
|
Create tab table
|
|
Create pseudo-random database name
|
|
Create tab duplicate table
|
|
Run MySQL test
|
|
field type null key default extra
|
|
aggregate_function AggregateFunction(sum, Int32) 0 NULL
|
|
array_value Array(Int32) 0 NULL
|
|
boolean_value UInt8 0 NULL
|
|
date32_value Date32 0 NULL
|
|
date_value Date 0 NULL
|
|
datetime64_value DateTime64(3) 0 NULL
|
|
datetime_value DateTime 0 NULL
|
|
decimal_value Decimal(10, 2) 0 NULL
|
|
enum_value Enum8('apple' = 1, 'banana' = 2, 'orange' = 3) 0 NULL
|
|
fixed_string_value FixedString(10) 0 NULL
|
|
float32 Float32 0 NULL
|
|
float64 Float64 0 NULL
|
|
int128 Int128 0 NULL
|
|
int16 Int16 0 NULL
|
|
int256 Int256 0 NULL
|
|
int32 Int32 0 NULL
|
|
int64 Int64 0 NULL
|
|
int8 Int8 0 NULL
|
|
ipv4_value IPv4 0 NULL
|
|
ipv6_value IPv6 0 NULL
|
|
json_value Object('json') 0 NULL
|
|
low_cardinality LowCardinality(String) 0 NULL
|
|
low_cardinality_date LowCardinality(DateTime) 0 NULL
|
|
map_value Map(String, Int32) 0 NULL
|
|
nested.nested_int Array(Int32) 0 NULL
|
|
nested.nested_string Array(String) 0 NULL
|
|
nint32 Nullable(Int32) 1 NULL
|
|
nullable_value Nullable(Int32) 1 NULL
|
|
string_value String 0 NULL
|
|
tuple_value Tuple(Int32, String) 0 NULL
|
|
uint128 UInt128 0 NULL
|
|
uint16 UInt16 0 NULL
|
|
uint256 UInt256 0 NULL
|
|
uint32 UInt32 0 NULL
|
|
uint64 UInt64 0 PRI SOR NULL
|
|
uint8 UInt8 0 NULL
|
|
uuid_value UUID 0 NULL
|
|
field type null key default extra
|
|
aggregate_function TEXT 0 NULL
|
|
array_value TEXT 0 NULL
|
|
boolean_value TINYINT UNSIGNED 0 NULL
|
|
date32_value DATE 0 NULL
|
|
date_value DATE 0 NULL
|
|
datetime64_value DATETIME 0 NULL
|
|
datetime_value DATETIME 0 NULL
|
|
decimal_value DECIMAL(10, 2) 0 NULL
|
|
enum_value ENUM('apple', 'banana', 'orange') 0 NULL
|
|
fixed_string_value TEXT 0 NULL
|
|
float32 FLOAT 0 NULL
|
|
float64 DOUBLE 0 NULL
|
|
int128 TEXT 0 NULL
|
|
int16 SMALLINT 0 NULL
|
|
int256 TEXT 0 NULL
|
|
int32 INTEGER 0 NULL
|
|
int64 BIGINT 0 NULL
|
|
int8 TINYINT 0 NULL
|
|
ipv4_value TEXT 0 NULL
|
|
ipv6_value TEXT 0 NULL
|
|
json_value JSON 0 NULL
|
|
low_cardinality BLOB 0 NULL
|
|
low_cardinality_date DATETIME 0 NULL
|
|
map_value JSON 0 NULL
|
|
nested.nested_int TEXT 0 NULL
|
|
nested.nested_string TEXT 0 NULL
|
|
nint32 INTEGER 0 NULL
|
|
nullable_value INTEGER 0 NULL
|
|
string_value BLOB 0 NULL
|
|
tuple_value JSON 0 NULL
|
|
uint128 TEXT 0 NULL
|
|
uint16 SMALLINT UNSIGNED 0 NULL
|
|
uint256 TEXT 0 NULL
|
|
uint32 INTEGER UNSIGNED 0 NULL
|
|
uint64 BIGINT UNSIGNED 0 PRI SOR NULL
|
|
uint8 TINYINT UNSIGNED 0 NULL
|
|
uuid_value CHAR 0 NULL
|
|
field type null key default extra
|
|
aggregate_function TEXT 0 NULL
|
|
array_value TEXT 0 NULL
|
|
boolean_value TINYINT UNSIGNED 0 NULL
|
|
date32_value DATE 0 NULL
|
|
date_value DATE 0 NULL
|
|
datetime64_value DATETIME 0 NULL
|
|
datetime_value DATETIME 0 NULL
|
|
decimal_value DECIMAL(10, 2) 0 NULL
|
|
enum_value ENUM('apple', 'banana', 'orange') 0 NULL
|
|
fixed_string_value TEXT 0 NULL
|
|
float32 FLOAT 0 NULL
|
|
float64 DOUBLE 0 NULL
|
|
int128 TEXT 0 NULL
|
|
int16 SMALLINT 0 NULL
|
|
int256 TEXT 0 NULL
|
|
int32 INTEGER 0 NULL
|
|
int64 BIGINT 0 NULL
|
|
int8 TINYINT 0 NULL
|
|
ipv4_value TEXT 0 NULL
|
|
ipv6_value TEXT 0 NULL
|
|
json_value JSON 0 NULL
|
|
low_cardinality BLOB 0 NULL
|
|
low_cardinality_date DATETIME 0 NULL
|
|
map_value JSON 0 NULL
|
|
nested.nested_int TEXT 0 NULL
|
|
nested.nested_string TEXT 0 NULL
|
|
nint32 INTEGER 0 NULL
|
|
nullable_value INTEGER 0 NULL
|
|
string_value BLOB 0 NULL
|
|
tuple_value JSON 0 NULL
|
|
uint128 TEXT 0 NULL
|
|
uint16 SMALLINT UNSIGNED 0 NULL
|
|
uint256 TEXT 0 NULL
|
|
uint32 INTEGER UNSIGNED 0 NULL
|
|
uint64 BIGINT UNSIGNED 0 PRI SOR NULL
|
|
uint8 TINYINT UNSIGNED 0 NULL
|
|
uuid_value CHAR 0 NULL
|
|
field type null key default extra collation comment privileges
|
|
aggregate_function TEXT 0 NULL NULL
|
|
array_value TEXT 0 NULL NULL
|
|
boolean_value TINYINT UNSIGNED 0 NULL NULL
|
|
date32_value DATE 0 NULL NULL
|
|
date_value DATE 0 NULL NULL
|
|
datetime64_value DATETIME 0 NULL NULL
|
|
datetime_value DATETIME 0 NULL NULL
|
|
decimal_value DECIMAL(10, 2) 0 NULL NULL
|
|
enum_value ENUM('apple', 'banana', 'orange') 0 NULL NULL
|
|
fixed_string_value TEXT 0 NULL NULL
|
|
float32 FLOAT 0 NULL NULL
|
|
float64 DOUBLE 0 NULL NULL
|
|
int128 TEXT 0 NULL NULL
|
|
int16 SMALLINT 0 NULL NULL
|
|
int256 TEXT 0 NULL NULL
|
|
int32 INTEGER 0 NULL NULL
|
|
int64 BIGINT 0 NULL NULL
|
|
int8 TINYINT 0 NULL NULL
|
|
ipv4_value TEXT 0 NULL NULL
|
|
ipv6_value TEXT 0 NULL NULL
|
|
json_value JSON 0 NULL NULL
|
|
low_cardinality BLOB 0 NULL NULL
|
|
low_cardinality_date DATETIME 0 NULL NULL
|
|
map_value JSON 0 NULL NULL
|
|
nested.nested_int TEXT 0 NULL NULL
|
|
nested.nested_string TEXT 0 NULL NULL
|
|
nint32 INTEGER 0 NULL NULL
|
|
nullable_value INTEGER 0 NULL NULL
|
|
string_value BLOB 0 NULL NULL
|
|
tuple_value JSON 0 NULL NULL
|
|
uint128 TEXT 0 NULL NULL
|
|
uint16 SMALLINT UNSIGNED 0 NULL NULL
|
|
uint256 TEXT 0 NULL NULL
|
|
uint32 INTEGER UNSIGNED 0 NULL NULL
|
|
uint64 BIGINT UNSIGNED 0 PRI SOR NULL NULL
|
|
uint8 TINYINT UNSIGNED 0 NULL NULL
|
|
uuid_value CHAR 0 NULL NULL
|
|
field type null key default extra
|
|
int128 TEXT 0 NULL
|
|
int16 SMALLINT 0 NULL
|
|
int256 TEXT 0 NULL
|
|
int32 INTEGER 0 NULL
|
|
int64 BIGINT 0 NULL
|
|
int8 TINYINT 0 NULL
|
|
nested.nested_int TEXT 0 NULL
|
|
nint32 INTEGER 0 NULL
|
|
uint128 TEXT 0 NULL
|
|
uint16 SMALLINT UNSIGNED 0 NULL
|
|
uint256 TEXT 0 NULL
|
|
uint32 INTEGER UNSIGNED 0 NULL
|
|
uint64 BIGINT UNSIGNED 0 PRI SOR NULL
|
|
uint8 TINYINT UNSIGNED 0 NULL
|
|
field type null key default extra
|
|
aggregate_function TEXT 0 NULL
|
|
array_value TEXT 0 NULL
|
|
boolean_value TINYINT UNSIGNED 0 NULL
|
|
date32_value DATE 0 NULL
|
|
date_value DATE 0 NULL
|
|
datetime64_value DATETIME 0 NULL
|
|
datetime_value DATETIME 0 NULL
|
|
decimal_value DECIMAL(10, 2) 0 NULL
|
|
enum_value ENUM('apple', 'banana', 'orange') 0 NULL
|
|
fixed_string_value TEXT 0 NULL
|
|
float32 FLOAT 0 NULL
|
|
float64 DOUBLE 0 NULL
|
|
ipv4_value TEXT 0 NULL
|
|
ipv6_value TEXT 0 NULL
|
|
json_value JSON 0 NULL
|
|
low_cardinality BLOB 0 NULL
|
|
low_cardinality_date DATETIME 0 NULL
|
|
map_value JSON 0 NULL
|
|
nested.nested_string TEXT 0 NULL
|
|
nullable_value INTEGER 0 NULL
|
|
string_value BLOB 0 NULL
|
|
tuple_value JSON 0 NULL
|
|
uuid_value CHAR 0 NULL
|
|
field type null key default extra
|
|
int128 TEXT 0 NULL
|
|
int16 SMALLINT 0 NULL
|
|
int256 TEXT 0 NULL
|
|
int32 INTEGER 0 NULL
|
|
int64 BIGINT 0 NULL
|
|
int8 TINYINT 0 NULL
|
|
nested.nested_int TEXT 0 NULL
|
|
nint32 INTEGER 0 NULL
|
|
uint128 TEXT 0 NULL
|
|
uint16 SMALLINT UNSIGNED 0 NULL
|
|
uint256 TEXT 0 NULL
|
|
uint32 INTEGER UNSIGNED 0 NULL
|
|
uint64 BIGINT UNSIGNED 0 PRI SOR NULL
|
|
uint8 TINYINT UNSIGNED 0 NULL
|
|
field type null key default extra
|
|
aggregate_function TEXT 0 NULL
|
|
array_value TEXT 0 NULL
|
|
boolean_value TINYINT UNSIGNED 0 NULL
|
|
date32_value DATE 0 NULL
|
|
date_value DATE 0 NULL
|
|
datetime64_value DATETIME 0 NULL
|
|
datetime_value DATETIME 0 NULL
|
|
decimal_value DECIMAL(10, 2) 0 NULL
|
|
enum_value ENUM('apple', 'banana', 'orange') 0 NULL
|
|
fixed_string_value TEXT 0 NULL
|
|
float32 FLOAT 0 NULL
|
|
float64 DOUBLE 0 NULL
|
|
ipv4_value TEXT 0 NULL
|
|
ipv6_value TEXT 0 NULL
|
|
json_value JSON 0 NULL
|
|
low_cardinality BLOB 0 NULL
|
|
low_cardinality_date DATETIME 0 NULL
|
|
map_value JSON 0 NULL
|
|
nested.nested_string TEXT 0 NULL
|
|
nullable_value INTEGER 0 NULL
|
|
string_value BLOB 0 NULL
|
|
tuple_value JSON 0 NULL
|
|
uuid_value CHAR 0 NULL
|
|
field type null key default extra
|
|
int128 TEXT 0 NULL
|
|
int16 SMALLINT 0 NULL
|
|
int256 TEXT 0 NULL
|
|
int32 INTEGER 0 NULL
|
|
int64 BIGINT 0 NULL
|
|
int8 TINYINT 0 NULL
|
|
nested.nested_int TEXT 0 NULL
|
|
nint32 INTEGER 0 NULL
|
|
uint128 TEXT 0 NULL
|
|
uint16 SMALLINT UNSIGNED 0 NULL
|
|
uint256 TEXT 0 NULL
|
|
uint32 INTEGER UNSIGNED 0 NULL
|
|
uint64 BIGINT UNSIGNED 0 PRI SOR NULL
|
|
uint8 TINYINT UNSIGNED 0 NULL
|
|
field type null key default extra
|
|
aggregate_function TEXT 0 NULL
|
|
field type null key default extra
|
|
aggregate_function TEXT 0 NULL
|
|
array_value TEXT 0 NULL
|
|
boolean_value TINYINT UNSIGNED 0 NULL
|
|
date32_value DATE 0 NULL
|
|
date_value DATE 0 NULL
|
|
datetime64_value DATETIME 0 NULL
|
|
datetime_value DATETIME 0 NULL
|
|
decimal_value DECIMAL(10, 2) 0 NULL
|
|
enum_value ENUM('apple', 'banana', 'orange') 0 NULL
|
|
fixed_string_value TEXT 0 NULL
|
|
float32 FLOAT 0 NULL
|
|
float64 DOUBLE 0 NULL
|
|
int128 TEXT 0 NULL
|
|
int16 SMALLINT 0 NULL
|
|
int256 TEXT 0 NULL
|
|
int32 INTEGER 0 NULL
|
|
int64 BIGINT 0 NULL
|
|
int8 TINYINT 0 NULL
|
|
ipv4_value TEXT 0 NULL
|
|
ipv6_value TEXT 0 NULL
|
|
json_value JSON 0 NULL
|
|
low_cardinality BLOB 0 NULL
|
|
low_cardinality_date DATETIME 0 NULL
|
|
map_value JSON 0 NULL
|
|
nested.nested_int TEXT 0 NULL
|
|
nested.nested_string TEXT 0 NULL
|
|
nint32 INTEGER 0 NULL
|
|
nullable_value INTEGER 0 NULL
|
|
string_value BLOB 0 NULL
|
|
tuple_value JSON 0 NULL
|
|
uint128 TEXT 0 NULL
|
|
uint16 SMALLINT UNSIGNED 0 NULL
|
|
uint256 TEXT 0 NULL
|
|
uint32 INTEGER UNSIGNED 0 NULL
|
|
uint64 BIGINT UNSIGNED 0 PRI SOR NULL
|
|
uint8 TINYINT UNSIGNED 0 NULL
|
|
uuid_value CHAR 0 NULL
|
|
field type null key default extra
|
|
aggregate_function TEXT 0 NULL
|
|
array_value TEXT 0 NULL
|
|
boolean_value TINYINT UNSIGNED 0 NULL
|
|
date32_value DATE 0 NULL
|
|
date_value DATE 0 NULL
|
|
datetime64_value DATETIME 0 NULL
|
|
datetime_value DATETIME 0 NULL
|
|
decimal_value DECIMAL(10, 2) 0 NULL
|
|
enum_value ENUM('apple', 'banana', 'orange') 0 NULL
|
|
fixed_string_value TEXT 0 NULL
|
|
float32 FLOAT 0 NULL
|
|
float64 DOUBLE 0 NULL
|
|
int128 TEXT 0 NULL
|
|
int16 SMALLINT 0 NULL
|
|
int256 TEXT 0 NULL
|
|
int32 INTEGER 0 NULL
|
|
int64 BIGINT 0 NULL
|
|
int8 TINYINT 0 NULL
|
|
ipv4_value TEXT 0 NULL
|
|
ipv6_value TEXT 0 NULL
|
|
json_value JSON 0 NULL
|
|
low_cardinality BLOB 0 NULL
|
|
low_cardinality_date DATETIME 0 NULL
|
|
map_value JSON 0 NULL
|
|
nested.nested_int TEXT 0 NULL
|
|
nested.nested_string TEXT 0 NULL
|
|
nint32 INTEGER 0 NULL
|
|
nullable_value INTEGER 0 NULL
|
|
string_value BLOB 0 NULL
|
|
tuple_value JSON 0 NULL
|
|
uint128 TEXT 0 NULL
|
|
uint16 SMALLINT UNSIGNED 0 NULL
|
|
uint256 TEXT 0 NULL
|
|
uint32 INTEGER UNSIGNED 0 NULL
|
|
uint64 BIGINT UNSIGNED 0 PRI SOR NULL
|
|
uint8 TINYINT UNSIGNED 0 NULL
|
|
uuid_value CHAR 0 NULL
|
|
field type null key default extra
|
|
aggregate_function TEXT 0 NULL
|
|
array_value TEXT 0 NULL
|
|
boolean_value TINYINT UNSIGNED 0 NULL
|
|
date32_value DATE 0 NULL
|
|
date_value DATE 0 NULL
|
|
datetime64_value DATETIME 0 NULL
|
|
datetime_value DATETIME 0 NULL
|
|
decimal_value DECIMAL(10, 2) 0 NULL
|
|
enum_value ENUM('apple', 'banana', 'orange') 0 NULL
|
|
fixed_string_value TEXT 0 NULL
|
|
float32 FLOAT 0 NULL
|
|
float64 DOUBLE 0 NULL
|
|
int128 TEXT 0 NULL
|
|
int16 SMALLINT 0 NULL
|
|
int256 TEXT 0 NULL
|
|
int32 INTEGER 0 NULL
|
|
int64 BIGINT 0 NULL
|
|
int8 TINYINT 0 NULL
|
|
ipv4_value TEXT 0 NULL
|
|
ipv6_value TEXT 0 NULL
|
|
json_value JSON 0 NULL
|
|
low_cardinality BLOB 0 NULL
|
|
low_cardinality_date DATETIME 0 NULL
|
|
map_value JSON 0 NULL
|
|
nested.nested_int TEXT 0 NULL
|
|
nested.nested_string TEXT 0 NULL
|
|
nint32 INTEGER 0 NULL
|
|
nullable_value INTEGER 0 NULL
|
|
string_value BLOB 0 NULL
|
|
tuple_value JSON 0 NULL
|
|
uint128 TEXT 0 NULL
|
|
uint16 SMALLINT UNSIGNED 0 NULL
|
|
uint256 TEXT 0 NULL
|
|
uint32 INTEGER UNSIGNED 0 NULL
|
|
uint64 BIGINT UNSIGNED 0 PRI SOR NULL
|
|
uint8 TINYINT UNSIGNED 0 NULL
|
|
uuid_value CHAR 0 NULL
|