Skip to main content

Target Models

The Target Model Gem has different tabs that help you set advanced options and make it easy for you define how you want to materialize your data using write formats. You can see the UI and capabilities by opening the Target Model in your SQL projects.

These simplified options allow you to use dbt Core™ properties without the need to have any dbt knowledge.

Target Model tabs

The tabs within the Target Model include the following:

  • Type & Format: Update the format of the model between different types of materializations
  • Location: Update the location by overwriting the Database, Schema, or Alias
  • Schema: Make schema changes
  • SQL Query: View and enable your custom SQL query
  • Write Options: Use Write Modes such as Overwrite, Append, and Merge

Target Model tabs

dbt advance settings

You can find advance settings are available for defining model write formats and other DBT options. These include all dbt native settings, traditionally accessible from the yaml file.

If you're familiar with dbt, then you can navigate to and update the advance settings.

  • Click ... > Advance Settings. The advance setting dialog opens.

Advance Settings

The object properties describe everything from physical locations, materialization logic, business metadata, and access control definitions.

dbt properties mapping

The following table maps all of the dbt properties for Databricks and Snowflake to the tabs of Prophecy’s Target Model:

dbt property nameProviderTarget Model tab
file_formatDatabricksType & Format
aliasAllLocation
databaseAllLocation
location_rootDatabricksLocation
contractAllSchema
enabledAllSchema
schemaAllSchema
tagsAllSchema
cluster_bySnowflakeSchema
partition_bySnowflakeSchema
clustered_byDatabricksSchema
bucketsDatabricksSchema
transientSnowflakeSchema
query_tagSnowflakeSchema
automatic_clusteringSnowflakeSchema
snowflake_warehouseSnowflakeSchema
copy_grantsSnowflakeSchema
secureSnowflakeSchema
target_lagSnowflakeSchema
docsAllSchema
groupAllSchema
metaAllSchema
persist_docsAllSchema
full_refreshAllWrite Options
incremental_predicatesAllWrite Options
incremental_strategyAllWrite Options
materializedAllWrite Options
on_schema_changeAllWrite Options
merge_exclude_columnsSnowflake, SparkWrite Options
merge_update_columnsSnowflake, SparkWrite Options

What's next

To continue configuring your Target Model, see the following pages: