Spark中的Join类型

常规连接:

左半连接:

左半连接结果集:仅仅保留右边表中的行,这些行的joinkey出现在右边表中!!!(类似于leftTable.joinKey in (rightTable.joinKeys)).这种join是会出重的,当左边表join到一个之后便返回不在继续join。

左反连接:

结果集是:joinKey不在右表之中!

猜你喜欢

转载自www.cnblogs.com/leodaxin/p/10101516.html