bauplan.state
classApplyPlanState
classApplyPlanStateApplyPlanState tracks information about what happened during the course of an "apply import plan" job that executes the plan to import a table from cloud storage to your Bauplan data catalog.
It represents the state of the job, including job ID, job status (failure/success), error description (if any), and a list of events describing each step of the job.
classCommonRunState
classCommonRunStateCommonRunState tracks information about what happened during the course of a Bauplan job run.
Attributes
classExternalTableCreateContext
classExternalTableCreateContextbauplan.state.ExternalTableCreateContext(
*,
branch_name: str,
table_name: str,
namespace: str,
input_files: Optional[List[str]],
overwrite: bool,
debug: bool,
detach: bool
)-> None
classExternalTableCreateState
classExternalTableCreateStateExternalTableCreateState tracks information about what happened during the course of an "external table create" job that creates an external table based on S3 files or Iceberg metadata in your Bauplan data catalog.
It represents the state of the job, including job ID, job status (failure/success), error description (if any), and a list of events describing each step of the job.
classPlanImportState
classPlanImportStatePlanImportState tracks information about what happened during the course of an "plan import" job that plans a job to import a table from cloud storage to your Bauplan data catalog.
It represents the state of the job, including job ID, job status (failure/success), error description (if any), and a list of events describing each step of the job.
It also includes the output of the job: a string containing the YAML of the import plan.
classReRunExecutionContext
classReRunExecutionContextbauplan.state.ReRunExecutionContext(
*,
re_run_job_id: str,
ref: str,
namespace: str,
dry_run: bool,
transaction: str,
strict: str,
cache: str,
preview: str,
debug: bool
)-> None
ReRunExecutionContext tracks information about the context in which a Bauplan job rerun is executed.
Attributes
classReRunState
classReRunStateReRunState tracks information about what happened during the course of a Bauplan job rerun (executed DAG).
It represents the state of a run, including job ID, task lifecycle events, user logs, task start and stop times, failed nonfatal task descriptions, job status, and failed fatal task description.
Bases: CommonRunState
Attributes
classRunExecutionContext
classRunExecutionContextbauplan.state.RunExecutionContext(
*,
snapshot_id: str,
snapshot_uri: str,
project_dir: str,
ref: str,
namespace: str,
dry_run: bool,
transaction: str,
strict: str,
cache: str,
preview: str,
debug: bool,
detach: bool
)-> None
classRunState
classRunStateRunState tracks information about what happened during the course of a Bauplan job run (executed DAG).
It represents the state of a run, including job ID, task lifecycle events, user logs, task start and stop times, failed nonfatal task descriptions, project directory, job status, and failed fatal task description.
Bases: CommonRunState
Attributes
classTableCreatePlanApplyContext
classTableCreatePlanApplyContextbauplan.state.TableCreatePlanApplyContext(
*,
debug: bool
)-> None
classTableCreatePlanApplyState
classTableCreatePlanApplyStateTableCreatePlanApplyState tracks information about what happened during the course of an "table create" job that plans a job to create an empty table based on your cloud storage to your Bauplan data catalog.
It represents the state of the job, including job ID, job status (failure/success), error description (if any), and a list of events describing each step of the job.
It also includes the output of the job: a string containing the YAML of the import plan.
classTableCreatePlanContext
classTableCreatePlanContextbauplan.state.TableCreatePlanContext(
*,
branch_name: str,
table_name: str,
table_replace: bool,
table_partitioned_by: Optional[str],
namespace: str,
search_string: str,
debug: bool
)-> None
classTableCreatePlanState
classTableCreatePlanStateTableCreatePlanState tracks information about what happened during the course of an "table create" job that plans a job to create an empty table based on your cloud storage to your Bauplan data catalog.
It represents the state of the job, including job ID, job status (failure/success), error description (if any), and a list of events describing each step of the job.
It also includes the output of the job: a string containing the YAML of the import plan.
classTableDataImportContext
classTableDataImportContextbauplan.state.TableDataImportContext(
*,
branch_name: str,
table_name: str,
namespace: str,
search_string: str,
import_duplicate_files: bool,
best_effort: bool,
continue_on_error: bool,
transformation_query: Optional[str],
preview: str,
debug: bool,
detach: bool
)-> None
classTableDataImportState
classTableDataImportStateTableDataImportState tracks information about what happened during the course of an "table create" job that plans a job to create an empty table based on your cloud storage to your Bauplan data catalog.
It represents the state of the job, including job ID, job status (failure/success), error description (if any), and a list of events describing each step of the job.
It also includes the output of the job: a string containing the YAML of the import plan.