Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
79485: sql: clean up some dependencies r=yuzefovich a=yuzefovich

**row: move Metrics struct into rowinfra**

This allows us to break dependency of `execinfra` on `row` which speeds
up the build a bit.

Release note: None

**colexecbase: move a single struct to clean up dependencies**

This commit moves `colexecbase.BinaryOverloadHelper` into `colexecutils`
package in order to break the dependencies of `colexecproj` and
`colexecprojconst` packages on `colexecbase`. This will speed up the
build a bit.

Addresses: cockroachdb#79357.

Release note: None

Co-authored-by: Yahor Yuzefovich <[email protected]>
  • Loading branch information
craig[bot] and yuzefovich committed Apr 8, 2022
2 parents 94fe8dd + 8fdd210 commit dbbe9ed
Show file tree
Hide file tree
Showing 25 changed files with 236 additions and 234 deletions.
6 changes: 3 additions & 3 deletions pkg/sql/backfill/backfill.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ type ColumnBackfiller struct {
// mon is a memory monitor linked with the ColumnBackfiller on creation.
mon *mon.BytesMonitor

rowMetrics *row.Metrics
rowMetrics *rowinfra.Metrics
}

// initCols is a helper to populate some column metadata on a ColumnBackfiller.
Expand All @@ -111,7 +111,7 @@ func (cb *ColumnBackfiller) init(
computedExprs []tree.TypedExpr,
desc catalog.TableDescriptor,
mon *mon.BytesMonitor,
rowMetrics *row.Metrics,
rowMetrics *rowinfra.Metrics,
) error {
cb.evalCtx = evalCtx
cb.updateCols = append(cb.added, cb.dropped...)
Expand Down Expand Up @@ -171,7 +171,7 @@ func (cb *ColumnBackfiller) InitForLocalUse(
semaCtx *tree.SemaContext,
desc catalog.TableDescriptor,
mon *mon.BytesMonitor,
rowMetrics *row.Metrics,
rowMetrics *rowinfra.Metrics,
) error {
cb.initCols(desc)
defaultExprs, err := schemaexpr.MakeDefaultExprs(
Expand Down
1 change: 0 additions & 1 deletion pkg/sql/colexec/colexecbase/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ go_library(
"distinct.go",
"fn_op.go",
"ordinality.go",
"overloads_bin_util.go",
"simple_project.go",
":gen-exec", # keep
],
Expand Down
2 changes: 1 addition & 1 deletion pkg/sql/colexec/colexecproj/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ go_library(
"//pkg/col/typeconv", # keep
"//pkg/server/telemetry", # keep
"//pkg/sql/colconv", # keep
"//pkg/sql/colexec/colexecbase", # keep
"//pkg/sql/colexec/colexeccmp", # keep
"//pkg/sql/colexec/colexecutils", # keep
"//pkg/sql/colexec/execgen", # keep
Expand Down Expand Up @@ -97,6 +96,7 @@ disallowed_imports_test(
[
"//pkg/sql/colexec",
"//pkg/sql/colexec/colexecagg",
"//pkg/sql/colexec/colexecbase",
"//pkg/sql/colexec/colexechash",
"//pkg/sql/colexec/colexecjoin",
"//pkg/sql/colexec/colexecprojconst",
Expand Down
Loading

0 comments on commit dbbe9ed

Please sign in to comment.