This is an automated email from the ASF dual-hosted git repository.
zhangstar333 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 b9afb48383f [log](function) print type name when input is invaild
(#44758)
b9afb48383f is described below
commit b9afb48383f5e10b228f4e8d64cb16ce332ef6bf
Author: zhangstar333 <[email protected]>
AuthorDate: Fri Nov 29 15:12:43 2024 +0800
[log](function) print type name when input is invaild (#44758)
### What problem does this PR solve?
Problem Summary:
add log to print data type when input is invalid
---
be/src/vec/functions/function_date_or_datetime_computation.h | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/be/src/vec/functions/function_date_or_datetime_computation.h
b/be/src/vec/functions/function_date_or_datetime_computation.h
index 90221e66c21..330ea75cba9 100644
--- a/be/src/vec/functions/function_date_or_datetime_computation.h
+++ b/be/src/vec/functions/function_date_or_datetime_computation.h
@@ -684,9 +684,10 @@ struct DateTimeAddIntervalImpl {
block.replace_by_position(result, std::move(col_to));
}
} else {
- return Status::RuntimeError("Illegal column {} of first argument
of function {}",
-
block.get_by_position(arguments[0]).column->get_name(),
- Transform::name);
+ return Status::RuntimeError(
+ "Illegal column {} of first argument and type {} of
function {}",
+ block.get_by_position(arguments[0]).column->get_name(),
+ block.get_by_position(arguments[0]).type->get_name(),
Transform::name);
}
return Status::OK();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]