I am using spark-sql-2.4.1v. In my use-case using window spec/feature to find the latest records using the rank() function. I have to find a latest record on ce
rank()