Skip to content

Conversation

@RaduBerinde
Copy link
Member

Extracting the lower level logic around setting up the optimizer for
optsteps into a new struct. The same low-level functionality will be
used to implement a new command focused around exploration transforms.

We also fix an edge case in suppressExprs (now restrictToGroup) -
when an expression has multiple children from which the target group
is reachable, we were only recursing on the first one.

Release note: None

@RaduBerinde RaduBerinde requested a review from andy-kimball July 2, 2018 22:41
@RaduBerinde RaduBerinde requested a review from a team as a code owner July 2, 2018 22:41
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@andy-kimball
Copy link
Contributor

:lgtm:


Review status: :shipit: complete! 0 of 0 LGTMs obtained (and 1 stale)


pkg/sql/opt/testutils/custom_opt.go, line 25 at r1 (raw file):

)

type customOpt struct {

How about forcingOptimizer to correspond better with forcingCoster?


Comments from Reviewable

Extracting the lower level logic around setting up the optimizer for
`optsteps` into a new struct. The same low-level functionality will be
used to implement a new command focused around exploration transforms.

We also fix an edge case in `suppressExprs` (now `restrictToGroup`) -
when an expression has multiple children from which the target group
is reachable, we were only recursing on the first one.

Release note: None
@RaduBerinde
Copy link
Member Author

Review status: :shipit: complete! 0 of 0 LGTMs obtained (and 1 stale)


pkg/sql/opt/testutils/custom_opt.go, line 25 at r1 (raw file):

Previously, andy-kimball (Andy Kimball) wrote…

How about forcingOptimizer to correspond better with forcingCoster?

I like it! I struggled with the name. I also added some comments.


Comments from Reviewable

@RaduBerinde
Copy link
Member Author

bors r+

craig bot pushed a commit that referenced this pull request Jul 3, 2018
27111: opt: refactor lower level of optsteps r=RaduBerinde a=RaduBerinde

Extracting the lower level logic around setting up the optimizer for
`optsteps` into a new struct. The same low-level functionality will be
used to implement a new command focused around exploration transforms.

We also fix an edge case in `suppressExprs` (now `restrictToGroup`) -
when an expression has multiple children from which the target group
is reachable, we were only recursing on the first one.

Release note: None

Co-authored-by: Radu Berinde <radu@cockroachlabs.com>
@craig
Copy link
Contributor

craig bot commented Jul 3, 2018

Build succeeded

@craig craig bot merged commit 83ef602 into cockroachdb:master Jul 3, 2018
@RaduBerinde RaduBerinde deleted the optsteps-meh branch July 3, 2018 12:52
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

Successfully merging this pull request may close these issues.

3 participants