Example of using Persistent UDF functions on BigQuery.
This simple example takes a URL string and returns a Platform name by using a simple CASE statement to define our mapping logic.
To learn more about how to create and use UDF functions read the full tutorial here.