Skip to content

Conversation

@liutang123
Copy link
Contributor

For #4481.

Proposed changes

In DistributedPlanner, do not add the unnecessary Exchanges.
For case 1, we only need to judge that the table's distribute hash keys is a subset of the aggregate keys.
For case 2, we should jude two conditions:

  • partition keys are also hash keys.
  • the table's distribute hash keys is a subset of the aggregate keys.

…on requirements

For apache#4481.
In DistributedPlanner, do not add the unnecessary Exchanges.
For case 1, we only need to judge that the table's distribute hash keys is a subset of the aggregate keys.
For case 2, we should jude two conditions:
 - partition keys are also hash keys.
 - the table's distribute hash keys is a subset of the aggregate keys.
@liutang123 liutang123 closed this Aug 30, 2020
@liutang123 liutang123 reopened this Aug 30, 2020
Copy link
Contributor

@kangkaisen kangkaisen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@kangkaisen kangkaisen added approved Indicates a PR has been approved by one committer. area/planner Issues or PRs related to the query planner kind/improvement labels Aug 31, 2020
@morningman morningman merged commit f3a9f3f into apache:master Sep 1, 2020
ZhangYu0123 pushed a commit to ZhangYu0123/incubator-doris that referenced this pull request Sep 1, 2020
…on requirements (apache#4482)

In DistributedPlanner, do not add the unnecessary Exchanges.
For case 1, we only need to judge that the table's distribute hash keys is a subset of the aggregate keys.
For case 2, we should judge two conditions:
 - partition keys are also hash keys.
 - the table's distribute hash keys is a subset of the aggregate keys.
@yangzhg yangzhg mentioned this pull request Feb 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. area/planner Issues or PRs related to the query planner kind/improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants