Open wiikviz opened 2 years ago
Arguments expr: An expression that evaluates to a numeric. scale: An INTEGER expression greater or equal to 0. fmt: A STRING expression specifying a format.
SELECT format_number(12332.123456, 4); 12,332.1235 SELECT format_number(12332.123456, '#.###'); 12332.123 SELECT format_number(12332.123456, 'EUR ,###.-'); EUR 12,332.- https://learn.microsoft.com/en-us/azure/databricks/spark/latest/spark-sql/language-manual/functions/format_number
Were added new functions
https://sparkbyexamples.com/spark/usage-of-spark-sql-string-functions/