You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by yi...@apache.org on 2022/06/20 01:06:35 UTC
[doris] branch master updated: [typo] Fix typos in comments (#10247)
This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new ab29ad2144 [typo] Fix typos in comments (#10247)
ab29ad2144 is described below
commit ab29ad2144d5529c7241e491320988b0c49a730e
Author: yinzhijian <37...@qq.com>
AuthorDate: Mon Jun 20 09:06:29 2022 +0800
[typo] Fix typos in comments (#10247)
---
be/src/service/internal_service.cpp | 4 ++--
be/src/udf/udf.h | 8 ++++----
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/be/src/service/internal_service.cpp b/be/src/service/internal_service.cpp
index 568b6445dc..e85bdfebfc 100644
--- a/be/src/service/internal_service.cpp
+++ b/be/src/service/internal_service.cpp
@@ -686,7 +686,7 @@ void PInternalServiceImpl::check_rpc_channel(google::protobuf::RpcController* co
if (request->data().size() != request->size()) {
std::stringstream ss;
ss << "data size not same, expected: " << request->size()
- << ", actrual: " << request->data().size();
+ << ", actual: " << request->data().size();
response->mutable_status()->add_error_msgs(ss.str());
response->mutable_status()->set_status_code(1);
@@ -696,7 +696,7 @@ void PInternalServiceImpl::check_rpc_channel(google::protobuf::RpcController* co
digest.digest();
if (!iequal(digest.hex(), request->md5())) {
std::stringstream ss;
- ss << "md5 not same, expected: " << request->md5() << ", actrual: " << digest.hex();
+ ss << "md5 not same, expected: " << request->md5() << ", actual: " << digest.hex();
response->mutable_status()->add_error_msgs(ss.str());
response->mutable_status()->set_status_code(1);
}
diff --git a/be/src/udf/udf.h b/be/src/udf/udf.h
index 324a1d362a..f46b7c6129 100644
--- a/be/src/udf/udf.h
+++ b/be/src/udf/udf.h
@@ -100,7 +100,7 @@ public:
/// Only valid if type == TYPE_FIXED_BUFFER || type == TYPE_VARCHAR
int len;
- // only vaild if type == TYPE_ARRAY
+ // only valid if type == TYPE_ARRAY
std::vector<TypeDesc> children;
};
@@ -199,7 +199,7 @@ public:
doris::FunctionContextImpl* impl() { return _impl; }
/// Methods for maintaining state across UDF/UDA function calls. SetFunctionState() can
- /// be used to store a pointer that can then be retreived via GetFunctionState(). If
+ /// be used to store a pointer that can then be retrieved via GetFunctionState(). If
/// GetFunctionState() is called when no pointer is set, it will return
/// nullptr. SetFunctionState() does not take ownership of 'ptr'; it is up to the UDF/UDA
/// to clean up any function state if necessary.
@@ -282,7 +282,7 @@ private:
// should only read the input arguments and return the result, using only the
// FunctionContext as an external object.
//
-// Memory Managment: the UDF can assume that memory from input arguments will have
+// Memory Management: the UDF can assume that memory from input arguments will have
// the same lifetime as results for the UDF. In other words, the UDF can return
// memory from input arguments without making copies. For example, a function like
// substring will not need to allocate and copy the smaller string. For cases where
@@ -626,7 +626,7 @@ struct StringVal : public AnyVal {
// string memory.
StringVal(FunctionContext* context, int64_t len);
- // Creates a StringVal, which memory is avaliable when this funciont context is used next time
+ // Creates a StringVal, which memory is available when this function context is used next time
static StringVal create_temp_string_val(FunctionContext* ctx, int64_t len);
bool resize(FunctionContext* context, int64_t len);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org