Skip to content

Instantly share code, notes, and snippets.

@fmarchand
Created January 16, 2019 12:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fmarchand/c75157c1074531f796ab24561e188a88 to your computer and use it in GitHub Desktop.
Save fmarchand/c75157c1074531f796ab24561e188a88 to your computer and use it in GitHub Desktop.
def evalComplexityUdf = udf((input:String) => {
evalComplexity(input, "EXPR")
})
val allQueriesWithComplexity = allQueries.withColumn("valCplx", evalComplexityUdf($"query"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment