Skip to content

CLI Reference

apply

Create or change destination tables, as the plan shows. Never loads data.

sqlload apply [SELECTOR ...] [OPTIONS]

sqlload apply creates or changes the selected destination tables, and the Snowflake stages or Databricks volumes SQLLoad owns, as plan shows them under Objects. It never loads data, and takes the same options as plan. It prints the plan, then each object it created or altered:

$ sqlload apply
…
created raw.app__customers 6 columns
created raw.app__orders 7 columns
✓ Completed 0.1s

Use it to have tables in place before data arrives, to grant access, say. A load doesn’t need it: load creates missing tables. A Python table is created by its first load, never by apply.

A table under Errors in the plan is left out; the others are applied, and the command exits 1. A change that rebuilds a table needs --allow-type-change-rebuild while type_change_rebuild is require_confirmation; see Changes that rebuild a table.

apply --json prints one JSON document, as load --json does. In a Kafka exporter configuration, apply creates the missing tables, and the stages, pipes or volumes the route needs.