Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fetchType 默认为 collect 会有较大的性能问题 #1872

Open
allwefantasy opened this issue Oct 31, 2022 · 1 comment
Open

fetchType 默认为 collect 会有较大的性能问题 #1872

allwefantasy opened this issue Oct 31, 2022 · 1 comment

Comments

@allwefantasy
Copy link
Contributor

需要修改为 fetchType=take

@allwefantasy
Copy link
Contributor Author

collect 使用了 非 end limit ,这个 limit 限制条数会导致一次shuffle, 这会产生几个问题:

  1. 额外的shuffle 导致性能下降
  2. 会导致只是查看表数据的优化失效,产生全表扫描。
  3. Spark 3.3.0 一些 Command 返回的结果会导致顺序问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant