v.20.7New Feature
Function formatRow Added for String Formatting of SQL Outputs
A functionformatRowis added to support turning arbitrary expressions into a string via given format. It's useful for manipulating SQL outputs and is quite versatile combined with thecolumnsfunction. #12574 (Amos Bird).
Why it matters
TheformatRow function solves the problem of dynamically formatting SQL query results into customized string representations. It adds versatility when combined with the columns function, enabling more flexible and readable output formatting for users.How to use it
Use theformatRow function in your SQL queries by passing expressions and a format string to generate formatted result strings. It can be seamlessly combined with the columns function for dynamic output formatting. For example:SELECT formatRow(columns(), '{0} - {1}') FROM ...