{"id":919,"date":"2026-11-19T12:04:28","date_gmt":"2026-11-19T12:04:28","guid":{"rendered":"https:\/\/datascientists.info\/?p=919"},"modified":"2026-11-19T12:04:28","modified_gmt":"2026-11-19T12:04:28","slug":"dbt-duckdb-ci-cd-data-testing","status":"publish","type":"post","link":"https:\/\/datascientists.info\/index.php\/2026\/11\/19\/dbt-duckdb-ci-cd-data-testing\/","title":{"rendered":"CI\/CD Data Testing with dbt and DuckDB: Pre-Flight Assertions for Analytics Pipelines"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Testing dbt models in continuous integration typically involves triggering a staging run on a remote cloud data warehouse such as Snowflake, BigQuery, or Databricks. While thorough, this approach introduces operational friction: warehouse spin-up delays, queueing, credit consumption, and multi-minute pipeline runs for even minor SQL modifications.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">By using the <code>dbt-duckdb<\/code> adapter, analytics teams can execute standard dbt tests (<code>unique<\/code>, <code>not_null<\/code>, <code>relationships<\/code>, and custom singular assertions) directly inside an ephemeral CI runner against local Parquet snapshots or seed files.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This shifts assertion testing left: models and contracts are validated within the pipeline runner before triggering downstream runs on target warehouses.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Architecture Overview<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A dedicated CI profile directs dbt to compile and execute against an in-memory or temporary file-based DuckDB instance. Upstream sources map to lightweight Parquet fixtures stored in the repository, pulled from an artifact registry, or fetched from object storage.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"533\" height=\"816\" src=\"https:\/\/datascientists.info\/wp-content\/uploads\/2026\/11\/image-7.png\" alt=\"\" class=\"wp-image-920\" srcset=\"https:\/\/datascientists.info\/wp-content\/uploads\/2026\/11\/image-7.png 533w, https:\/\/datascientists.info\/wp-content\/uploads\/2026\/11\/image-7-196x300.png 196w\" sizes=\"auto, (max-width: 533px) 100vw, 533px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">1. Project Configuration<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><code>profiles.yml<\/code><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Define a <code>ci_duckdb<\/code> target alongside production and development targets. Using an environment variable or setting a local file path (<code>target\/ci_duckdb.db<\/code>) isolates test artifacts within the current runner:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\njaffle_shop:\n  target: dev\n  outputs:\n    dev:\n      type: snowflake  # or bigquery \/ databricks \/ postgres\n      account: &quot;{{ env_var(&#039;DBT_ACCOUNT&#039;) }}&quot;\n      user: &quot;{{ env_var(&#039;DBT_USER&#039;) }}&quot;\n      # ... warehouse credentials\n    \n    ci_duckdb:\n      type: duckdb\n      path: &#039;target\/ci_duckdb.db&#039;\n      threads: 4\n      extensions:\n        - parquet\n        - httpfs\n\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\">Source Mapping (<code>models\/staging\/sources.yml<\/code>)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Configure sources to resolve to Parquet files during CI execution, while defaulting to warehouse tables in standard environments:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nversion: 2\n\nsources:\n  - name: raw_data\n    schema: &quot;{{ &#039;main&#039; if target.name == &#039;ci_duckdb&#039; else &#039;raw_production&#039; }}&quot;\n    tables:\n      - name: orders\n        meta:\n          external_location: &quot;{{ &#039;fixtures\/raw_orders.parquet&#039; if target.name == &#039;ci_duckdb&#039; else none }}&quot;\n      - name: customers\n        meta:\n          external_location: &quot;{{ &#039;fixtures\/raw_customers.parquet&#039; if target.name == &#039;ci_duckdb&#039; else none }}&quot;\n\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">Inside model definitions, conditionally route inputs based on the active target:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n-- models\/staging\/stg_orders.sql\n{{ config(materialized=&#039;view&#039;) }}\n\nWITH source AS (\n    {% if target.name == &#039;ci_duckdb&#039; %}\n    SELECT * FROM read_parquet(&#039;fixtures\/raw_orders.parquet&#039;)\n    {% else %}\n    SELECT * FROM {{ source(&#039;raw_data&#039;, &#039;orders&#039;) }}\n    {% endif %}\n)\n\nSELECT\n    order_id::VARCHAR AS order_id,\n    customer_id::VARCHAR AS customer_id,\n    net_amount::DOUBLE AS net_amount,\n    tax_amount::DOUBLE AS tax_amount,\n    gross_amount::DOUBLE AS gross_amount\nFROM source\n\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">Assertion Definitions<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">All native dbt tests function without modification under the <code class=\"\">dbt-duckdb<\/code> adapter.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Generic Tests (<code>models\/staging\/schema.yml<\/code>)<\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nversion: 2\n\nmodels:\n  - name: stg_orders\n    columns:\n      - name: order_id\n        tests:\n          - unique\n          - not_null\n      - name: customer_id\n        tests:\n          - not_null\n          - relationships:\n              to: ref(&#039;stg_customers&#039;)\n              field: customer_id\n      - name: net_amount\n        tests:\n          - not_null\n\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\">Singular Business Assertions (<code>tests\/assert_net_plus_tax_equals_gross.sql<\/code>)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Singular tests query compiled models directly, raising a failure if any offending rows return:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nSELECT\n    order_id,\n    net_amount,\n    tax_amount,\n    gross_amount,\n    ROUND(ABS((net_amount + tax_amount) - gross_amount), 4) AS delta\nFROM {{ ref(&#039;stg_orders&#039;) }}\nWHERE ROUND(ABS((net_amount + tax_amount) - gross_amount), 4) &gt; 0.01\n\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">Platform-Agnostic CI Implementation<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To keep the pipeline portable across GitLab CI, Jenkins, Tekton, or GitHub Actions, test orchestration and reporting are handled by a standard shell script and a small parser script rather than vendor-specific plugins.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Artifact Parser (<code>scripts\/parse_dbt_results.py<\/code>)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">This script reads <code>target\/run_results.json<\/code> and outputs a standardized Markdown report while returning a non-zero exit code on failures:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n#!\/usr\/bin\/env python3\nimport json\nimport sys\nfrom pathlib import Path\n\nresults_file = Path(&quot;target\/run_results.json&quot;)\nif not results_file.exists():\n    print(&quot;Error: target\/run_results.json not found.&quot;, file=sys.stderr)\n    sys.exit(1)\n\nwith open(results_file) as f:\n    data = json.load(f)\n\nresults = data.get(&quot;results&quot;, &#x5B;])\ntotal = len(results)\npassed = sum(1 for r in results if r&#x5B;&quot;status&quot;] in (&quot;pass&quot;, &quot;success&quot;))\nfailed = total - passed\nstatus_text = &quot;PASSED&quot; if failed == 0 else &quot;FAILED&quot;\n\nlines = &#x5B;\n    f&quot;## dbt Pre-Flight Quality Check: {status_text}&quot;,\n    f&quot;**Summary:** {passed}\/{total} nodes passed ({failed} failures).\\n&quot;,\n    &quot;| Node Name | Type | Status | Execution Time | Message |&quot;,\n    &quot;| :--- | :--- | :---: | :---: | :--- |&quot;\n]\n\nfor r in results:\n    node_id = r&#x5B;&quot;unique_id&quot;]\n    node_type = node_id.split(&quot;.&quot;)&#x5B;0]\n    name = node_id.split(&quot;.&quot;)&#x5B;-1]\n    status = &quot;PASS&quot; if r&#x5B;&quot;status&quot;] in (&quot;pass&quot;, &quot;success&quot;) else &quot;FAIL&quot;\n    duration = f&quot;{r.get(&#039;execution_time&#039;, 0):.2f}s&quot;\n    msg = (r.get(&quot;message&quot;) or &quot;&quot;).replace(&quot;\\n&quot;, &quot; &quot;).strip()\n    lines.append(f&quot;| `{name}` | `{node_type}` | {status} | {duration} | {msg} |&quot;)\n\nreport_content = &quot;\\n&quot;.join(lines)\nPath(&quot;dbt_report.md&quot;).write_text(report_content)\nprint(report_content)\n\nsys.exit(0 if failed == 0 else 1)\n\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">GitLab CI Pipeline Configuration<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The pipeline runs the pre-flight suite inside standard Python container runners. Using GitLab&#8217;s native API integration or merge request description updates, the generated report attaches directly to the MR.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n# .gitlab-ci.yml\nstages:\n  - preflight\n  - deploy_staging\n\ndefault:\n  image: python:3.11-slim\n\nvariables:\n  PIP_CACHE_DIR: &quot;$CI_PROJECT_DIR\/.cache\/pip&quot;\n\ncache:\n  paths:\n    - .cache\/pip\/\n\ndbt_preflight_assertions:\n  stage: preflight\n  rules:\n    - if: &#039;$CI_PIPELINE_SOURCE == &quot;merge_request_event&quot;&#039;\n      changes:\n        - &quot;models\/**\/*&quot;\n        - &quot;seeds\/**\/*&quot;\n        - &quot;tests\/**\/*&quot;\n        - &quot;dbt_project.yml&quot;\n  before_script:\n    - apt-get update &amp;amp;&amp;amp; apt-get install -y --no-install-recommends curl jq\n    - pip install dbt-core dbt-duckdb duckdb\n    - mkdir -p fixtures\n    # Fetch sanitized test datasets (e.g. from internal S3, MinIO, or generic package registry)\n    # Mock data generation for illustration:\n    - python3 -c &quot;\n      import duckdb;\n      con = duckdb.connect();\n      con.execute(\\&quot;COPY (SELECT &#039;CUST_&#039; || lpad(i::VARCHAR, 3, &#039;0&#039;) AS customer_id FROM generate_series(1, 50) t(i)) TO &#039;fixtures\/raw_customers.parquet&#039; (FORMAT PARQUET);\\&quot;);\n      con.execute(\\&quot;COPY (SELECT &#039;ORD_&#039; || lpad(i::VARCHAR, 6, &#039;0&#039;) AS order_id, &#039;CUST_&#039; || lpad(((i % 50) + 1)::VARCHAR, 3, &#039;0&#039;) AS customer_id, ROUND(random() * 200 + 10, 2) AS net_amount, ROUND((random() * 200 + 10) * 0.19, 2) AS tax_amount, 0.0 AS gross_amount FROM generate_series(1, 10000) t(i)) TO &#039;fixtures\/temp.parquet&#039; (FORMAT PARQUET);\\&quot;);\n      con.execute(\\&quot;COPY (SELECT order_id, customer_id, net_amount, tax_amount, ROUND(net_amount + tax_amount, 2) AS gross_amount FROM &#039;fixtures\/temp.parquet&#039;) TO &#039;fixtures\/raw_orders.parquet&#039; (FORMAT PARQUET);\\&quot;);\n      &quot;\n  script:\n    - dbt deps --target ci_duckdb\n    # Run transformations and assertions locally in DuckDB\n    - dbt build --target ci_duckdb --profiles-dir .\n  after_script:\n    - python3 scripts\/parse_dbt_results.py || true\n    # Post report back to the GitLab Merge Request using CI_JOB_TOKEN\n    - |\n      if &#x5B; -n &quot;$CI_MERGE_REQUEST_IID&quot; ] &amp;amp;&amp;amp; &#x5B; -f &quot;dbt_report.md&quot; ]; then\n        REPORT_BODY=$(jq -Rs . &amp;lt; dbt_report.md)\n        curl --silent --request POST \\\n          --header &quot;JOB-TOKEN: $CI_JOB_TOKEN&quot; \\\n          --header &quot;Content-Type: application\/json&quot; \\\n          --data &quot;{\\&quot;body\\&quot;: $REPORT_BODY}&quot; \\\n          &quot;${CI_API_V4_URL}\/projects\/${CI_PROJECT_ID}\/merge_requests\/${CI_MERGE_REQUEST_IID}\/notes&quot;\n      fi\n  artifacts:\n    when: always\n    paths:\n      - target\/run_results.json\n      - dbt_report.md\n    expire_in: 7 days\n\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">Execution Lifecycle Across Platforms<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"558\" src=\"https:\/\/datascientists.info\/wp-content\/uploads\/2026\/11\/image-8-1024x558.png\" alt=\"\" class=\"wp-image-921\" srcset=\"https:\/\/datascientists.info\/wp-content\/uploads\/2026\/11\/image-8-1024x558.png 1024w, https:\/\/datascientists.info\/wp-content\/uploads\/2026\/11\/image-8-300x164.png 300w, https:\/\/datascientists.info\/wp-content\/uploads\/2026\/11\/image-8-767x418.png 767w, https:\/\/datascientists.info\/wp-content\/uploads\/2026\/11\/image-8.png 1460w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Operational Considerations<\/h2>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li><strong>State-Based Testing (<code>dbt slim CI<\/code>):<\/strong> In projects with hundreds of models, test execution can be further restricted by comparing the current branch state against an exported production <code>manifest.json<\/code>:Bash<code>dbt test --select state:modified+ --state path\/to\/prod\/artifacts --target ci_duckdb<\/code><\/li>\n\n\n\n<li><strong>Deterministic Test Fixtures:<\/strong> Treat Parquet fixtures as explicit integration contracts. Storing small, anonymized baseline tables (under 50 MB) inside an object storage bucket or a GitLab Generic Package Registry keeps runner setup fast and decoupled from production access controls.<\/li>\n\n\n\n<li><strong>Cross-Engine Macro Compatibility:<\/strong> When using dialect-specific syntax (such as Snowflake window framing or date manipulation), isolate them within dbt macros using conditional blocks:SQL<code>{% macro dateadd(datepart, interval, date) %} {% if target.type == 'duckdb' %} {{ date }} + INTERVAL '{{ interval }} {{ datepart }}' {% else %} DATEADD({{ datepart }}, {{ interval }}, {{ date }}) {% endif %} {% endmacro %}<\/code><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Testing dbt models in continuous integration typically involves triggering a staging run on a remote cloud data warehouse such as Snowflake, BigQuery, or Databricks. While thorough, this approach introduces operational friction: warehouse spin-up delays, queueing, credit consumption, and multi-minute pipeline runs for even minor SQL modifications. By using the dbt-duckdb adapter, analytics teams can execute [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_ppma_block_editor_authors":""},"categories":[2,125,6],"tags":[189,126,179],"ppma_author":[144,145],"class_list":["post-919","post","type-post","status-publish","format-standard","hentry","category-analytics-platform","category-data-engineering","category-data-warehouse","tag-cicd","tag-data-engineering","tag-duckdb","author-marc","author-saidah"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>dbt &amp; DuckDB in CI\/CD: Fast, Zero-Cost Data Assertions | Data Do<\/title>\n<meta name=\"description\" content=\"Learn how to run fast, zero-warehouse-cost dbt test suites in GitLab CI using dbt-duckdb and local Parquet fixtures before deploying to production.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/datascientists.info\/index.php\/2026\/11\/19\/dbt-duckdb-ci-cd-data-testing\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"dbt &amp; DuckDB in CI\/CD: Fast, Zero-Cost Data Assertions | Data Do\" \/>\n<meta property=\"og:description\" content=\"Learn how to run fast, zero-warehouse-cost dbt test suites in GitLab CI using dbt-duckdb and local Parquet fixtures before deploying to production.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/datascientists.info\/index.php\/2026\/11\/19\/dbt-duckdb-ci-cd-data-testing\/\" \/>\n<meta property=\"og:site_name\" content=\"DATA DO - \u30c7\u30fc\u30bf \u9053\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataScientists\/\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-19T12:04:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/datascientists.info\/wp-content\/uploads\/2026\/11\/image-7.png\" \/>\n<meta name=\"author\" content=\"Marc Matt, saidah\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Marc Matt\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/datascientists.info\\\/index.php\\\/2026\\\/11\\\/19\\\/dbt-duckdb-ci-cd-data-testing\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/datascientists.info\\\/index.php\\\/2026\\\/11\\\/19\\\/dbt-duckdb-ci-cd-data-testing\\\/\"},\"author\":{\"name\":\"Marc Matt\",\"@id\":\"https:\\\/\\\/datascientists.info\\\/#\\\/schema\\\/person\\\/723078870bf3135121086d46ebb12f19\"},\"headline\":\"CI\\\/CD Data Testing with dbt and DuckDB: Pre-Flight Assertions for Analytics Pipelines\",\"datePublished\":\"2026-11-19T12:04:28+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/datascientists.info\\\/index.php\\\/2026\\\/11\\\/19\\\/dbt-duckdb-ci-cd-data-testing\\\/\"},\"wordCount\":420,\"publisher\":{\"@id\":\"https:\\\/\\\/datascientists.info\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/datascientists.info\\\/index.php\\\/2026\\\/11\\\/19\\\/dbt-duckdb-ci-cd-data-testing\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/datascientists.info\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/image-7.png\",\"keywords\":[\"CICD\",\"Data Engineering\",\"DuckDB\"],\"articleSection\":[\"Analytics Platform\",\"Data Engineering\",\"Data Warehouse\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/datascientists.info\\\/index.php\\\/2026\\\/11\\\/19\\\/dbt-duckdb-ci-cd-data-testing\\\/\",\"url\":\"https:\\\/\\\/datascientists.info\\\/index.php\\\/2026\\\/11\\\/19\\\/dbt-duckdb-ci-cd-data-testing\\\/\",\"name\":\"dbt & DuckDB in CI\\\/CD: Fast, Zero-Cost Data Assertions | Data Do\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/datascientists.info\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/datascientists.info\\\/index.php\\\/2026\\\/11\\\/19\\\/dbt-duckdb-ci-cd-data-testing\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/datascientists.info\\\/index.php\\\/2026\\\/11\\\/19\\\/dbt-duckdb-ci-cd-data-testing\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/datascientists.info\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/image-7.png\",\"datePublished\":\"2026-11-19T12:04:28+00:00\",\"description\":\"Learn how to run fast, zero-warehouse-cost dbt test suites in GitLab CI using dbt-duckdb and local Parquet fixtures before deploying to production.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/datascientists.info\\\/index.php\\\/2026\\\/11\\\/19\\\/dbt-duckdb-ci-cd-data-testing\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/datascientists.info\\\/index.php\\\/2026\\\/11\\\/19\\\/dbt-duckdb-ci-cd-data-testing\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/datascientists.info\\\/index.php\\\/2026\\\/11\\\/19\\\/dbt-duckdb-ci-cd-data-testing\\\/#primaryimage\",\"url\":\"https:\\\/\\\/datascientists.info\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/image-7.png\",\"contentUrl\":\"https:\\\/\\\/datascientists.info\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/image-7.png\",\"width\":533,\"height\":816},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/datascientists.info\\\/index.php\\\/2026\\\/11\\\/19\\\/dbt-duckdb-ci-cd-data-testing\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/datascientists.info\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"CI\\\/CD Data Testing with dbt and DuckDB: Pre-Flight Assertions for Analytics Pipelines\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/datascientists.info\\\/#website\",\"url\":\"https:\\\/\\\/datascientists.info\\\/\",\"name\":\"Data Scientists\",\"description\":\"Digging data, Big Data, Analysis, Data Mining\",\"publisher\":{\"@id\":\"https:\\\/\\\/datascientists.info\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/datascientists.info\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/datascientists.info\\\/#organization\",\"name\":\"DATA DO - \u30c7\u30fc\u30bf \u9053\",\"url\":\"https:\\\/\\\/datascientists.info\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/datascientists.info\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/datascientists.info\\\/wp-content\\\/uploads\\\/2026\\\/02\\\/Bildschirmfoto-vom-2026-02-02-08-13-21.png\",\"contentUrl\":\"https:\\\/\\\/datascientists.info\\\/wp-content\\\/uploads\\\/2026\\\/02\\\/Bildschirmfoto-vom-2026-02-02-08-13-21.png\",\"width\":250,\"height\":174,\"caption\":\"DATA DO - \u30c7\u30fc\u30bf \u9053\"},\"image\":{\"@id\":\"https:\\\/\\\/datascientists.info\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/DataScientists\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/datascientists.info\\\/#\\\/schema\\\/person\\\/723078870bf3135121086d46ebb12f19\",\"name\":\"Marc Matt\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/74f48ef754cf04f628f42ed117a3f2b42931feeb41a3cca2313b9714a7d4fdd2?s=96&d=mm&r=g53b84b5f47a2156ba8b047d71d6d05fc\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/74f48ef754cf04f628f42ed117a3f2b42931feeb41a3cca2313b9714a7d4fdd2?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/74f48ef754cf04f628f42ed117a3f2b42931feeb41a3cca2313b9714a7d4fdd2?s=96&d=mm&r=g\",\"caption\":\"Marc Matt\"},\"description\":\"Senior Data Architect with 15+ years of experience helping Hamburg's leading enterprises modernize their data infrastructure. I bridge the gap between legacy systems (SAP, Hadoop) and modern AI capabilities. I help clients: Migrate &amp; Modernize: Transitioning on-premise data warehouses to Google Cloud\\\/AWS to reduce costs and increase agility. Implement GenAI: Building secure RAG (Retrieval-Augmented Generation) pipelines to unlock value from internal knowledge bases using LangChain and Vector DBs. Scale MLOps: Operationalizing machine learning models from PoC to production with Kubernetes and Airflow. Proven track record leading engineering teams.\",\"sameAs\":[\"https:\\\/\\\/data-do.de\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"dbt & DuckDB in CI\/CD: Fast, Zero-Cost Data Assertions | Data Do","description":"Learn how to run fast, zero-warehouse-cost dbt test suites in GitLab CI using dbt-duckdb and local Parquet fixtures before deploying to production.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/datascientists.info\/index.php\/2026\/11\/19\/dbt-duckdb-ci-cd-data-testing\/","og_locale":"en_US","og_type":"article","og_title":"dbt & DuckDB in CI\/CD: Fast, Zero-Cost Data Assertions | Data Do","og_description":"Learn how to run fast, zero-warehouse-cost dbt test suites in GitLab CI using dbt-duckdb and local Parquet fixtures before deploying to production.","og_url":"https:\/\/datascientists.info\/index.php\/2026\/11\/19\/dbt-duckdb-ci-cd-data-testing\/","og_site_name":"DATA DO - \u30c7\u30fc\u30bf \u9053","article_publisher":"https:\/\/www.facebook.com\/DataScientists\/","article_published_time":"2026-11-19T12:04:28+00:00","og_image":[{"url":"https:\/\/datascientists.info\/wp-content\/uploads\/2026\/11\/image-7.png","type":"","width":"","height":""}],"author":"Marc Matt, saidah","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Marc Matt","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/datascientists.info\/index.php\/2026\/11\/19\/dbt-duckdb-ci-cd-data-testing\/#article","isPartOf":{"@id":"https:\/\/datascientists.info\/index.php\/2026\/11\/19\/dbt-duckdb-ci-cd-data-testing\/"},"author":{"name":"Marc Matt","@id":"https:\/\/datascientists.info\/#\/schema\/person\/723078870bf3135121086d46ebb12f19"},"headline":"CI\/CD Data Testing with dbt and DuckDB: Pre-Flight Assertions for Analytics Pipelines","datePublished":"2026-11-19T12:04:28+00:00","mainEntityOfPage":{"@id":"https:\/\/datascientists.info\/index.php\/2026\/11\/19\/dbt-duckdb-ci-cd-data-testing\/"},"wordCount":420,"publisher":{"@id":"https:\/\/datascientists.info\/#organization"},"image":{"@id":"https:\/\/datascientists.info\/index.php\/2026\/11\/19\/dbt-duckdb-ci-cd-data-testing\/#primaryimage"},"thumbnailUrl":"https:\/\/datascientists.info\/wp-content\/uploads\/2026\/11\/image-7.png","keywords":["CICD","Data Engineering","DuckDB"],"articleSection":["Analytics Platform","Data Engineering","Data Warehouse"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/datascientists.info\/index.php\/2026\/11\/19\/dbt-duckdb-ci-cd-data-testing\/","url":"https:\/\/datascientists.info\/index.php\/2026\/11\/19\/dbt-duckdb-ci-cd-data-testing\/","name":"dbt & DuckDB in CI\/CD: Fast, Zero-Cost Data Assertions | Data Do","isPartOf":{"@id":"https:\/\/datascientists.info\/#website"},"primaryImageOfPage":{"@id":"https:\/\/datascientists.info\/index.php\/2026\/11\/19\/dbt-duckdb-ci-cd-data-testing\/#primaryimage"},"image":{"@id":"https:\/\/datascientists.info\/index.php\/2026\/11\/19\/dbt-duckdb-ci-cd-data-testing\/#primaryimage"},"thumbnailUrl":"https:\/\/datascientists.info\/wp-content\/uploads\/2026\/11\/image-7.png","datePublished":"2026-11-19T12:04:28+00:00","description":"Learn how to run fast, zero-warehouse-cost dbt test suites in GitLab CI using dbt-duckdb and local Parquet fixtures before deploying to production.","breadcrumb":{"@id":"https:\/\/datascientists.info\/index.php\/2026\/11\/19\/dbt-duckdb-ci-cd-data-testing\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/datascientists.info\/index.php\/2026\/11\/19\/dbt-duckdb-ci-cd-data-testing\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/datascientists.info\/index.php\/2026\/11\/19\/dbt-duckdb-ci-cd-data-testing\/#primaryimage","url":"https:\/\/datascientists.info\/wp-content\/uploads\/2026\/11\/image-7.png","contentUrl":"https:\/\/datascientists.info\/wp-content\/uploads\/2026\/11\/image-7.png","width":533,"height":816},{"@type":"BreadcrumbList","@id":"https:\/\/datascientists.info\/index.php\/2026\/11\/19\/dbt-duckdb-ci-cd-data-testing\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/datascientists.info\/"},{"@type":"ListItem","position":2,"name":"CI\/CD Data Testing with dbt and DuckDB: Pre-Flight Assertions for Analytics Pipelines"}]},{"@type":"WebSite","@id":"https:\/\/datascientists.info\/#website","url":"https:\/\/datascientists.info\/","name":"Data Scientists","description":"Digging data, Big Data, Analysis, Data Mining","publisher":{"@id":"https:\/\/datascientists.info\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/datascientists.info\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/datascientists.info\/#organization","name":"DATA DO - \u30c7\u30fc\u30bf \u9053","url":"https:\/\/datascientists.info\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/datascientists.info\/#\/schema\/logo\/image\/","url":"https:\/\/datascientists.info\/wp-content\/uploads\/2026\/02\/Bildschirmfoto-vom-2026-02-02-08-13-21.png","contentUrl":"https:\/\/datascientists.info\/wp-content\/uploads\/2026\/02\/Bildschirmfoto-vom-2026-02-02-08-13-21.png","width":250,"height":174,"caption":"DATA DO - \u30c7\u30fc\u30bf \u9053"},"image":{"@id":"https:\/\/datascientists.info\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataScientists\/"]},{"@type":"Person","@id":"https:\/\/datascientists.info\/#\/schema\/person\/723078870bf3135121086d46ebb12f19","name":"Marc Matt","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/74f48ef754cf04f628f42ed117a3f2b42931feeb41a3cca2313b9714a7d4fdd2?s=96&d=mm&r=g53b84b5f47a2156ba8b047d71d6d05fc","url":"https:\/\/secure.gravatar.com\/avatar\/74f48ef754cf04f628f42ed117a3f2b42931feeb41a3cca2313b9714a7d4fdd2?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/74f48ef754cf04f628f42ed117a3f2b42931feeb41a3cca2313b9714a7d4fdd2?s=96&d=mm&r=g","caption":"Marc Matt"},"description":"Senior Data Architect with 15+ years of experience helping Hamburg's leading enterprises modernize their data infrastructure. I bridge the gap between legacy systems (SAP, Hadoop) and modern AI capabilities. I help clients: Migrate &amp; Modernize: Transitioning on-premise data warehouses to Google Cloud\/AWS to reduce costs and increase agility. Implement GenAI: Building secure RAG (Retrieval-Augmented Generation) pipelines to unlock value from internal knowledge bases using LangChain and Vector DBs. Scale MLOps: Operationalizing machine learning models from PoC to production with Kubernetes and Airflow. Proven track record leading engineering teams.","sameAs":["https:\/\/data-do.de"]}]}},"authors":[{"term_id":144,"user_id":1,"is_guest":0,"slug":"marc","display_name":"Marc Matt","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/74f48ef754cf04f628f42ed117a3f2b42931feeb41a3cca2313b9714a7d4fdd2?s=96&d=mm&r=g","avatar_alt":"","avatar_decorative":"","author_category":"1","first_name":"Marc","last_name":"Matt","user_url":"https:\/\/data-do.de","job_title":"Senior Data Architect | GenAI & RAG Expert | GCP \/ AWS","description":"Senior Data Architect with 15+ years of experience helping Hamburg's leading enterprises modernize their data infrastructure. I bridge the gap between legacy systems (SAP, Hadoop) and modern AI capabilities.\r\n\r\nI help clients:\r\n\r\n \tMigrate &amp; Modernize: Transitioning on-premise data warehouses to Google Cloud\/AWS to reduce costs and increase agility.\r\n\r\n\r\n \tImplement GenAI: Building secure RAG (Retrieval-Augmented Generation) pipelines to unlock value from internal knowledge bases using LangChain and Vector DBs.\r\n \tScale MLOps: Operationalizing machine learning models from PoC to production with Kubernetes and Airflow.\r\n\r\nProven track record leading engineering teams."},{"term_id":145,"user_id":2,"is_guest":0,"slug":"saidah","display_name":"saidah","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/015737c94dd80772d772f2b24a55e96c868068f28684c8577d9492f3313e4dd3?s=96&d=mm&r=g","avatar_alt":"","avatar_decorative":"","author_category":"","first_name":"Saidah","last_name":"","user_url":"http:\/\/data-do.de","job_title":"","description":""}],"_links":{"self":[{"href":"https:\/\/datascientists.info\/index.php\/wp-json\/wp\/v2\/posts\/919","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/datascientists.info\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/datascientists.info\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/datascientists.info\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/datascientists.info\/index.php\/wp-json\/wp\/v2\/comments?post=919"}],"version-history":[{"count":2,"href":"https:\/\/datascientists.info\/index.php\/wp-json\/wp\/v2\/posts\/919\/revisions"}],"predecessor-version":[{"id":923,"href":"https:\/\/datascientists.info\/index.php\/wp-json\/wp\/v2\/posts\/919\/revisions\/923"}],"wp:attachment":[{"href":"https:\/\/datascientists.info\/index.php\/wp-json\/wp\/v2\/media?parent=919"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/datascientists.info\/index.php\/wp-json\/wp\/v2\/categories?post=919"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/datascientists.info\/index.php\/wp-json\/wp\/v2\/tags?post=919"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/datascientists.info\/index.php\/wp-json\/wp\/v2\/ppma_author?post=919"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}