Publish Statements
Publish Statements
Publish statements control datasource availability in the model.
Syntax
publish_statement: ("publish" | "unpublish") SCOPE IDENTIFIER
Use datasource or datasources for SCOPE. Publishing individual concepts is not supported.
Publish
Mark a datasource as published (available for use):
publish datasource customers;
Unpublish
Mark a datasource as unpublished (hidden from general use):
unpublish datasource staging_customers;
Use Cases
- Control which datasources are available in production
- Hide internal/staging datasources
- Manage concept visibility across teams
- Retire old datasources while keeping their definitions
Example
import customer as customer;
# Make the validated customer data available
publish datasource customers;
# Hide the raw staging data
unpublish datasource raw_customers;
Tips
Published status affects datasource discovery and can be used to control which sources are used in query resolution.