pub struct SqlTransform { /* private fields */ }Expand description
A compiled SQL transform. One DuckDB connection, reused across the row’s pages.
Implementations§
Source§impl SqlTransform
impl SqlTransform
Sourcepub fn compile(cfg: &SqlTransformConfig) -> Result<Self, FaucetError>
pub fn compile(cfg: &SqlTransformConfig) -> Result<Self, FaucetError>
Build the connection, load reference relations, and validate the query.
Sourcepub fn into_page_stage(self) -> TransformStage
pub fn into_page_stage(self) -> TransformStage
Consume into a page-level Value transform stage.
Sourcepub fn into_columnar_stage(self) -> (TransformStage, PageFnBatchBox)
pub fn into_columnar_stage(self) -> (TransformStage, PageFnBatchBox)
Consume into a Value page stage plus an Arrow RecordBatch → Record Batch form that shares the same DuckDB connection (#375). The CLI passes
the batch fn to TransformingSource::new_with_batches, so a parquet → sql → parquet chain runs Arrow end-to-end (no Value materialization)
while any other chain keeps using the Value page stage.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SqlTransform
impl RefUnwindSafe for SqlTransform
impl Send for SqlTransform
impl Sync for SqlTransform
impl Unpin for SqlTransform
impl UnsafeUnpin for SqlTransform
impl UnwindSafe for SqlTransform
Blanket Implementations§
impl<T> Allocation for T
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