Spark let’s you define custom SQL functions called user defined functions (UDFs). UDFs are great when built-in SQL functions aren’t sufficient, but should be used sparingly because they’re not performant. This blog post will demonstrate how to define UDFs and will show how to avoid UDFs, when possible, by leveraging…