mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Merge pull request #58358 from ClickHouse/format-constexpr
Make function `format` return a constant on constant arguments.
This commit is contained in:
commit
ebd95586d2
@ -39,6 +39,7 @@ public:
|
||||
|
||||
size_t getNumberOfArguments() const override { return 0; }
|
||||
|
||||
bool useDefaultImplementationForConstants() const override { return true; }
|
||||
ColumnNumbers getArgumentsThatAreAlwaysConstant() const override { return {0}; }
|
||||
|
||||
DataTypePtr getReturnTypeImpl(const DataTypes & arguments) const override
|
||||
|
@ -0,0 +1 @@
|
||||
1
|
1
tests/queries/0_stateless/02956_format_constexpr.sql
Normal file
1
tests/queries/0_stateless/02956_format_constexpr.sql
Normal file
@ -0,0 +1 @@
|
||||
SELECT isConstant(format('{}, world', 'Hello'));
|
Loading…
Reference in New Issue
Block a user