Skip to content

Commit

Permalink
[BUG] fix const raw string add number (StarRocks#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
stdpain authored Sep 10, 2021
1 parent 0593c40 commit 7b78f97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion be/src/exec/vectorized/json_scanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ Status JsonScanner::_construct_cast_exprs() {

Status JsonScanner::_parse_json_paths(const std::string& jsonpath, std::vector<std::vector<JsonPath>>* path_vecs) {
rapidjson::Document doc;
doc.Parse(jsonpath.c_str());
doc.Parse(jsonpath.c_str(), jsonpath.length());
if (doc.HasParseError() || !doc.IsArray()) {
return Status::InvalidArgument(strings::Substitute("Invalid json path: $0", jsonpath));
}
Expand Down
4 changes: 2 additions & 2 deletions be/src/runtime/data_stream_sender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -982,8 +982,8 @@ Status DataStreamSender::serialize_chunk(const vectorized::Chunk* src, ChunkPB*
}

if (_compress_codec != nullptr && _compress_codec->exceed_max_input_size(uncompressed_size)) {
return Status::InternalError("The input size for compression should be less than " +
_compress_codec->max_input_size());
return Status::InternalError(fmt::format("The input size for compression should be less than {}",
_compress_codec->max_input_size()));
}

dst->set_uncompressed_size(uncompressed_size);
Expand Down

0 comments on commit 7b78f97

Please sign in to comment.