如果你有以下Apache豬FOREACH生成語句:
XBCUD_Y_TMP1 = FOREACH(過濾XBCUD act_ind = = Y)生成cust_hash_key CONCAT (brd_abbr_cd ctry_cd) brdCtry: chararray, updt_dt_hash_key;
相當於在Apache火花是代碼:
XBCUD_Y_TMP1_DF = (XBCUD_DF .filter(坳(act_ind) = = " Y ") .select(坳(“cust_hash_key”), concat(坳(“brd_abbr_cd”),坳(“ctry_cd”)) .alias (“brdCtry”),坳(“updt_dt_hash_key”)))