v.24.1Improvement
MySQL Interface Enhancements: Support for CAST to SIGNED and UNSIGNED Data Types
MySQL interface gained support forCAST(x AS SIGNED)andCAST(x AS UNSIGNED)statements via data type aliases:SIGNEDfor Int64, andUNSIGNEDfor UInt64. This improves compatibility with BI tools such as Looker Studio. #58954 (Serge Klochkov).
Why it matters
This feature improves compatibility with BI tools, such as Looker Studio, that rely on MySQL syntax for casting signed and unsigned integers. It helps users seamlessly integrate ClickHouse with these tools without altering their existing queries.How to use it
Users can now use MySQL-style casts in their queries via the MySQL interface, for example:SELECT CAST(column_name AS SIGNED) FROM table_name;
SELECT CAST(column_name AS UNSIGNED) FROM table_name;This works automatically as
SIGNED and UNSIGNED are mapped to Int64 and UInt64 respectively.