Fix short circuit execution of toFixedString function

This commit is contained in:
avogar 2022-08-25 16:15:22 +02:00
parent 13de3d0665
commit 1844873dbc
3 changed files with 4 additions and 1 deletions

View File

@ -43,7 +43,7 @@ public:
size_t getNumberOfArguments() const override { return 2; }
bool isInjective(const ColumnsWithTypeAndName &) const override { return true; }
bool isSuitableForShortCircuitArgumentsExecution(const DataTypesWithConstInfo & /*arguments*/) const override { return false; }
bool isSuitableForShortCircuitArgumentsExecution(const DataTypesWithConstInfo & /*arguments*/) const override { return true; }
DataTypePtr getReturnTypeImpl(const ColumnsWithTypeAndName & arguments) const override
{

View File

@ -0,0 +1,2 @@
\N
\N

View File

@ -0,0 +1 @@
select if(number < 0, toFixedString(materialize('123'), 2), NULL) from numbers(2);