User-Defined Aggregate Functions(UDAF) Using Apache Spark

UDAF stands for User Defined Aggregate functions. Aggregate functions are used to perform a calculation on a set of values and return a single value. It is difficult to write an aggregate function compared to writing a User Defined Functions(UDF) as we need to aggregate on multiple rows and columns. Apache Spark UDAF operates on more than one row or Column while returning a single value results

Continue ReadingUser-Defined Aggregate Functions(UDAF) Using Apache Spark

Options in Scala

An Option is a data type in Scala that indicates the presence or absence of some data. It can be an instance of either case class called Some or Singleton object called None.An instance of Some can store data of any type . An instance of None object represents absence of data.

Continue ReadingOptions in Scala