timestamp_to_string(timestamp)
Converts a <timestamp> to string format '%Y-%m-%d %H:%M:%S'.
CREATE OR REPLACE FUNCTION `justfunctions.eu.timestamp_to_string`(`timestamp` TIMESTAMP)
RETURNS STRING AS (FORMAT_TIMESTAMP('%Y-%m-%d %H:%M:%S', timestamp))
OPTIONS ( description = '''Converts a <timestamp> to string format '%Y-%m-%d %H:%M:%S'.''')
Example
SELECT `justfunctions.eu.timestamp_to_string`(2023-06-24 13:01:02 UTC)
2023-06-24 13:01:02