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_r351250217
 
 

 ##########
 File path: fe/src/main/java/org/apache/doris/qe/SessionVariable.java
 ##########
 @@ -510,6 +431,14 @@ public void write(DataOutput out) throws IOException {
         out.writeBoolean(disableStreamPreaggregations);
         out.writeInt(parallelExecInstanceNum);
         out.writeInt(exchangeInstanceParallel);
+
+        out.writeLong(loadMemLimit);
+        // false means there are no more variables. It you need to add more 
variables to persist,
+        // change this to true, and add:
+        //      out.writeXXX(new_var_name);
+        //      out.writeBoolean(false);
+        // By doing this, we no longer need to change the FE meta version when 
adding new variables to persist.
+        out.writeBoolean(false);   
 
 Review comment:
   I change it to json.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to