I\'ve tried both but it works same
example
val items = List(1, 2, 3)
using filter
employees.filter($\"emp_id\".
just FYI
,
maxTsunx.filter(r => r.get(0) == 1)
maxTsunx.where(col("ticker_id")===1)
or
maxTsunx.filter(col("ticker_id")===1)
In first case, passing function to filter function
In second case, passing condition expression (either string or column type) to filter or where function.
Physical plan 2 is also possible by replacing where
with filter function.