Skip to content

Commit

Permalink
Implement operations for remaining column testing definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
HuwCampbell committed May 1, 2024
1 parent 6cf505d commit 7b3de1a
Show file tree
Hide file tree
Showing 3 changed files with 449 additions and 142 deletions.
21 changes: 20 additions & 1 deletion client/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,27 @@ type ColumnKind struct {
Units *string `json:"units,omitempty"`
}

const (
ColumnConstraint_NOT_NULL = "notnull"
ColumnConstraint_UNIQUE = "uniqueness"
ColumnConstraint_NOT_CONSTANT = "notconstant"
ColumnConstraint_ACCEPTED_VALUES = "acceptedvalues"
ColumnConstraint_IN_RANGE = "inrange"
ColumnConstraint_STATISTICS_IN_RANGE = "statisticsinrange"
ColumnConstraint_ROW_CHECK = "rowcheck"
ColumnConstraint_AGGREGATE_CHECK = "aggregatecheck"
)

type ColumnConstraint struct {
Type string `json:"adt_type"`
Type string `json:"adt_type"`
Name *string `json:"name,omitempty"`
Threshold *float64 `json:"threshold"`
Min *string `json:"min"`
Max *string `json:"max"`
Expression *SQLExpression `json:"expression"`
Aggregation *AggregateExpression `json:"aggregation"`
PerPartition *bool `json:"perPartition,omitempty"`
Acceptable []string `json:"ok,omitempty"`
}

// ColumnInfo ..
Expand Down
Loading

0 comments on commit 7b3de1a

Please sign in to comment.