Essas configurações estão disponíveis em system.settings e são geradas automaticamente a partir do código-fonte.
max_hyperscan_regexp_length
Tipo
UInt64
Padrão
0
Define o tamanho máximo de cada expressão regular nas funções hyperscan multi-match.
Valores possíveis:
- Inteiro positivo.
- 0 - O tamanho não é limitado.
Exemplo
Consulta:
SELECT multiMatchAny('abcd', ['ab','bcd','c','d']) SETTINGS max_hyperscan_regexp_length = 3;Resultado:
┌─multiMatchAny('abcd', ['ab', 'bcd', 'c', 'd'])─┐
│ 1 │
└────────────────────────────────────────────────┘Consulta:
SELECT multiMatchAny('abcd', ['ab','bcd','c','d']) SETTINGS max_hyperscan_regexp_length = 2;Resultado:
Exception: Regexp length too large.Veja também
max_hyperscan_regexp_total_length
Tipo
UInt64
Padrão
0
Define o comprimento total máximo de todas as expressões regulares em cada função hyperscan multi-match.
Valores possíveis:
- Inteiro positivo.
- 0 - O comprimento não é limitado.
Exemplo
Consulta:
SELECT multiMatchAny('abcd', ['a','b','c','d']) SETTINGS max_hyperscan_regexp_total_length = 5;Resultado:
┌─multiMatchAny('abcd', ['a', 'b', 'c', 'd'])─┐
│ 1 │
└─────────────────────────────────────────────┘Consulta:
SELECT multiMatchAny('abcd', ['ab','bc','c','d']) SETTINGS max_hyperscan_regexp_total_length = 5;Resultado:
Exception: Total regexp lengths too large.Veja também