[enhancement](load) make default load mem limit configurable (#12348)

* make LoadMemLimit valid for broker load, stream load and routine load

Co-authored-by: wuhangze <wuhangze@jd.com>
This commit is contained in:
Henry2SS
2022-09-12 10:25:01 +08:00
committed by GitHub
parent fc605779ed
commit ecfefae715
7 changed files with 14 additions and 8 deletions

View File

@ -443,6 +443,7 @@ void RuntimeState::export_load_error(const std::string& err_msg) {
}
int64_t RuntimeState::get_load_mem_limit() {
// TODO: the code is abandoned, it can be deleted after v1.3
if (_query_options.__isset.load_mem_limit && _query_options.load_mem_limit > 0) {
return _query_options.load_mem_limit;
} else {