yangzhg commented on code in PR #10685: URL: https://github.com/apache/doris/pull/10685#discussion_r920649476
########## be/src/vec/aggregate_functions/aggregate_function_rpc.h: ########## @@ -0,0 +1,369 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +#pragma once + +#include <cstdint> +#include <memory> + +#include "common/status.h" +#include "exprs/rpc_fn_comm.h" +#include "gen_cpp/Exprs_types.h" +#include "json2pb/json_to_pb.h" +#include "json2pb/pb_to_json.h" +#include "runtime/exec_env.h" +#include "runtime/user_function_cache.h" +#include "util/brpc_client_cache.h" +#include "util/jni-util.h" +#include "vec/aggregate_functions/aggregate_function.h" +#include "vec/columns/column_string.h" +#include "vec/columns/column_vector.h" +#include "vec/columns/columns_number.h" +#include "vec/common/exception.h" +#include "vec/common/string_ref.h" +#include "vec/core/block.h" +#include "vec/core/column_numbers.h" +#include "vec/core/field.h" +#include "vec/core/types.h" +#include "vec/data_types/data_type_string.h" +#include "vec/io/io_helper.h" +namespace doris::vectorized { + +constexpr int64_t max_buffered_rows = 4096; +struct AggregateRpcUdafData { +private: + std::string _update_fn; + std::string _merge_fn; + std::string _server_addr; + std::string _finalize_fn; + bool saved_last_result; + std::shared_ptr<PFunctionService_Stub> _client; + PFunctionCallResponse res; Review Comment: ```suggestion PFunctionCallResponse _res; ``` -- 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