ex:df.join(ds,df("name")===ds("name") and df("age")===ds("age"),"outer").show();其中:(1)“ds”是关联的dataframe;(2)"df("name")===ds("name") and df("age")===ds("age")"是关联的条件;(3)"outer"是关联的类型:inner, outer, left_outer,right_outer, leftsemi
ex:df.join(ds,df("name")===ds("name") and df("age")===ds("age"),"outer").show();其中:(1)“ds”是关联的dataframe;(2)"df("name")===ds("name") and df("age")===ds("age")"是关联的条件;(3)"outer"是关联的类型:inner, outer, left_outer,right_outer, leftsemi