v.22.12New Feature
Support Numeric Literals with Underscore Separators
Support numeric literals with_as the separator, for example,1_000_000. #43925 (jh0x).
Why it matters
Underscore separators in numeric literals enhance code clarity and maintainability by making large numbers easier to read and understand within SQL statements.How to use it
Users can directly use underscores as digit separators in numeric literals when writing SQL queries, for example:SELECT 1_000_000 AS million.