You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2019/11/27 01:55:11 UTC

[GitHub] [incubator-doris] morningman commented on a change in pull request #2305: Add a variable to specifically limit the memory usage of the load part in the insert operation

morningman commented on a change in pull request #2305: Add a variable to specifically limit the memory usage of the load part in the insert operation
URL: https://github.com/apache/incubator-doris/pull/2305#discussion_r351063600
 
 

 ##########
 File path: be/src/runtime/runtime_state.cpp
 ##########
 @@ -531,5 +531,14 @@ Status RuntimeState::get_codegen(LlvmCodeGen** codegen) {
 Status RuntimeState::StartSpilling(MemTracker* mem_tracker) {
     return Status::InternalError("Mem limit exceeded.");
 }
+
+int64_t RuntimeState::get_load_mem_limit() {
+    if (_query_options.__isset.load_mem_limit && _query_options.load_mem_limit > 0) {
 
 Review comment:
   In constructor of Coordinator in FE.
   `this.queryOptions = context.getSessionVariable().toThrift();`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org