mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 01:22:04 +00:00
fix ci ast error
This commit is contained in:
parent
2507daa3b1
commit
178bf89652
@ -615,7 +615,13 @@ namespace
|
|||||||
bool useDefaultImplementationForConstants() const override { return true; }
|
bool useDefaultImplementationForConstants() const override { return true; }
|
||||||
bool isSuitableForShortCircuitArgumentsExecution(const DataTypesWithConstInfo & /*arguments*/) const override { return false; }
|
bool isSuitableForShortCircuitArgumentsExecution(const DataTypesWithConstInfo & /*arguments*/) const override { return false; }
|
||||||
|
|
||||||
ColumnNumbers getArgumentsThatAreAlwaysConstant() const override { return {1, 2, 3}; }
|
ColumnNumbers getArgumentsThatAreAlwaysConstant() const override
|
||||||
|
{
|
||||||
|
if constexpr (return_type == ReturnType::DateTime)
|
||||||
|
return {1, 2};
|
||||||
|
else
|
||||||
|
return {1, 2, 3};
|
||||||
|
}
|
||||||
bool isVariadic() const override { return true; }
|
bool isVariadic() const override { return true; }
|
||||||
size_t getNumberOfArguments() const override { return 0; }
|
size_t getNumberOfArguments() const override { return 0; }
|
||||||
|
|
||||||
@ -2299,7 +2305,7 @@ namespace
|
|||||||
throw Exception(
|
throw Exception(
|
||||||
ErrorCodes::ILLEGAL_COLUMN,
|
ErrorCodes::ILLEGAL_COLUMN,
|
||||||
"Illegal column {} of second ('format') argument of function {}. Must be constant string.",
|
"Illegal column {} of second ('format') argument of function {}. Must be constant string.",
|
||||||
arguments[index_of_format_string_arg].column->getName(),
|
arguments[index_of_format_string_arg].name,
|
||||||
getName());
|
getName());
|
||||||
return col_format->getValue<String>();
|
return col_format->getValue<String>();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user