{"title":"Model and transform data","description":"Organize lakehouse transformations with SQL, dbt, and medallion architecture, and connect project metadata to your agents as business context.","order":500,"navigation":true,"routeId":"guides","body":{"code":"var Component=(()=>{var h=Object.create;var a=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var x=Object.getPrototypeOf,g=Object.prototype.hasOwnProperty;var b=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),w=(t,e)=>{for(var n in e)a(t,n,{get:e[n],enumerable:!0})},i=(t,e,n,s)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let r of p(e))!g.call(t,r)&&r!==n&&a(t,r,{get:()=>e[r],enumerable:!(s=f(e,r))||s.enumerable});return t};var D=(t,e,n)=>(n=t!=null?h(x(t)):{},i(e||!t||!t.__esModule?a(n,\"default\",{value:t,enumerable:!0}):n,t)),v=t=>i(a({},\"__esModule\",{value:!0}),t);var l=b((_,c)=>{c.exports=_jsx_runtime});var k={};w(k,{default:()=>u,frontmatter:()=>j});var o=D(l()),j={title:\"Model and transform data\",routeId:\"guides\",description:\"Organize lakehouse transformations with SQL, dbt, and medallion architecture, and connect project metadata to your agents as business context.\",order:500};function m(t){let e={a:\"a\",h1:\"h1\",p:\"p\",...t.components},{DocsPreviewDocument:n,DocsPreviewSection:s,DocsSectionCards:r}=e;return n||d(\"DocsPreviewDocument\",!0),s||d(\"DocsPreviewSection\",!0),r||d(\"DocsSectionCards\",!0),(0,o.jsx)(n,{anchors:\"model-and-transform-data\",children:(0,o.jsxs)(s,{sectionId:\"model-and-transform-data\",anchors:\"\",ancestors:\"\",index:\"0\",children:[(0,o.jsx)(e.h1,{id:\"model-and-transform-data\",children:\"Model and transform data\"}),`\n`,(0,o.jsxs)(e.p,{children:[\"Use \",(0,o.jsx)(e.a,{href:\"/docs/lakehouse/features\",children:\"views and macros\"}),\" to reuse SQL logic. Use \",(0,o.jsx)(e.a,{href:\"/docs/lakehouse/modeling/dbt\",children:\"dbt\"}),\" to run versioned models and tests against Altertable.\"]}),`\n`,(0,o.jsxs)(e.p,{children:[\"Connecting a dbt repository as \",(0,o.jsx)(e.a,{href:\"/docs/agents/knowledge\",children:\"business context\"}),\" makes definitions and metadata available to agents. Repository sync does not execute the models.\"]}),`\n`,(0,o.jsx)(r,{path:\"lakehouse/modeling\"})]})})}function u(t={}){let{wrapper:e}=t.components||{};return e?(0,o.jsx)(e,{...t,children:(0,o.jsx)(m,{...t})}):m(t)}function d(t,e){throw new Error(\"Expected \"+(e?\"component\":\"object\")+\" `\"+t+\"` to be defined: you likely forgot to import, pass, or provide it.\")}return v(k);})();\n;return Component;"},"_id":"docs/lakehouse/modeling/index.mdx","_raw":{"sourceFilePath":"docs/lakehouse/modeling/index.mdx","sourceFileName":"index.mdx","sourceFileDir":"docs/lakehouse/modeling","contentType":"mdx","flattenedPath":"docs/lakehouse/modeling"},"type":"Docs","path":"/lakehouse/modeling","level":3,"parent":"lakehouse/modeling"}