I have some code in Spark (3.0/3.1) written in this way:
foo.join(bar, Seq("col1","col2","col3"),"inner").dropDuplicates("col1","col2")
where foo and bar are two generic Dataframes.
How does it translate to Spark SQL? I cannot find an equivalent definition to dropDuplicates as:
select distinct(col1, col2), * ....
seems to be something different. Any idea?