Skip to content

Commit

Permalink
[log](function) print type name when input is invaild (#44758)
Browse files Browse the repository at this point in the history
### What problem does this PR solve?
Problem Summary:
add log to print data type when input is invalid
  • Loading branch information
zhangstar333 authored Nov 29, 2024
1 parent 9daa3b7 commit b9afb48
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions be/src/vec/functions/function_date_or_datetime_computation.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit b9afb48

Please sign in to comment.