Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
84976: ttl: split processor into separate file r=rafiss a=ecwall

This new file will contain the DistSQL processor impl.

Release note: None

Co-authored-by: Evan Wall <[email protected]>
  • Loading branch information
craig[bot] and ecwall committed Jul 28, 2022
2 parents a7124fd + 113ad09 commit e52ca86
Show file tree
Hide file tree
Showing 7 changed files with 580 additions and 455 deletions.
6 changes: 6 additions & 0 deletions pkg/sql/catalog/colinfo/ttl.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@

package colinfo

import "github.com/cockroachdb/cockroach/pkg/sql/catalog/catpb"

// TTLDefaultExpirationColumnName is the column name representing the expiration
// column for TTL.
const TTLDefaultExpirationColumnName = "crdb_internal_expiration"

// DefaultTTLExpirationExpr is default TTL expression when
// ttl_expiration_expression is not specified
var DefaultTTLExpirationExpr = catpb.Expression(TTLDefaultExpirationColumnName)
1 change: 1 addition & 0 deletions pkg/sql/ttl/ttljob/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ go_library(
srcs = [
"ttljob.go",
"ttljob_metrics.go",
"ttljob_processor.go",
"ttljob_query_builder.go",
],
importpath = "github.com/cockroachdb/cockroach/pkg/sql/ttl/ttljob",
Expand Down
Loading

0 comments on commit e52ca86

Please sign in to comment.