mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-12 01:12:12 +00:00
bcb058f999
The new per-dictionary settings control regex match semantics around case sensitivity and the '.' wildcard with newlines. They must be set at the dictionary level since they're applied to regex engines at pattern-compile-time. - regexp_dict_flag_case_insensitive: case insensitive matching - regexp_dict_flag_dotall: '.' matches all characters including newlines They correspond to HS_FLAG_CASELESS and HS_FLAG_DOTALL in Vectorscan and case_sensitive and dot_nl in RE2. These are the most useful options compatible with the internal behavior of RegExpTreeDictionary around splitting up simple and complex patterns between Vectorscan and RE2. The alternative is to use (?i) and/or (?s) for all patterns. However, (?s) isn't handled properly by OptimizedRegularExpression::analyze(). And while (?i) is, it still causes the dictionary to treat the pattern as "complex" for sequential scanning with RE2 rather than multi-matching with Vectorscan, even though Vectorscan supports case insensitive literal matching. Setting dictionary-wide flags is both more convenient, and circumvents these problems. |
||
---|---|---|
.. | ||
Embedded | ||
tests | ||
CacheDictionary.cpp | ||
CacheDictionary.h | ||
CacheDictionaryStorage.h | ||
CacheDictionaryUpdateQueue.cpp | ||
CacheDictionaryUpdateQueue.h | ||
CassandraDictionarySource.cpp | ||
CassandraDictionarySource.h | ||
CassandraHelpers.cpp | ||
CassandraHelpers.h | ||
CassandraSource.cpp | ||
CassandraSource.h | ||
ClickHouseDictionarySource.cpp | ||
ClickHouseDictionarySource.h | ||
CMakeLists.txt | ||
DictionaryFactory.cpp | ||
DictionaryFactory.h | ||
DictionaryHelpers.cpp | ||
DictionaryHelpers.h | ||
DictionarySource.cpp | ||
DictionarySource.h | ||
DictionarySourceFactory.cpp | ||
DictionarySourceFactory.h | ||
DictionarySourceHelpers.cpp | ||
DictionarySourceHelpers.h | ||
DictionaryStructure.cpp | ||
DictionaryStructure.h | ||
DirectDictionary.cpp | ||
DirectDictionary.h | ||
ExecutableDictionarySource.cpp | ||
ExecutableDictionarySource.h | ||
ExecutablePoolDictionarySource.cpp | ||
ExecutablePoolDictionarySource.h | ||
ExternalQueryBuilder.cpp | ||
ExternalQueryBuilder.h | ||
FileDictionarySource.cpp | ||
FileDictionarySource.h | ||
FlatDictionary.cpp | ||
FlatDictionary.h | ||
getDictionaryConfigurationFromAST.cpp | ||
getDictionaryConfigurationFromAST.h | ||
HashedArrayDictionary.cpp | ||
HashedArrayDictionary.h | ||
HashedDictionary.cpp | ||
HashedDictionary.h | ||
HashedDictionaryCollectionTraits.h | ||
HashedDictionaryCollectionType.h | ||
HierarchyDictionariesUtils.cpp | ||
HierarchyDictionariesUtils.h | ||
HTTPDictionarySource.cpp | ||
HTTPDictionarySource.h | ||
ICacheDictionaryStorage.h | ||
IDictionary.h | ||
IDictionarySource.h | ||
IPAddressDictionary.cpp | ||
IPAddressDictionary.h | ||
LibraryDictionarySource.cpp | ||
LibraryDictionarySource.h | ||
MongoDBDictionarySource.cpp | ||
MongoDBDictionarySource.h | ||
MySQLDictionarySource.cpp | ||
MySQLDictionarySource.h | ||
NullDictionarySource.cpp | ||
NullDictionarySource.h | ||
PolygonDictionary.cpp | ||
PolygonDictionary.h | ||
PolygonDictionaryImplementations.cpp | ||
PolygonDictionaryImplementations.h | ||
PolygonDictionaryUtils.cpp | ||
PolygonDictionaryUtils.h | ||
PostgreSQLDictionarySource.cpp | ||
PostgreSQLDictionarySource.h | ||
RangeHashedDictionary.h | ||
RangeHashedDictionaryComplex.cpp | ||
RangeHashedDictionarySimple.cpp | ||
readInvalidateQuery.cpp | ||
readInvalidateQuery.h | ||
RedisDictionarySource.cpp | ||
RedisDictionarySource.h | ||
RedisSource.cpp | ||
RedisSource.h | ||
RegExpTreeDictionary.cpp | ||
RegExpTreeDictionary.h | ||
registerCacheDictionaries.cpp | ||
registerDictionaries.cpp | ||
registerDictionaries.h | ||
registerRangeHashedDictionary.cpp | ||
SSDCacheDictionaryStorage.h | ||
XDBCDictionarySource.cpp | ||
XDBCDictionarySource.h | ||
YAMLRegExpTreeDictionarySource.cpp | ||
YAMLRegExpTreeDictionarySource.h |