Add comment about const needle + const haystack

This commit is contained in:
Robert Schulze 2022-07-06 15:27:01 +00:00
parent 8a18705729
commit dec184f61d
No known key found for this signature in database
GPG Key ID: 26703B55FB13728A
2 changed files with 7 additions and 0 deletions

View File

@ -112,6 +112,10 @@ public:
allow_hyperscan, max_hyperscan_regexp_length, max_hyperscan_regexp_total_length);
}
// the combination of const haystack + const needle is not implemented because
// useDefaultImplementationForConstants() == true makes upper layers convert both to
// non-const columns
if constexpr (Impl::is_column_array)
return ColumnArray::create(std::move(col_res), std::move(col_offsets));
else

View File

@ -112,6 +112,9 @@ public:
allow_hyperscan, max_hyperscan_regexp_length, max_hyperscan_regexp_total_length);
}
// the combination of const haystack + const needle is not implemented because
// useDefaultImplementationForConstants() == true makes upper layers convert both to
// non-const columns
if constexpr (Impl::is_column_array)
return ColumnArray::create(std::move(col_res), std::move(col_offsets));