Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewColumnCheckOperator ¶
func NewColumnCheckOperator(manager connectionFetcher) *ansisql.ColumnCheckOperator
Types ¶
type AcceptedValuesCheck ¶
type AcceptedValuesCheck struct {
// contains filtered or unexported fields
}
func (*AcceptedValuesCheck) Check ¶
func (c *AcceptedValuesCheck) Check(ctx context.Context, ti *scheduler.ColumnCheckInstance) error
type AssetMaterializationMap ¶
type AssetMaterializationMap map[pipeline.MaterializationType]map[pipeline.MaterializationStrategy]MaterializerFunc
type BasicOperator ¶
type BasicOperator struct {
// contains filtered or unexported fields
}
func NewBasicOperator ¶
func NewBasicOperator(conn connectionFetcher, extractor queryExtractor, materializer materializer) *BasicOperator
func (BasicOperator) Run ¶
func (o BasicOperator) Run(ctx context.Context, ti scheduler.TaskInstance) error
type Config ¶
type Config struct { // Token is the Databricks Personal API token Token string Host string Port int // Path will determine cluster or sql warehouse. See https://docs.databricks.com/en/dev-tools/go-sql-driver.html#connect-with-a-dsn-connection-string Path string Catalog string Schema string }
func (*Config) ToDBConnectionURI ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) RunQueryWithoutResult ¶
type Materializer ¶
type Materializer struct { MaterializationMap AssetMaterializationMap // contains filtered or unexported fields }
The other packages all use a materializer that renders the query to a single string. Due to the quirks of databricks we need to create a different materializer that returns a slice of strings, since databricks server requires us to send separate batches for certain things.
func NewMaterializer ¶
func NewMaterializer(fullRefresh bool) *Materializer
type MaterializerFunc ¶
type PatternCheck ¶
type PatternCheck struct {
// contains filtered or unexported fields
}
func (*PatternCheck) Check ¶
func (c *PatternCheck) Check(ctx context.Context, ti *scheduler.ColumnCheckInstance) error
Click to show internal directories.
Click to hide internal directories.