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

migrate test-infra to testify for planner/core/rule_join_reorder_dp_test.go #28397

Closed
Tracked by #26857
tisonkun opened this issue Sep 27, 2021 · 4 comments · Fixed by #32179
Closed
Tracked by #26857

migrate test-infra to testify for planner/core/rule_join_reorder_dp_test.go #28397

tisonkun opened this issue Sep 27, 2021 · 4 comments · Fixed by #32179
Assignees
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. type/enhancement The issue or PR belongs to an enhancement.

Comments

@tisonkun
Copy link
Contributor

No description provided.

@tisonkun tisonkun added help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. labels Sep 27, 2021
@johnhaxx7
Copy link
Contributor

/assign

@johnhaxx7
Copy link
Contributor

Hi @tisonkun, to migrate this file,
s *testJoinReorderDPSuite in function newMockJoin will be removed, which will cause
s.ctx at line 61 and s.statsMap at line 63 is not able to pass to this function. Please check details from here:

retJoin := mockLogicalJoin{}.init(s.ctx)

In this case,

newJoin func(lChild, rChild LogicalPlan, eqConds []*expression.ScalarFunction, otherConds []expression.Expression) LogicalPlan
might needs to be refactored to pass in the context and statsMap. Is it ok to do so or do you have a better idea?

@johnhaxx7
Copy link
Contributor

johnhaxx7 commented Feb 5, 2022

+ @hawkingrei for more visibility

@tisonkun tisonkun added the type/enhancement The issue or PR belongs to an enhancement. label Feb 9, 2022
@tisonkun
Copy link
Contributor Author

tisonkun commented Feb 9, 2022

@johnhaxx7 thanks for working on this issue. For the specific problem, I'll directly submit a PR for this issue so that it's explained by code. You can help on the review side then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. type/enhancement The issue or PR belongs to an enhancement.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants