[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-782974-105":3,"detail-sidebar-cat-0-en-105":79,"doc-detail-782974-en":129,"doc-similar-782974":160},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":72,"head_meta":74,"extra_data":76,"updated_unix":78},105,"en","the-ultimate-guide-to-dbt","The-Ultimate-Guide-to-dbt","","An introductory dbt guide explains warehouse data transformations. Sources reference loaded data; guidance covers declaration, use, freshness, and quoting. Seeds are CSV lookup tables, with configuration advice and cautions against production or raw personal data. Snapshots track source changes, compare timestamp and check strategies, and add historical metadata. Models contain SELECT-based logic, reference sources or other models, use Jinja, compile to database SQL, and materialize as views, tables, or ephemeral logic.",{"@graph":14,"@context":71},[15,34,54],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/the-ultimate-guide-to-dbt/782974/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":48,"encodingFormat":47,"isAccessibleForFree":49,"interactionStatistic":50},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/the-ultimate-guide-to-dbt/782974.png","ImageObject",300,407,{"name":42,"@type":43},"404brain","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-12-03",true,{"@type":51,"interactionType":52,"userInteractionCount":22},"InteractionCounter",{"@type":53},"ViewAction",{"@type":55,"mainEntity":56},"FAQPage",[57,63,67],{"name":58,"@type":59,"acceptedAnswer":60},"What are sources in dbt?","Question",{"text":61,"@type":62},"Sources are references to data loaded into a warehouse. Models can query them using the source() Jinja function.","Answer",{"name":64,"@type":59,"acceptedAnswer":65},"When are dbt seeds useful?",{"text":66,"@type":62},"Seeds are CSV files that can serve as lookup tables, such as mapping country codes to country names. They are not recommended for production or raw data, especially data containing personal information.",{"name":68,"@type":59,"acceptedAnswer":69},"How do dbt snapshots track changes?",{"text":70,"@type":62},"Snapshots preserve changes to source data over time. They can use a timestamp strategy or compare selected columns with the check strategy.","https://schema.org",{"og:url":32,"og:type":73,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":75,"canonical":32},"index,follow",{"doc_id":77,"site_id":7},782974,1796322352,{"code":4,"msg":80,"data":81},"success",[82,86,90,94,99,103,108,113,118,121,125],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":83,"show_sort_weight":84,"slug":85},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":87,"show_sort_weight":88,"slug":89},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":91,"show_sort_weight":92,"slug":93},"Exam",70,"exam",{"id":95,"doc_module":4,"doc_module_name":25,"category_name":96,"show_sort_weight":97,"slug":98},5,"Comic",60,"comic",{"id":100,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":101,"slug":102},6,50,"technology",{"id":104,"doc_module":4,"doc_module_name":25,"category_name":105,"show_sort_weight":106,"slug":107},7,"Healthcare",40,"healthcare",{"id":109,"doc_module":4,"doc_module_name":25,"category_name":110,"show_sort_weight":111,"slug":112},8,"Research & Report",30,"research-report",{"id":114,"doc_module":4,"doc_module_name":25,"category_name":115,"show_sort_weight":116,"slug":117},9,"Religion & Spirituality",20,"religion-spirituality",{"id":116,"doc_module":4,"doc_module_name":25,"category_name":119,"show_sort_weight":116,"slug":120},"World Cup","world-cup",{"id":122,"doc_module":4,"doc_module_name":25,"category_name":123,"show_sort_weight":122,"slug":124},10,"Lifestyle","lifestyle",{"id":126,"doc_module":4,"doc_module_name":25,"category_name":127,"show_sort_weight":95,"slug":128},19,"General","general",{"code":4,"msg":80,"data":130},{"doc_id":77,"user_id":131,"nickname":42,"user_avatar":132,"doc_module":4,"category_id":100,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":133,"file_id":134,"file_url":135,"file_type":136,"file_size":137,"view_count":22,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":100,"language":138,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":139,"faqs":140,"seo_title":141,"seo_description":12,"update_tm":78,"read_time":142,"preview_page_count":33,"preview_urls":143},1099529839291,"https://ap-avatar.wpscdn.com/davatar_6f874abed73319feea01a86fa6f0fab8","| \u003Cbr>|\n| --- |\n| \u003Cbr> s \u003Cbr>i\u003Cbr>w |\n\n\n|  |  |  |  |  |  |  |  |  |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| \u003Cbr>\u003Cbr>|  |  |  |  |  |  |  |  |\n|  | | jaffle shop models yml | | stripe sources .yml | | int payments pivoted to orders .sql | | |\n\nc  \nr  \ng  \nm  \np  \nn  \nr  \no  \na  \nm  \ne  \ne  \nr  \ny  \no  \ng  \nm  \na  \n_  \nb  \na  \nm  \nd  \nu  \na  \nt  \nm  \ne  \ne  \ne  \n.  \n-  \nc  \n Avoid using reserved words ( such as these for Snowflake) as column m  \nn  \ns  \nm  \nm  \na  \nb  \nn  \nn  \no  \nn  \nc  \ny  \nD   \ndata & sources  \nsources  \nWHAT IS A SOURCE?  \nAs the name suggests, sources in dbt are references to the data loaded into your warehouse that you want to use in dbt.  \nHOW TO CREATE A SOURCE?  \nSources are defined in the model .yml file under a sources key.  \nEXAMPLE  \nSELECTING FROM A SOURCE  \nWhen you want to reference a source in your model, you can use the  {{source()}}  jinja function:  \nschema table  \njaffle_shop.orders  \ncompiles to  \nReference: Add sources to your DAG, DBT documentation  \n\n| \u003Cbr>sources best practices |\n| --- |\n|  |\n| \u003Cbr>If you're using Snowflake, you'll want to make note of the quoting  property, which will automatically quote your sources when compiling the SQL |\n|  |\n| \u003Cbr>You can configure your source freshness, and test that freshness when compiling and running a dbt model . This is a helpful way to make sure your source is up to date when running a model |\n|  |\n\nseeds  \nWHAT IS A SEED?  \nSeeds are CSV files in your dbt project (typically in your  seeds  directory) , that dbt can load into your data warehouse using the  dbt seed  command.  \nHOW CAN THEY BE USED?  \nSeeds can be referenced in downstream models the same way you do with models ( ref function) .  \nWHEN SHOULD THEY BE USED?  \nSeeds act as great lookup tables, like mapping country codes to country names, or excluding a list of user ids f rom a model. They are notrecommeended for any kind of production or raw data, especially anything with PII ( Personal Identifiable Information) data .  \nSEED CONFIGURATION ↗  \nYou can configure your seeds in your  dbt_project.yml file . From here you can specify things such as the schema of your file, the column types .  \nReference: Add Seeds to your DAG, DBT documentation  \nsnapshots  \n\n| WHAT IS A SNAPSHOT?\u003Cbr>Snapshots help you see how your source data has changed over time . When a model is run, a snapshot is taken and a table is created in the specified  target_schema . They are always defined by  SELECT  statements in a  .sql  file within the  snapshots  directory.\u003Cbr>CONFIGURING A SNAPSHOT\u003Cbr>There are many options when configuring your snapshot, including:\u003Cbr>  target_database : where dbt will render the snapshot\u003Cbr>  target_schema : the target schema of the snapshot table\u003Cbr>  strategy : the detection strategy to use, either  timestamp  or  check \u003Cbr>  unique_que : a primary key column or expression for the record\u003Cbr>  check_cols ( req'd for strategy =  check  only) : the columns to check\u003Cbr>  updated_at ( req'd for strategy =  timestamp  only) : the timestamp column to compare\u003Cbr>  invalidate_hard_deletes : find hard deleted records in source and set dbt_valie_to current time if no longer exists\u003Cbr>You can see the full list of configurations available here . |\n| --- |\n| |\n| SNAPSHOT STRATEGIES\u003Cbr>There are two strategies available when configuring a snapshot: timestamp and check. dbt recommends using  timestamp  over  check .\u003Cbr>Timestamp strategy uses a timestamp column (e .g. updated_at) and checks if that column has a new value for each specified primary key. If it does, then dbt will invalidate the old row, but record the time range in which it was valid.\u003Cbr>\u003Cbr>Check strategy works when you don't have a reliable timestamp column like updated_at. It works by comparing a list of columns between their current and historical values . If any of these columns have changed, then dbt will invalidate the old record and record the new one .\u003Cbr>SNAPSHOT METAFIELDS\u003Cbr>Snapshot tables will ","cbCaimK4ncsTBTBk","https://ap.wps.com/l/cbCaimK4ncsTBTBk","pdf",11383624,"English","# Sources\n# Seeds\n# Snapshots\n## Snapshot strategies\n## Snapshot metadata\n# Models\n## Model configuration\n## Materializations","[{\"question\":\"What are sources in dbt?\",\"answer\":\"Sources are references to data loaded into a warehouse. Models can query them using the source() Jinja function.\"},{\"question\":\"When are dbt seeds useful?\",\"answer\":\"Seeds are CSV files that can serve as lookup tables, such as mapping country codes to country names. They are not recommended for production or raw data, especially data containing personal information.\"},{\"question\":\"How do dbt snapshots track changes?\",\"answer\":\"Snapshots preserve changes to source data over time. They can use a timestamp strategy or compare selected columns with the check strategy.\"}]","The-Ultimate-Guide-to-dbt | PDF",15,[144,148,152,156],{"page_no":22,"url":145,"width":146,"height":147},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-03/65043a5f4c09c72888710b25a16fc858.webp",983,832,{"page_no":26,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-03/16f1401f5467dc078b64914342066f93.webp",982,1139,{"page_no":30,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-03/936db63418fd2ca560e72aa21f9f1f3f.webp",981,1303,{"page_no":33,"url":157,"width":158,"height":159},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-03/4b68475badd81aca859e6625e57b1623.webp",980,940,{"list":161,"token":11},[162,168,175,181,188,194,201,207,213,219],{"doc_id":163,"doc_title":164,"file_type":136,"home_preview_img_url":165,"slug":166,"view_count":30,"category_name":29,"create_tm":167},700775,"Towers'International Digital IC Selector - preface","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230011570584/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796329619&Signature=02L6mQfdrhzIWoJmcE9UYVXtVUM%3D","towersinternational-digital-ic-selector-preface",1794520682,{"doc_id":169,"doc_title":170,"file_type":136,"home_preview_img_url":171,"slug":172,"view_count":173,"category_name":29,"create_tm":174},560441,"CMOS Cookbook - Chapter 1 - Some Basics","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229947688116/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796329619&Signature=UpV6hE7gGJ%2BXmPoI888tPFj6oi4%3D","cmos-cookbook-chapter-1-some-basics",24,1791803004,{"doc_id":176,"doc_title":177,"file_type":136,"home_preview_img_url":178,"slug":179,"view_count":95,"category_name":29,"create_tm":180},562918,"Functional Equivalent Description - Analog Circuit Analysis","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229947840061/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796329619&Signature=ERI8AMLaS%2FzM64RnWSK%2Fwu3TzLk%3D","functional-equivalent-description-analog-circuit-analysis",1791810058,{"doc_id":182,"doc_title":183,"file_type":136,"home_preview_img_url":184,"slug":185,"view_count":186,"category_name":29,"create_tm":187},333662,"ACS Data Import Tool - Technical Overview","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229910063057/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796329619&Signature=YZr93EmXcaBRuG4EZyv7ylx6MXs%3D","acs-data-import-tool-technical-overview",17,1790003536,{"doc_id":189,"doc_title":190,"file_type":136,"home_preview_img_url":191,"slug":192,"view_count":116,"category_name":29,"create_tm":193},85300,"ProgramTab Boosting Table Reasoning of LLMs via Programmatic Paradigm","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809299547/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796329619&Signature=IoHF%2FWDv2zdimGyv2qRghtLDaVE%3D","programtab-boosting-table-reasoning-of-llms-via-programmatic-paradigm",1784202331,{"doc_id":195,"doc_title":196,"file_type":136,"home_preview_img_url":197,"slug":198,"view_count":199,"category_name":29,"create_tm":200},562419,"Hex inverting Schmitt trigger 74HC/HCT14 - Product speciﬁcation - September 1993","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229947679517/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796329619&Signature=oZrTigV3qK6Xypz50%2BJJls%2BwjoU%3D","hex-inverting-schmitt-trigger-74hchct14-product-specification-september-1993",12,1791808575,{"doc_id":202,"doc_title":203,"file_type":136,"home_preview_img_url":204,"slug":205,"view_count":30,"category_name":29,"create_tm":206},732586,"maxmeyer ford colour codes 2001-2011 - Colour support","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031776173/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796329619&Signature=Q%2FwAkYQkwsm6ZgOsNVWePYOrfIQ%3D","maxmeyer-ford-colour-codes-2001-2011-colour-support",1795381207,{"doc_id":208,"doc_title":209,"file_type":136,"home_preview_img_url":210,"slug":211,"view_count":30,"category_name":29,"create_tm":212},697186,"Intro_to_PLC_20Pro","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230009790063/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796329619&Signature=PWXu26vthIGwa2CIdtMz4y4WTfg%3D","intro_to_plc_20pro",1794436748,{"doc_id":214,"doc_title":215,"file_type":136,"home_preview_img_url":216,"slug":217,"view_count":122,"category_name":29,"create_tm":218},656325,"Guidance for Building a SAP Cloud Data Warehouse on AWS","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974789023/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796329619&Signature=rvu2i%2BrZTPFe8lPFiPXC5c7KOvw%3D","guidance-for-building-a-sap-cloud-data-warehouse-on-aws",1792967705,{"doc_id":220,"doc_title":221,"file_type":136,"home_preview_img_url":222,"slug":223,"view_count":100,"category_name":29,"create_tm":224},656121,"SAS Global Forum 2012 Programming - Paper 251-2012 - Exploring DATA Step Merges and PROC SQL Joins","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975300872/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796329619&Signature=FVRqksHEXj%2BOywTY3vxAXiQYcLo%3D","sas-global-forum-2012-programming-paper-251-2012-exploring-data-step-merges-and-proc-sql-joins",1792966524]