Documentation ¶
Index ¶
- Constants
- Variables
- func GetLastFailedStatus(timingsMap Timings) (status string)
- func GetLoadFileGenTime(timingsMap Timings) (t time.Time)
- type AlterTableResponse
- type DestinationValidationResponse
- type JobError
- type JobErrorType
- type LoadFile
- type Matcher
- type PendingTableUpload
- type Schema
- type SchemaType
- type StagingFile
- type StagingFileWithSchema
- type Step
- type StepsResponse
- type TableSchema
- type TableUpload
- type Timings
- type Upload
- type UploadJob
- type UploadJobsStats
- type UploadStatus
- type ValidationRequest
- type ValidationResponse
- type WHSchema
- type Warehouse
Constants ¶
View Source
const ( TableUploadWaiting = "waiting" TableUploadExecuting = "executing" TableUploadUpdatingSchema = "updating_schema" TableUploadUpdatingSchemaFailed = "updating_schema_failed" TableUploadUpdatedSchema = "updated_schema" TableUploadExporting = "exporting_data" TableUploadExportingFailed = "exporting_data_failed" TableUploadExported = "exported_data" )
View Source
const ( Waiting = "waiting" GeneratedUploadSchema = "generated_upload_schema" CreatedTableUploads = "created_table_uploads" GeneratingLoadFiles = "generating_load_files" GeneratedLoadFiles = "generated_load_files" UpdatedTableUploadsCounts = "updated_table_uploads_counts" CreatedRemoteSchema = "created_remote_schema" ExportedData = "exported_data" ExportingData = "exporting_data" ExportingDataFailed = "exporting_data_failed" Aborted = "aborted" Failed = "failed" )
View Source
const ( VerifyingObjectStorage = "Verifying Object Storage" VerifyingConnections = "Verifying Connections" VerifyingCreateSchema = "Verifying Create Schema" VerifyingCreateAndAlterTable = "Verifying Create and Alter Table" VerifyingFetchSchema = "Verifying Fetch Schema" VerifyingLoadTable = "Verifying Load Table" )
Variables ¶
View Source
var ErrUploadNotFound = errors.New("upload not found")
Functions ¶
func GetLastFailedStatus ¶ added in v1.6.0
func GetLoadFileGenTime ¶ added in v1.6.0
Types ¶
type AlterTableResponse ¶ added in v1.6.0
type DestinationValidationResponse ¶ added in v1.7.0
type JobError ¶ added in v1.6.0
type JobError struct { Type JobErrorType Format Matcher }
type JobErrorType ¶ added in v1.6.0
type JobErrorType string
const ( PermissionError JobErrorType = "permission_error" AlterColumnError JobErrorType = "alter_column_error" ResourceNotFoundError JobErrorType = "resource_not_found_error" ColumnCountError JobErrorType = "column_count_error" ColumnSizeError JobErrorType = "column_size_error" InsufficientResourceError JobErrorType = "insufficient_resource_error" ConcurrentQueriesError JobErrorType = "concurrent_queries_error" UnknownError JobErrorType = "unknown_error" Noop JobErrorType = "noop" )
type PendingTableUpload ¶ added in v1.7.0
type Schema ¶ added in v1.6.0
type Schema map[string]TableSchema
type SchemaType ¶
type SchemaType string
const ( StringDataType SchemaType = "string" BooleanDataType SchemaType = "boolean" IntDataType SchemaType = "int" BigIntDataType SchemaType = "bigint" FloatDataType SchemaType = "float" JSONDataType SchemaType = "json" TextDataType SchemaType = "text" )
type StagingFile ¶
type StagingFile struct { ID int64 WorkspaceID string Location string SourceID string DestinationID string Status string // enum Error error FirstEventAt time.Time LastEventAt time.Time UseRudderStorage bool DestinationRevisionID string TotalEvents int TotalBytes int // cloud sources specific info SourceTaskRunID string SourceJobID string SourceJobRunID string TimeWindow time.Time CreatedAt time.Time UpdatedAt time.Time }
StagingFile a domain model for a staging file.
The staging file contains events that should be loaded into a warehouse. It is located in a cloud storage bucket. The model includes ownership, file location, and other metadata.
func (StagingFile) WithSchema ¶ added in v1.4.3
func (s StagingFile) WithSchema(schema json.RawMessage) StagingFileWithSchema
type StagingFileWithSchema ¶ added in v1.4.3
type StagingFileWithSchema struct { StagingFile Schema json.RawMessage }
StagingFileWithSchema is a StagingFile with schema field for included events.
schema size can be huge, and thus it should be included only when required.
type StepsResponse ¶ added in v1.7.0
type StepsResponse struct {
Steps []*Step `json:"steps"`
}
type TableSchema ¶ added in v1.7.0
type TableUpload ¶ added in v1.7.0
type Upload ¶ added in v1.6.0
type Upload struct { ID int64 WorkspaceID string Namespace string SourceID string DestinationID string DestinationType string Status string Error json.RawMessage FirstEventAt time.Time LastEventAt time.Time UseRudderStorage bool SourceTaskRunID string SourceJobID string SourceJobRunID string LoadFileType string NextRetryTime time.Time Priority int Retried bool StagingFileStartID int64 StagingFileEndID int64 LoadFileStartID int64 LoadFileEndID int64 Timings Timings FirstAttemptAt time.Time LastAttemptAt time.Time Attempts int64 UploadSchema Schema }
type UploadJob ¶ added in v1.6.0
type UploadJob struct { Warehouse Warehouse Upload Upload StagingFiles []*StagingFile LoadFileGenStartTime time.Time }
type UploadJobsStats ¶ added in v1.6.0
type UploadStatus ¶ added in v1.6.0
type UploadStatus = string
type ValidationRequest ¶ added in v1.7.0
type ValidationRequest struct { Path string Step string Destination *backendconfig.DestinationT }
type ValidationResponse ¶ added in v1.7.0
type Warehouse ¶ added in v1.7.0
type Warehouse struct { WorkspaceID string Source backendconfig.SourceT Destination backendconfig.DestinationT Namespace string Type string Identifier string }
func (*Warehouse) GetBoolDestinationConfig ¶ added in v1.7.0
Click to show internal directories.
Click to hide internal directories.