> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-mintlify-8c05c8a2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> Perturbs the given query string with random variations.

# fuzzQuery

Perturbs the given query string with random variations.

<h2 id="syntax">
  Syntax
</h2>

```sql theme={null}
fuzzQuery(query[, max_query_length[, random_seed]])
```

<h2 id="arguments">
  Arguments
</h2>

| Argument           | Description                                                               |
| ------------------ | ------------------------------------------------------------------------- |
| `query`            | (String) - The source query to perform the fuzzing on.                    |
| `max_query_length` | (UInt64) - A maximum length the query can get during the fuzzing process. |
| `random_seed`      | (UInt64) - A random seed for producing stable results.                    |

<h2 id="returned_value">
  Returned value
</h2>

A table object with a single column containing perturbed query strings.

<h2 id="usage-example">
  Usage Example
</h2>

```sql theme={null}
SELECT * FROM fuzzQuery('SELECT materialize(\'a\' AS key) GROUP BY key') LIMIT 2;
```

```response theme={null}
   ┌─query──────────────────────────────────────────────────────────┐
1. │ SELECT 'a' AS key GROUP BY key                                 │
2. │ EXPLAIN PIPELINE compact = true SELECT 'a' AS key GROUP BY key │
   └────────────────────────────────────────────────────────────────┘
```
