v.23.12Improvement
Function format now supports arbitrary argument types
Functionformatnow supports arbitrary argument types (instead of onlyStringandFixedStringarguments). This is important to calculateSELECT format('The {0} to all questions is {1}', 'answer', 42). #57549 (Robert Schulze).
Why it matters
This enhancement allows users to useformat with mixed argument types, such as integers or other data types, enabling more flexible and convenient string formatting in queries.How to use it
Use theformat function with any argument types in your SQL queries, for example:sql<br>SELECT format('The {0} to all questions is {1}', 'answer', 42)<br>