mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
Remove unnecessary emtpy argument check for nth_value as code review suggested
This commit is contained in:
parent
4d36d54c81
commit
0e742487f1
@ -9,6 +9,7 @@
|
|||||||
#include <Interpreters/ExpressionActions.h>
|
#include <Interpreters/ExpressionActions.h>
|
||||||
#include <Interpreters/convertFieldToType.h>
|
#include <Interpreters/convertFieldToType.h>
|
||||||
|
|
||||||
|
|
||||||
namespace DB
|
namespace DB
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -1576,12 +1577,6 @@ struct WindowFunctionNthValue final : public WindowFunction
|
|||||||
"Function {} cannot be parameterized", name_);
|
"Function {} cannot be parameterized", name_);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (argument_types.empty())
|
|
||||||
{
|
|
||||||
throw Exception(ErrorCodes::BAD_ARGUMENTS,
|
|
||||||
"Function {} takes at least one argument", name_);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (argument_types.size() != 2)
|
if (argument_types.size() != 2)
|
||||||
{
|
{
|
||||||
throw Exception(ErrorCodes::BAD_ARGUMENTS,
|
throw Exception(ErrorCodes::BAD_ARGUMENTS,
|
||||||
|
Loading…
Reference in New Issue
Block a user