You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2022/04/08 01:09:24 UTC
[incubator-doris] branch master updated: [typo] Fix typo in function.cpp (#8873)
This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git
The following commit(s) were added to refs/heads/master by this push:
new 3f04220d49 [typo] Fix typo in function.cpp (#8873)
3f04220d49 is described below
commit 3f04220d49d266b1a624fadac7ae005789b5cc7e
Author: Gabriel <ga...@gmail.com>
AuthorDate: Fri Apr 8 09:09:19 2022 +0800
[typo] Fix typo in function.cpp (#8873)
---
be/src/vec/functions/function.cpp | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/be/src/vec/functions/function.cpp b/be/src/vec/functions/function.cpp
index 5c019d49bf..8ec15c1b86 100644
--- a/be/src/vec/functions/function.cpp
+++ b/be/src/vec/functions/function.cpp
@@ -91,7 +91,7 @@ struct NullPresence {
bool has_null_constant = false;
};
-NullPresence getNullPresense(const Block& block, const ColumnNumbers& args) {
+NullPresence get_null_presence(const Block& block, const ColumnNumbers& args) {
NullPresence res;
for (const auto& arg : args) {
@@ -104,7 +104,7 @@ NullPresence getNullPresense(const Block& block, const ColumnNumbers& args) {
return res;
}
-[[maybe_unused]] NullPresence getNullPresense(const ColumnsWithTypeAndName& args) {
+[[maybe_unused]] NullPresence get_null_presence(const ColumnsWithTypeAndName& args) {
NullPresence res;
for (const auto& elem : args) {
@@ -207,7 +207,7 @@ Status PreparedFunctionImpl::default_implementation_for_nulls(
return Status::OK();
}
- NullPresence null_presence = getNullPresense(block, args);
+ NullPresence null_presence = get_null_presence(block, args);
if (null_presence.has_null_constant) {
block.get_by_position(result).column =
@@ -287,7 +287,7 @@ DataTypePtr FunctionBuilderImpl::get_return_type_without_low_cardinality(
check_number_of_arguments(arguments.size());
if (!arguments.empty() && use_default_implementation_for_nulls()) {
- NullPresence null_presence = getNullPresense(arguments);
+ NullPresence null_presence = get_null_presence(arguments);
if (null_presence.has_null_constant) {
return make_nullable(std::make_shared<DataTypeNothing>());
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org