...
Code Block |
---|
/** * This is an UDF class supporting string concatenation for spark SQL */ public class StringConcatonator { /** This UDF returns the concatenation of two strings */ public String concat(String firstString, String secondString) { return firstString + secondString; } } |
Info | |||||
---|---|---|---|---|---|
| |||||
|
Step 2: Package the class in a jar
...