duckOrch GitHub ↗

SQL reference

40 function names and 40 signatures. Search by name, type, or description.

orch_asset_healthpragma
PRAGMA orch_asset_health()

List materialization and data-quality status for registered assets.

orch_asset_lineagepragma
PRAGMA orch_asset_lineage(VARCHAR)

Show upstream and downstream dependencies for an asset.

orch_asset_listpragma
PRAGMA orch_asset_list()

List registered assets.

orch_asset_list_grouppragma
PRAGMA orch_asset_list_group(VARCHAR)

List assets in a registered group.

orch_asset_materializationspragma
PRAGMA orch_asset_materializations(VARCHAR, BIGINT)

Show the most recent materializations for an asset, up to the requested limit.

orch_asset_partitionspragma
PRAGMA orch_asset_partitions(VARCHAR)

List the registered partitions of an asset.

orch_asset_partitions_calendarpragma
PRAGMA orch_asset_partitions_calendar(VARCHAR)

Show an asset's partitions and run status by date.

orch_asset_showpragma
PRAGMA orch_asset_show(VARCHAR)

Show a registered asset and its dependencies.

orch_automation_simulatepragma
PRAGMA orch_automation_simulate(VARCHAR)

Evaluate automation conditions for an asset.

orch_automation_statuspragma
PRAGMA orch_automation_status()

Show the evaluation status of registered automation conditions.

orch_backfillpragma
PRAGMA orch_backfill(VARCHAR, VARCHAR, VARCHAR)

Run an asset over a specified partition range.

orch_backfill_missingpragma
PRAGMA orch_backfill_missing(VARCHAR)

Run the missing partitions of an asset.

orch_build_dagdag
orch_build_dag(tasks_json VARCHAR) → VARCHAR

Builds a dependency DAG from task definitions encoded as JSON.

orch_build_dag('[]')
orch_check_historypragma
PRAGMA orch_check_history(VARCHAR, BIGINT)

Show an asset's data-quality check history.

orch_check_runpragma
PRAGMA orch_check_run(VARCHAR)

Run data-quality checks for an asset.

orch_create_dynamic_assetpragma
PRAGMA orch_create_dynamic_asset(VARCHAR, VARCHAR, VARCHAR)

Register a dynamic asset that can be refreshed from a source query.

orch_downstream_ofdag
orch_downstream_of(tasks_json VARCHAR, failed_task VARCHAR) → VARCHAR

Returns the task names downstream of a failed task from task definitions encoded as JSON.

orch_downstream_of('[]', 'failed_task')
orch_dynamic_listpragma
PRAGMA orch_dynamic_list()

List the registered dynamic asset configurations.

orch_dynamic_refreshpragma
PRAGMA orch_dynamic_refresh(VARCHAR)

Refresh a registered dynamic asset.

orch_extract_iolineage
orch_extract_io(sql VARCHAR) → VARCHAR

Extracts input and output datasets from a SQL statement as JSON.

orch_extract_io('INSERT INTO dst SELECT * FROM src')
orch_hellogreeting
orch_hello(name VARCHAR) → VARCHAR

Returns a greeting from the duckorch core library for the supplied name.

orch_hello('world')
orch_ingest_httppragma
PRAGMA orch_ingest_http(VARCHAR, VARCHAR, disposition VARCHAR, primary_key VARCHAR, max_nesting BIGINT, paginate VARCHAR, records_path VARCHAR, cursor_path VARCHAR, cursor_param VARCHAR, page_param VARCHAR, resource VARCHAR, secret VARCHAR, token VARCHAR, max_pages BIGINT)

Ingest data from a configured HTTP source. See the guide for supported formats, authentication, and limits.

orch_ingest_previewpragma
PRAGMA orch_ingest_preview(VARCHAR, VARCHAR, max_nesting BIGINT)

Preview an input file and its proposed destination schema.

orch_ingest_resetpragma
PRAGMA orch_ingest_reset(VARCHAR, VARCHAR)

Reset the ingestion state for an input.

orch_ingest_runpragma
PRAGMA orch_ingest_run(VARCHAR, VARCHAR, disposition VARCHAR, primary_key VARCHAR, max_nesting BIGINT)

Ingest file input into a registered destination.

orch_ingest_statepragma
PRAGMA orch_ingest_state()

Show ingestion state and the files already processed.

orch_initpragma
PRAGMA orch_init()

Initialize the internal schema and metadata tables used by duckOrch.

orch_load_directory_jsontasks
orch_load_directory_json(path VARCHAR) → VARCHAR

Walks a directory's SQL files and returns parsed tasks and errors as JSON.

orch_load_directory_json('.')
orch_parse_tasktasks
orch_parse_task(sql VARCHAR, file_path VARCHAR) → VARCHAR

Parses a task SQL document and returns its task metadata as JSON.

orch_parse_task('-- @task name=demo' || chr(10) || 'SELECT 1', 'demo.sql')
orch_registerpragma
PRAGMA orch_register(VARCHAR)

Register task definitions from a directory.

orch_render_mermaidvisualization
orch_render_mermaid(dag_json VARCHAR, mode INTEGER, statuses_json VARCHAR) → VARCHAR

Renders a task DAG and lineage as Mermaid text using execution statuses.

orch_render_mermaid('{"order":[],"task_edges":[],"lineage_edges":[]}', 0, '[]')
orch_restatepragma
PRAGMA orch_restate(VARCHAR, VARCHAR, VARCHAR)

Reprocess the requested partition range.

orch_runpragma
PRAGMA orch_run()

Run registered tasks in dependency order.

orch_run_partitionpragma
PRAGMA orch_run_partition(VARCHAR, VARCHAR)

Run an asset for one partition.

orch_sensor_set_intervalpragma
PRAGMA orch_sensor_set_interval(BIGINT)

Set the interval between sensor evaluations.

orch_sensor_startpragma
PRAGMA orch_sensor_start()

Start the automation sensor.

orch_sensor_statuspragma
PRAGMA orch_sensor_status()

Show the automation sensor status.

orch_sensor_stoppragma
PRAGMA orch_sensor_stop()

Stop the automation sensor.

orch_testpragma
PRAGMA orch_test()

Run checks declared for registered tasks.

orch_visualizepragma
PRAGMA orch_visualize(VARCHAR)

Export the dependency graph in the selected format.