When creating a Spark SQL UDF in Python for complex string manipulation, which approach best ensures effective error handling and keeps the pipeline running smoothly even with unexpected input formats? | Databricks Certified Data Engineer - Professional Quiz - LeetQuiz