Description
Whole stage codegen is used by some modern MPP databases to archive great performance. See http://www.vldb.org/pvldb/vol4/p539-neumann.pdf
For Spark SQL, we can compile multiple operator into a single Java function to avoid the overhead from materialize rows and Scala iterator.