This commit is contained in:
Alexander Tokmakov 2023-01-24 01:11:58 +01:00
parent 414693feb2
commit c6910f39b9
2 changed files with 4 additions and 4 deletions

View File

@ -5,11 +5,11 @@
/// Saves a format string for already formatted message
struct PreformattedMessage
{
String message;
std::string message;
std::string_view format_string;
operator const String & () const { return message; }
operator String () && { return std::move(message); }
operator const std::string & () const { return message; }
operator std::string () && { return std::move(message); }
operator fmt::format_string<> () const { UNREACHABLE(); }
};

View File

@ -49,7 +49,7 @@ public:
: string_to_string_regexp(settings_.avro.string_column_pattern)
{
if (!string_to_string_regexp.ok())
throw DB::Exception(DB::ErrorCodes::CANNOT_COMPILE_REGEXP, "Avro: cannot compile re2: {}, error: {}. "
throw DB::Exception(DB::ErrorCodes::CANNOT_COMPILE_REGEXP, "Avro: cannot compile re2: {}, error: {}. "
"Look at https://github.com/google/re2/wiki/Syntax for reference.",
settings_.avro.string_column_pattern, string_to_string_regexp.error());
}