diff --git a/src/substrait/textplan/converter/LoadBinary.cpp b/src/substrait/textplan/converter/LoadBinary.cpp index c5d9f4ce..6691b507 100644 --- a/src/substrait/textplan/converter/LoadBinary.cpp +++ b/src/substrait/textplan/converter/LoadBinary.cpp @@ -23,10 +23,13 @@ namespace { class StringErrorCollector : public google::protobuf::io::ErrorCollector { public: - void AddError(int line, int column, const std::string& message) override { + void RecordError( + int line, + google::protobuf::io::ColumnNumber column, + absl::string_view message) override { errors_.push_back( std::to_string(line + 1) + ":" + std::to_string(column + 1) + " → " + - message); + std::string(message)); } [[nodiscard]] std::vector getErrors() const {