https://bornsql.ca/blog/the-case-of-scalar-udf-inlining-where-context-is-everything/
The case of scalar UDF inlining, where context is everything