mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Better dictionary
This commit is contained in:
parent
ec99357097
commit
ec2b30703e
14
tests/fuzz/README.md
Normal file
14
tests/fuzz/README.md
Normal file
@ -0,0 +1,14 @@
|
||||
The list of funtions generated via following query
|
||||
|
||||
```
|
||||
clickhouse-client -q "select concat('\"', name, '\"') from system.functions union all select concat('\"', alias_to, '\"') from system.functions where alias_to != '' " > functions.dict
|
||||
```
|
||||
|
||||
The list of datatypes generated via following query:
|
||||
|
||||
```
|
||||
clickhouse-client -q "select concat('\"', name, '\"') from system.data_type_families union all select concat('\"', alias_to, '\"') from system.data_type_families where alias_to != '' " > datatypes.dict
|
||||
```
|
||||
|
||||
|
||||
Then merge all dictionaries into one (all.dict)
|
1466
tests/fuzz/all.dict
Normal file
1466
tests/fuzz/all.dict
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,2 +1,3 @@
|
||||
[libfuzzer]
|
||||
dict = ast.dict
|
||||
dict = all.dict
|
||||
jobs = 8
|
||||
|
@ -1,38 +0,0 @@
|
||||
"Nothing"
|
||||
"UUID"
|
||||
"Enum8"
|
||||
"Enum16"
|
||||
"Enum"
|
||||
"Date"
|
||||
"IntervalSecond"
|
||||
"IntervalMinute"
|
||||
"IntervalHour"
|
||||
"IntervalDay"
|
||||
"IntervalWeek"
|
||||
"IntervalMonth"
|
||||
"IntervalQuarter"
|
||||
"IntervalYear"
|
||||
"AggregateFunction"
|
||||
"FixedString"
|
||||
"LowCardinality"
|
||||
"DateTime"
|
||||
"Nullable"
|
||||
"String"
|
||||
"UInt8"
|
||||
"UInt16"
|
||||
"UInt32"
|
||||
"UInt64"
|
||||
"Int8"
|
||||
"Int16"
|
||||
"Int32"
|
||||
"Int64"
|
||||
"Float32"
|
||||
"Float64"
|
||||
"DateTime64"
|
||||
"Decimal32"
|
||||
"Decimal64"
|
||||
"Decimal128"
|
||||
"Decimal"
|
||||
"Tuple"
|
||||
"Nested"
|
||||
"Array"
|
185
tests/fuzz/dictionaries/datatypes.dict
Normal file
185
tests/fuzz/dictionaries/datatypes.dict
Normal file
@ -0,0 +1,185 @@
|
||||
"Polygon"
|
||||
"Ring"
|
||||
"Point"
|
||||
"SimpleAggregateFunction"
|
||||
"MultiPolygon"
|
||||
"IPv6"
|
||||
"IntervalSecond"
|
||||
"IPv4"
|
||||
"UInt32"
|
||||
"IntervalYear"
|
||||
"IntervalQuarter"
|
||||
"IntervalMonth"
|
||||
"Int64"
|
||||
"IntervalDay"
|
||||
"IntervalHour"
|
||||
"Int16"
|
||||
"UInt256"
|
||||
"LowCardinality"
|
||||
"AggregateFunction"
|
||||
"Nothing"
|
||||
"Decimal256"
|
||||
"Tuple"
|
||||
"Array"
|
||||
"Enum16"
|
||||
"IntervalMinute"
|
||||
"FixedString"
|
||||
"String"
|
||||
"DateTime"
|
||||
"Map"
|
||||
"UUID"
|
||||
"Decimal64"
|
||||
"Nullable"
|
||||
"Enum"
|
||||
"Int32"
|
||||
"UInt8"
|
||||
"Date"
|
||||
"Decimal32"
|
||||
"UInt128"
|
||||
"Float64"
|
||||
"Nested"
|
||||
"Int128"
|
||||
"Decimal128"
|
||||
"Int8"
|
||||
"Decimal"
|
||||
"Int256"
|
||||
"DateTime64"
|
||||
"Enum8"
|
||||
"DateTime32"
|
||||
"Date32"
|
||||
"IntervalWeek"
|
||||
"UInt64"
|
||||
"UInt16"
|
||||
"Float32"
|
||||
"INET6"
|
||||
"INET4"
|
||||
"ENUM"
|
||||
"BINARY"
|
||||
"NATIONAL CHAR VARYING"
|
||||
"BINARY VARYING"
|
||||
"NCHAR LARGE OBJECT"
|
||||
"NATIONAL CHARACTER VARYING"
|
||||
"NATIONAL CHARACTER LARGE OBJECT"
|
||||
"NATIONAL CHARACTER"
|
||||
"NATIONAL CHAR"
|
||||
"CHARACTER VARYING"
|
||||
"LONGBLOB"
|
||||
"MEDIUMTEXT"
|
||||
"TEXT"
|
||||
"TINYBLOB"
|
||||
"VARCHAR2"
|
||||
"CHARACTER LARGE OBJECT"
|
||||
"DOUBLE PRECISION"
|
||||
"LONGTEXT"
|
||||
"NVARCHAR"
|
||||
"INT1 UNSIGNED"
|
||||
"VARCHAR"
|
||||
"CHAR VARYING"
|
||||
"MEDIUMBLOB"
|
||||
"NCHAR"
|
||||
"CHAR"
|
||||
"SMALLINT UNSIGNED"
|
||||
"TIMESTAMP"
|
||||
"FIXED"
|
||||
"TINYTEXT"
|
||||
"NUMERIC"
|
||||
"DEC"
|
||||
"TINYINT UNSIGNED"
|
||||
"INTEGER UNSIGNED"
|
||||
"INT UNSIGNED"
|
||||
"CLOB"
|
||||
"MEDIUMINT UNSIGNED"
|
||||
"BOOL"
|
||||
"SMALLINT"
|
||||
"INTEGER SIGNED"
|
||||
"NCHAR VARYING"
|
||||
"INT SIGNED"
|
||||
"TINYINT SIGNED"
|
||||
"BIGINT SIGNED"
|
||||
"BINARY LARGE OBJECT"
|
||||
"SMALLINT SIGNED"
|
||||
"MEDIUMINT"
|
||||
"INTEGER"
|
||||
"INT1 SIGNED"
|
||||
"BIGINT UNSIGNED"
|
||||
"BYTEA"
|
||||
"INT"
|
||||
"SINGLE"
|
||||
"FLOAT"
|
||||
"MEDIUMINT SIGNED"
|
||||
"BOOLEAN"
|
||||
"DOUBLE"
|
||||
"INT1"
|
||||
"CHAR LARGE OBJECT"
|
||||
"TINYINT"
|
||||
"BIGINT"
|
||||
"CHARACTER"
|
||||
"BYTE"
|
||||
"BLOB"
|
||||
"REAL"
|
||||
"IPv6"
|
||||
"IPv4"
|
||||
"Enum"
|
||||
"FixedString"
|
||||
"String"
|
||||
"String"
|
||||
"String"
|
||||
"String"
|
||||
"String"
|
||||
"String"
|
||||
"String"
|
||||
"String"
|
||||
"String"
|
||||
"String"
|
||||
"String"
|
||||
"String"
|
||||
"String"
|
||||
"String"
|
||||
"Float64"
|
||||
"String"
|
||||
"String"
|
||||
"UInt8"
|
||||
"String"
|
||||
"String"
|
||||
"String"
|
||||
"String"
|
||||
"String"
|
||||
"UInt16"
|
||||
"DateTime"
|
||||
"Decimal"
|
||||
"String"
|
||||
"Decimal"
|
||||
"Decimal"
|
||||
"UInt8"
|
||||
"UInt32"
|
||||
"UInt32"
|
||||
"String"
|
||||
"UInt32"
|
||||
"Int8"
|
||||
"Int16"
|
||||
"Int32"
|
||||
"String"
|
||||
"Int32"
|
||||
"Int8"
|
||||
"Int64"
|
||||
"String"
|
||||
"Int16"
|
||||
"Int32"
|
||||
"Int32"
|
||||
"Int8"
|
||||
"UInt64"
|
||||
"String"
|
||||
"Int32"
|
||||
"Float32"
|
||||
"Float32"
|
||||
"Int32"
|
||||
"Int8"
|
||||
"Float64"
|
||||
"Int8"
|
||||
"String"
|
||||
"Int8"
|
||||
"Int64"
|
||||
"String"
|
||||
"Int8"
|
||||
"String"
|
||||
"Float32"
|
1121
tests/fuzz/dictionaries/functions.dict
Normal file
1121
tests/fuzz/dictionaries/functions.dict
Normal file
File diff suppressed because it is too large
Load Diff
183
tests/fuzz/dictionaries/key_words.dict
Normal file
183
tests/fuzz/dictionaries/key_words.dict
Normal file
@ -0,0 +1,183 @@
|
||||
# Key words (based on keywords from antlr parser)
|
||||
|
||||
"ADD"
|
||||
"AFTER"
|
||||
"ALIAS"
|
||||
"ALL"
|
||||
"ALTER"
|
||||
"AND"
|
||||
"ANTI"
|
||||
"ANY"
|
||||
"ARRAY"
|
||||
"AS"
|
||||
"ASCENDING"
|
||||
"ASOF"
|
||||
"AST"
|
||||
"ASYNC"
|
||||
"ATTACH"
|
||||
"BETWEEN"
|
||||
"BOTH"
|
||||
"BY"
|
||||
"CASE"
|
||||
"CAST"
|
||||
"CHECK"
|
||||
"CLEAR"
|
||||
"CLUSTER"
|
||||
"CODEC"
|
||||
"COLLATE"
|
||||
"COLUMN"
|
||||
"COMMENT"
|
||||
"CONSTRAINT"
|
||||
"CREATE"
|
||||
"CROSS"
|
||||
"CUBE"
|
||||
"DATABASE"
|
||||
"DATABASES"
|
||||
"DATE"
|
||||
"DAY"
|
||||
"DEDUPLICATE"
|
||||
"DEFAULT"
|
||||
"DELAY"
|
||||
"DELETE"
|
||||
"DESC"
|
||||
"DESCENDING"
|
||||
"DESCRIBE"
|
||||
"DETACH"
|
||||
"DICTIONARIES"
|
||||
"DICTIONARY"
|
||||
"DISK"
|
||||
"DISTINCT"
|
||||
"DISTRIBUTED"
|
||||
"DROP"
|
||||
"ELSE"
|
||||
"END"
|
||||
"ENGINE"
|
||||
"EVENTS"
|
||||
"EXISTS"
|
||||
"EXPLAIN"
|
||||
"EXPRESSION"
|
||||
"EXTRACT"
|
||||
"FETCHES"
|
||||
"FINAL"
|
||||
"FIRST"
|
||||
"FLUSH"
|
||||
"FOR"
|
||||
"FORMAT"
|
||||
"FREEZE"
|
||||
"FROM"
|
||||
"FULL"
|
||||
"FUNCTION"
|
||||
"GLOBAL"
|
||||
"GRANULARITY"
|
||||
"GROUP"
|
||||
"HAVING"
|
||||
"HIERARCHICAL"
|
||||
"HOUR"
|
||||
"ID"
|
||||
"IF"
|
||||
"ILIKE"
|
||||
"IN"
|
||||
"INDEX"
|
||||
"INF"
|
||||
"INJECTIVE"
|
||||
"INNER"
|
||||
"INSERT"
|
||||
"INTERVAL"
|
||||
"INTO"
|
||||
"IS"
|
||||
"IS_OBJECT_ID"
|
||||
"JOIN"
|
||||
"KEY"
|
||||
"KILL"
|
||||
"LAST"
|
||||
"LAYOUT"
|
||||
"LEADING"
|
||||
"LEFT"
|
||||
"LIFETIME"
|
||||
"LIKE"
|
||||
"LIMIT"
|
||||
"LIVE"
|
||||
"LOCAL"
|
||||
"LOGS"
|
||||
"MATERIALIZE"
|
||||
"MATERIALIZED"
|
||||
"MAX"
|
||||
"MERGES"
|
||||
"MIN"
|
||||
"MINUTE"
|
||||
"MODIFY"
|
||||
"MONTH"
|
||||
"MOVE"
|
||||
"MUTATION"
|
||||
"NAN_SQL"
|
||||
"NO"
|
||||
"NOT"
|
||||
"NULL_SQL"
|
||||
"NULLS"
|
||||
"OFFSET"
|
||||
"ON"
|
||||
"OPTIMIZE"
|
||||
"OR"
|
||||
"ORDER"
|
||||
"OUTER"
|
||||
"OUTFILE"
|
||||
"PARTITION"
|
||||
"POPULATE"
|
||||
"PREWHERE"
|
||||
"PRIMARY"
|
||||
"PROJECTION"
|
||||
"QUARTER"
|
||||
"RANGE"
|
||||
"RELOAD"
|
||||
"REMOVE"
|
||||
"RENAME"
|
||||
"REPLACE"
|
||||
"REPLICA"
|
||||
"REPLICATED"
|
||||
"RIGHT"
|
||||
"ROLLUP"
|
||||
"SAMPLE"
|
||||
"SECOND"
|
||||
"SELECT"
|
||||
"SEMI"
|
||||
"SENDS"
|
||||
"SET"
|
||||
"SETTINGS"
|
||||
"SHOW"
|
||||
"SOURCE"
|
||||
"START"
|
||||
"STOP"
|
||||
"SUBSTRING"
|
||||
"SYNC"
|
||||
"SYNTAX"
|
||||
"SYSTEM"
|
||||
"TABLE"
|
||||
"TABLES"
|
||||
"TEMPORARY"
|
||||
"TEST"
|
||||
"THEN"
|
||||
"TIES"
|
||||
"TIMEOUT"
|
||||
"TIMESTAMP"
|
||||
"TO"
|
||||
"TOP"
|
||||
"TOTALS"
|
||||
"TRAILING"
|
||||
"TRIM"
|
||||
"TRUNCATE"
|
||||
"TTL"
|
||||
"TYPE"
|
||||
"UNION"
|
||||
"UPDATE"
|
||||
"USE"
|
||||
"USING"
|
||||
"UUID"
|
||||
"VALUES"
|
||||
"VIEW"
|
||||
"VOLUME"
|
||||
"WATCH"
|
||||
"WEEK"
|
||||
"WHEN"
|
||||
"WHERE"
|
||||
"WITH"
|
||||
"YEAR"
|
3
tests/fuzz/execute_query_fuzzer.options
Normal file
3
tests/fuzz/execute_query_fuzzer.options
Normal file
@ -0,0 +1,3 @@
|
||||
[libfuzzer]
|
||||
dict = all.dict
|
||||
jobs = 8
|
@ -1,2 +1,3 @@
|
||||
[libfuzzer]
|
||||
dict = ast.dict
|
||||
dict = all.dict
|
||||
jobs = 8
|
||||
|
@ -1,2 +1,3 @@
|
||||
[libfuzzer]
|
||||
dict = datatypes.dict
|
||||
dict = all.dict
|
||||
jobs = 8
|
||||
|
@ -1,2 +1,3 @@
|
||||
[libfuzzer]
|
||||
dict = ast.dict
|
||||
dict = all.dict
|
||||
jobs = 8
|
||||
|
Loading…
Reference in New Issue
Block a user