yiguolei commented on code in PR #47254:
URL: https://github.com/apache/doris/pull/47254#discussion_r1923294615


##########
be/src/vec/sink/writer/async_result_writer.h:
##########
@@ -62,7 +62,11 @@ class AsyncResultWriter : public ResultWriter {
 
     Status init(RuntimeState* state) override { return Status::OK(); }
 
-    virtual Status open(RuntimeState* state, RuntimeProfile* profile) = 0;
+    virtual Status open(RuntimeState* state, RuntimeProfile* profile) {
+        _profile = profile;
+        _memory_used_counter = _profile->get_counter("MemoryUsage");

Review Comment:
   check _memory_used_counter == nullptr and return error status



-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

Reply via email to