Advertisement
Guest User

Untitled

a guest
Jul 16th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. import org.apache.spark.sql.functions
  2.  
  3. type myFunctionType = (Int, Long, String) => Int
  4. val myFunction: myFunctionType = (i, l, str) => i + l.toInt + Integer.parseInt(str)
  5. val myUDF = functions.udf(myFunction)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement