Preview unsaved pipeline sources
preview_custom_pipeline_draftPost Draft Preview
When to use: 아직 저장하지 않은 소스 조합(기본 소스 + 조인·유니온)이 어떤 결과를 내는지 미리 볼 때 — 소스를 저장하기 전 검증 단계로 쓴다.
Limitations: 소스 조합만 계산하고 스텝은 적용하지 않는다 — 저장된 파이프라인의 스텝까지 보려면 preview_custom_pipeline(force_build=true). 최대 200행. source_config 형식은 source_type 마다 다르다(? 는 생략 가능): DATA_LAKE 는 {table_name, schema?, catalog?}(list_custom_pipeline_available_sources 의 DATA_LAKE 항목이면 schema_name·catalog 를 schema·catalog 로 그대로 넘긴다 — schema 를 빼면 내 데이터 레이크 스키마의 같은 이름 테이블을 가리킨다), DATA_MART 는 {table_name}, PIPELINE 은 {pipeline_id}(다른 커스텀 에셋은 get_custom_asset 의 pipelines[].id 를 넘긴다), QUERY 는 {query}(Trino SELECT 문 — 내 데이터 밖의 테이블을 읽으면 422). GOOGLE_SHEETS·FILE 소스는 미리보기를 지원하지 않는다(시트 컬럼은 list_custom_pipeline_sheet_columns 로 본다).
Examples:
Q: 주문 데이터만 기본 소스로 두면 결과가 어떻게 보이는지 보여줘 params: {'body': {'sources': [{'source_type': 'DATA_LAKE', 'source_config': {'table_name': 'commerce_order'}, 'join_type': 'BASE', 'alias': '주문'}], 'limit': 20}}
Output shape: object: {columns[], rows[], row_count, generated_sql}
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sources": "<sources>"
},
"name": "preview_custom_pipeline_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| offset | No | ||
| filters | No | ||
| sources | Yes | ||
| project-id | No | ||
| select_columns | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||