Skip to content

Commit

Permalink
json_scanner: better log
Browse files Browse the repository at this point in the history
Signed-off-by: ricky <rickif@qq.com>
  • Loading branch information
rickif committed Nov 9, 2023
1 parent 24e7014 commit 13fdf21
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions be/src/exec/json_scanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -721,9 +721,10 @@ Status JsonReader::_read_file_broker() {
}

if (sz >= _scanner->_params.json_file_size_limit) {
return Status::MemoryLimitExceeded(fmt::format(
"File size {} beyond limit {}, if you insist to do, please set a larger json_file_size_limit", sz,
_scanner->_params.json_file_size_limit));
return Status::MemoryLimitExceeded(
fmt::format("The file size {} exceeds the limit {}, adjust the FE configuration json_file_size_limit "
"if you are sure you want to perform the operation",
sz, _scanner->_params.json_file_size_limit));
}

if (sz > _payload_buffer_capacity) {
Expand Down

0 comments on commit 13fdf21

Please sign in to comment.