Documentation ¶
Index ¶
- func WithConfig(h *Deltalake, config *config.Config)
- type Deltalake
- func (d *Deltalake) AddColumns(tableName string, columnsInfo []warehouseutils.ColumnInfo) error
- func (*Deltalake) AlterColumn(_, _, _ string) (model.AlterTableResponse, error)
- func (d *Deltalake) Cleanup()
- func (d *Deltalake) Connect(warehouse model.Warehouse) (warehouseclient.Client, error)
- func (d *Deltalake) CrashRecover()
- func (d *Deltalake) CreateSchema() error
- func (d *Deltalake) CreateTable(tableName string, columns model.TableSchema) error
- func (*Deltalake) DeleteBy([]string, warehouseutils.DeleteByParams) error
- func (*Deltalake) DownloadIdentityRules(*misc.GZipWriter) error
- func (d *Deltalake) DropTable(tableName string) error
- func (*Deltalake) ErrorMappings() []model.JobError
- func (d *Deltalake) FetchSchema(model.Warehouse) (model.Schema, model.Schema, error)
- func (d *Deltalake) GetTotalCountInTable(ctx context.Context, tableName string) (int64, error)
- func (*Deltalake) IsEmpty(model.Warehouse) (bool, error)
- func (*Deltalake) LoadIdentityMappingsTable() error
- func (*Deltalake) LoadIdentityMergeRulesTable() error
- func (d *Deltalake) LoadTable(ctx context.Context, tableName string) error
- func (d *Deltalake) LoadTestTable(location, tableName string, _ map[string]interface{}, format string) error
- func (d *Deltalake) LoadUserTables(ctx context.Context) map[string]error
- func (d *Deltalake) SetConnectionTimeout(timeout time.Duration)
- func (d *Deltalake) Setup(warehouse model.Warehouse, uploader warehouseutils.Uploader) error
- func (d *Deltalake) TestConnection(ctx context.Context, _ model.Warehouse) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithConfig ¶
Types ¶
type Deltalake ¶
type Deltalake struct { DB *sqlmiddleware.DB Namespace string ObjectStorage string Warehouse model.Warehouse Uploader warehouseutils.Uploader ConnectTimeout time.Duration Logger logger.Logger Stats stats.Stats LoadTableStrategy string EnablePartitionPruning bool SlowQueryThreshold time.Duration }
func (*Deltalake) AddColumns ¶
func (d *Deltalake) AddColumns(tableName string, columnsInfo []warehouseutils.ColumnInfo) error
AddColumns adds columns to the table.
func (*Deltalake) AlterColumn ¶
func (*Deltalake) AlterColumn(_, _, _ string) (model.AlterTableResponse, error)
AlterColumn alters a column in the warehouse
func (*Deltalake) CrashRecover ¶
func (d *Deltalake) CrashRecover()
CrashRecover crash recover scenarios
func (*Deltalake) CreateSchema ¶
CreateSchema creates a schema in the warehouse if it does not exist.
func (*Deltalake) CreateTable ¶
func (d *Deltalake) CreateTable(tableName string, columns model.TableSchema) error
CreateTable creates a table in the warehouse.
func (*Deltalake) DeleteBy ¶
func (*Deltalake) DeleteBy([]string, warehouseutils.DeleteByParams) error
func (*Deltalake) DownloadIdentityRules ¶
func (*Deltalake) DownloadIdentityRules(*misc.GZipWriter) error
DownloadIdentityRules downloadchecking if schema exists identity rules
func (*Deltalake) ErrorMappings ¶
ErrorMappings returns the error mappings
func (*Deltalake) FetchSchema ¶
FetchSchema fetches the schema from the warehouse
func (*Deltalake) GetTotalCountInTable ¶
GetTotalCountInTable returns the total count in the table
func (*Deltalake) LoadIdentityMappingsTable ¶
LoadIdentityMappingsTable loads identifies mappings table
func (*Deltalake) LoadIdentityMergeRulesTable ¶
LoadIdentityMergeRulesTable loads identifies merge rules tables
func (*Deltalake) LoadTestTable ¶
func (d *Deltalake) LoadTestTable(location, tableName string, _ map[string]interface{}, format string) error
LoadTestTable loads the test table
func (*Deltalake) LoadUserTables ¶
LoadUserTables loads user tables
func (*Deltalake) SetConnectionTimeout ¶
SetConnectionTimeout sets the connection timeout