Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOCSUP-14089: Document the max_hyperscan_regexp_length and max_hyperscan_regexp_tot… #28902

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
d486d6b
Document the max_hyperscan_regexp_length and max_hyperscan_regexp_tot…
kirillikoff Sep 10, 2021
f4ac0e6
Update docs/en/operations/settings/settings.md
kirillikoff Sep 12, 2021
467be72
Update docs/en/operations/settings/settings.md
kirillikoff Sep 12, 2021
a48b527
Update docs/en/operations/settings/settings.md
kirillikoff Sep 12, 2021
2ad6a12
Update docs/en/operations/settings/settings.md
kirillikoff Sep 12, 2021
fba94ef
Update docs/en/operations/settings/settings.md
kirillikoff Sep 12, 2021
4bf4cbb
Update docs/en/operations/settings/settings.md
kirillikoff Sep 12, 2021
434a393
Update docs/en/operations/settings/settings.md
kirillikoff Sep 12, 2021
b905ed0
Update docs/en/operations/settings/settings.md
kirillikoff Sep 12, 2021
2fa0c47
Update docs/en/operations/settings/settings.md
kirillikoff Sep 12, 2021
ba0946a
Update docs/en/operations/settings/settings.md
kirillikoff Sep 12, 2021
608b27c
Update docs/en/operations/settings/settings.md
kirillikoff Sep 12, 2021
dc9ed37
Update settings.md
kirillikoff Sep 13, 2021
11be9be
Translation into Russian
kirillikoff Sep 13, 2021
02e6680
Translation into Russian update
kirillikoff Sep 13, 2021
93b7eab
Multiple match
kirillikoff Sep 13, 2021
191bf26
Update docs/ru/operations/settings/settings.md
kirillikoff Sep 14, 2021
e5f20ec
Update docs/ru/operations/settings/settings.md
kirillikoff Sep 14, 2021
55f1754
Update docs/ru/operations/settings/settings.md
kirillikoff Sep 14, 2021
4b88f78
Update docs/ru/operations/settings/settings.md
kirillikoff Sep 14, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
88 changes: 88 additions & 0 deletions docs/en/operations/settings/settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -3532,3 +3532,91 @@ Possible values:
- Positive integer.

Default value: `1000`.

## max_hyperscan_regexp_length {#max-hyperscan-regexp-length}

Defines the maximum length for each regular expression in the [hyperscan multi-match functions](../../sql-reference/functions/string-search-functions.md#multimatchanyhaystack-pattern1-pattern2-patternn).

Possible values:

- Positive integer.
kirillikoff marked this conversation as resolved.
Show resolved Hide resolved
- 0 - The length is not limited.

Default value: `0`.

**Example**

Query:

```sql
SELECT multiMatchAny('abcd', ['ab','bcd','c','d']) SETTINGS max_hyperscan_regexp_length = 3;
```

Result:

```text
┌─multiMatchAny('abcd', ['ab', 'bcd', 'c', 'd'])─┐
│ 1 │
└────────────────────────────────────────────────┘

```

Query:

```sql
SELECT multiMatchAny('abcd', ['ab','bcd','c','d']) SETTINGS max_hyperscan_regexp_length = 2;
```

Result:

```text
Exception: Regexp length too large.
```

**See Also**

- [max_hyperscan_regexp_total_length](#max-hyperscan-regexp-total-length)


## max_hyperscan_regexp_total_length {#max-hyperscan-regexp-total-length}

Sets the maximum length total of all regular expressions in each [hyperscan multi-match function](../../sql-reference/functions/string-search-functions.md#multimatchanyhaystack-pattern1-pattern2-patternn).

Possible values:

- Positive integer.
kirillikoff marked this conversation as resolved.
Show resolved Hide resolved
- 0 - The length is not limited.

Default value: `0`.

**Example**

Query:

```sql
SELECT multiMatchAny('abcd', ['a','b','c','d']) SETTINGS max_hyperscan_regexp_total_length = 5;
```

Result:

```text
┌─multiMatchAny('abcd', ['a', 'b', 'c', 'd'])─┐
│ 1 │
└─────────────────────────────────────────────┘
```

Query:

```sql
SELECT multiMatchAny('abcd', ['ab','bc','c','d']) SETTINGS max_hyperscan_regexp_total_length = 5;
```

Result:

```text
Exception: Total regexp lengths too large.
```

**See Also**

- [max_hyperscan_regexp_length](#max-hyperscan-regexp-length)
88 changes: 88 additions & 0 deletions docs/ru/operations/settings/settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -3341,3 +3341,91 @@ SETTINGS index_granularity = 8192 │
- Положительное целое число.

Значение по умолчанию: `1000`.

## max_hyperscan_regexp_length {#max-hyperscan-regexp-length}

Задает максимальную длину каждого регулярного выражения в [hyperscan-функциях](../../sql-reference/functions/string-search-functions.md#multimatchanyhaystack-pattern1-pattern2-patternn) поиска множественных совпадений в строке.

Возможные значения:

- Положительное целое число.
- 0 - длина не ограничена.

Значение по умолчанию: `0`.

**Пример**

Запрос:

```sql
SELECT multiMatchAny('abcd', ['ab','bcd','c','d']) SETTINGS max_hyperscan_regexp_length = 3;
```

Результат:

```text
┌─multiMatchAny('abcd', ['ab', 'bcd', 'c', 'd'])─┐
│ 1 │
└────────────────────────────────────────────────┘

```

Запрос:

```sql
SELECT multiMatchAny('abcd', ['ab','bcd','c','d']) SETTINGS max_hyperscan_regexp_length = 2;
```

Результат:

```text
Exception: Regexp length too large.
```

**См. также**

- [max_hyperscan_regexp_total_length](#max-hyperscan-regexp-total-length)


## max_hyperscan_regexp_total_length {#max-hyperscan-regexp-total-length}

Задает максимальную общую длину всех регулярных выражений в каждой [hyperscan-функции](../../sql-reference/functions/string-search-functions.md#multimatchanyhaystack-pattern1-pattern2-patternn) поиска множественных совпадений в строке.

Возможные значения:

- Положительное целое число.
- 0 - длина не ограничена.

Значение по умолчанию: `0`.

**Пример**

Запрос:

```sql
SELECT multiMatchAny('abcd', ['a','b','c','d']) SETTINGS max_hyperscan_regexp_total_length = 5;
```

Результат:

```text
┌─multiMatchAny('abcd', ['a', 'b', 'c', 'd'])─┐
│ 1 │
└─────────────────────────────────────────────┘
```

Запрос:

```sql
SELECT multiMatchAny('abcd', ['ab','bc','c','d']) SETTINGS max_hyperscan_regexp_total_length = 5;
```

Результат:

```text
Exception: Total regexp lengths too large.
```

**См. также**

- [max_hyperscan_regexp_length](#max-hyperscan-regexp-length)