INNER CODE UNIT · Rust

compile_pipeline

slothflowlabs/duckle · apps/desktop/src/lib.rs:747

fn compile_pipeline(mut pipeline: PipelineDoc, workspace_path: Option<String>) -> Result<Vec<StageSql>, String> {
    resolve_saved_connections(&mut pipeline, &workspace_path)?;
    compile_pipeline_sql(&pipeline).map_err(|e| e.to_string())
}

/// #226: the columns a node really produces, without running it.
///
/// The editor derives each node's schema from a per-component table in the
/// frontend, and there are far more components than entries in it. A component
/// that is missing falls through to "schema unchanged", so columns it adds
/// never reach the Schema or Preview tabs and a column it drops stays listed
/// and renders empty. This asks DuckDB instead, by running the node's own
/// compiled SQL against a zero-row typed stub of its inputs.
///
/// Reads nothing: no file is opened, no credential used, no network touched.
#[tauri::command]
fn describe_node_columns(
    pipeline: PipelineDoc,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…