Publish Statements
Publish Statements
Publish statements control the visibility and availability of datasources and concepts in the model.
Syntax
publish_statement: ("publish" | "unpublish") SCOPE IDENTIFIER
Where SCOPE is one of: concepts, concept, datasources, datasource
Publish
Mark a datasource or concept as published (available for use):
publish datasource customers;
publish concept customer.id;
Unpublish
Mark a datasource or concept as unpublished (hidden from general use):
unpublish datasource staging_customers;
unpublish concept internal_customer_score;
Use Cases
- Control which datasources are available in production
- Hide internal/staging datasources
- Manage concept visibility across teams
- Deprecate old concepts while keeping 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.
