pub struct TransformationEngine {
pub ctx: SessionContext,
}Fields§
§ctx: SessionContextImplementations§
Source§impl TransformationEngine
impl TransformationEngine
pub fn new() -> Self
Sourcepub async fn register_iceberg_catalog(
&self,
catalog_name: &str,
catalog: Arc<dyn Catalog>,
) -> Result<()>
pub async fn register_iceberg_catalog( &self, catalog_name: &str, catalog: Arc<dyn Catalog>, ) -> Result<()>
Registers an Apache Iceberg catalog directly into the DataFusion query context.
Sourcepub async fn execute_sql(&self, sql: &str) -> Result<SendableRecordBatchStream>
pub async fn execute_sql(&self, sql: &str) -> Result<SendableRecordBatchStream>
Executes a SQL transform query against registered tables.
Sourcepub async fn execute_dag(
&self,
dag: &ModelDag,
project_dir: impl AsRef<Path>,
output_dir: impl AsRef<Path>,
) -> Result<DagExecutionSummary>
pub async fn execute_dag( &self, dag: &ModelDag, project_dir: impl AsRef<Path>, output_dir: impl AsRef<Path>, ) -> Result<DagExecutionSummary>
Executes a full pipeline DAG tier by tier.
Before any model SQL runs, bronze sources declared in staging frontmatter are
registered via register_bronze_sources_for_dag.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for TransformationEngine
impl !UnwindSafe for TransformationEngine
impl Freeze for TransformationEngine
impl Send for TransformationEngine
impl Sync for TransformationEngine
impl Unpin for TransformationEngine
impl UnsafeUnpin for TransformationEngine
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for T
impl<T> Downcast for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more