mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 21:42:39 +00:00
1.1 KiB
1.1 KiB
slug | sidebar_position | sidebar_label |
---|---|---|
/en/sql-reference/table-functions/fuzzQuery | 75 | fuzzQuery |
fuzzQuery
Perturbs the given query string with random variations.
fuzzQuery(query[, random_seed])
Arguments
query
(String) - The source query to perform the fuzzing on.random_seed
(UInt64) - A random seed for producing stable results.
Returned Value
A table object with a single column containing perturbed query strings.
Usage Example
SELECT * FROM fuzzQuery('SELECT materialize(\'a\' AS key) GROUP BY key') LIMIT 2;
┌─query──────────────────────────────────────────────────────────┐
1. │ SELECT 'a' AS key GROUP BY key │
2. │ EXPLAIN PIPELINE compact = true SELECT 'a' AS key GROUP BY key │
└────────────────────────────────────────────────────────────────┘