Add intermediate previews and graph reconnection
This commit is contained in:
@@ -125,6 +125,14 @@ export type NodePreviewDiagnostic = {
|
||||
messages: string[];
|
||||
};
|
||||
|
||||
export type NodePreviewResult = {
|
||||
node_id: string;
|
||||
columns: PreviewColumn[];
|
||||
rows: Record<string, unknown>[];
|
||||
total_rows: number;
|
||||
truncated: boolean;
|
||||
};
|
||||
|
||||
export type PipelinePreview = {
|
||||
run_id?: string | null;
|
||||
pipeline_id?: string | null;
|
||||
@@ -136,6 +144,7 @@ export type PipelinePreview = {
|
||||
truncated: boolean;
|
||||
diagnostics: DataflowDiagnostic[];
|
||||
node_diagnostics: NodePreviewDiagnostic[];
|
||||
node_preview?: NodePreviewResult | null;
|
||||
source_fingerprints: Record<string, unknown>[];
|
||||
input_row_count: number;
|
||||
definition_hash: string;
|
||||
@@ -451,6 +460,7 @@ export function previewDataflowPipeline(
|
||||
graph?: PipelineGraph;
|
||||
sql_text?: string;
|
||||
source_nodes?: PipelineGraphNode[];
|
||||
preview_node_id?: string;
|
||||
row_limit?: number;
|
||||
}
|
||||
): Promise<PipelinePreview> {
|
||||
|
||||
Reference in New Issue
Block a user