You can now create and run scalar user-defined functions (UDFs) using SQL in Amazon Redshift.  

Google+