flink_book/basic/broadcast.md
2023-08-20 14:56:32 +00:00

15 lines
729 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## 简介
Join优化可分为如下
1. `OPTIMIZER_CHOOSES`:让优化器自己选择最优的方案。
2. `BROADCAST_HASH_FIRST`:适用于左表数据远小于右表数据,会将左表数据进行广播。
3. `BROADCAST_HASH_SECOND` 适用于左表数据远大于右表数据,会将右表数据进行广播。
4. `REPARTITION_HASH_FIRST`适用于左表数据比右表数据大一点点会将左表和右表数据进行重分区将左表进行hash。
5. `REPARTITION_HASH_SECOND`适用于右表数据比左表数据大一点点会将左表和右表数据进行重分区将右表进行hash。
6. `REPARTITION_SORT_MERGE` 将左表和右表数据进行重分区,并且进行排序合并。