I have two dataframes
Max of date column from one dataframe :: one column, one row - df1, column : maxdate
Multiple records having date column :: df2 columns : col1,col2,col3..colDate
I want filter df2 based df1.maxdate, df2.colDate > df1.maxdate
If I specify like below then its working.
df2.filter(col("colDate").gt(lit(2020-01-01)))
However, I'm not able to use df1.maxdate. I'm trying java to achieve this soulution.
DataType is date in both dataFrame columns
I m trying to achieve this through spark transformation
select * from a
where a.col > (select max(b.col) from b)
In my example
Table a = df2
Table b = df1