Im not able to join two dataframes

apache-spark
scala

#1

scala> adf.join(bdf, adf.id == bdf.id)
:28: error: value id is not a member of org.apache.spark.sql.DataFrame
adf.join(bdf, adf.id == bdf.id)

Can anyone please help on it.


#2

Please try as below
A_df.join(B_df, A_df(a_col_name) === B_df(b_join_col_name), “leftOuter”)