The following syntax:
def func0(x: Int => Int, y: Int)(in: DataFrame): DataFrame = {
in.filter('col > x(y))
}
Cannot place the 'col. "col" does not work, whereas "col" does work in the following code fine:
def func1(x: Int)(in: DataFrame): DataFrame = {
in.selectExpr("col", s"col + $x as col1")
}
The 'col
signifies?
The dataframe example only has one col, col
, what if 2 or 3 cols? Clearly missing something here. Something tells me it is very simple.