{"title":"Iceberg Tables","description":"Map existing Iceberg tables in connected object storage to external tables in Altertable for unified lakehouse queries.","order":300,"askSuggestions":["What path should I map for each Iceberg table?","Why can't Altertable find my mapped Iceberg table?"],"navigation":true,"body":{"code":"var Component=(()=>{var g=Object.create;var i=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var m=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty;var I=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports),x=(n,e)=>{for(var a in e)i(n,a,{get:e[a],enumerable:!0})},l=(n,e,a,r)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let c of u(e))!f.call(n,c)&&c!==a&&i(n,c,{get:()=>e[c],enumerable:!(r=p(e,c))||r.enumerable});return n};var T=(n,e,a)=>(a=n!=null?g(m(n)):{},l(e||!n||!n.__esModule?i(a,\"default\",{value:n,enumerable:!0}):a,n)),w=n=>l(i({},\"__esModule\",{value:!0}),n);var h=I((A,o)=>{o.exports=_jsx_runtime});var y={};x(y,{default:()=>d,frontmatter:()=>k});var t=T(h()),k={title:\"Iceberg Tables\",description:\"Map existing Iceberg tables in connected object storage to external tables in Altertable for unified lakehouse queries.\",order:300,askSuggestions:[\"What path should I map for each Iceberg table?\",\"Why can't Altertable find my mapped Iceberg table?\"]};function b(n){let e={a:\"a\",code:\"code\",h1:\"h1\",h2:\"h2\",li:\"li\",ol:\"ol\",p:\"p\",strong:\"strong\",ul:\"ul\",...n.components},{DocsPreviewDocument:a,DocsPreviewSection:r,DocsTable:c}=e;return a||s(\"DocsPreviewDocument\",!0),r||s(\"DocsPreviewSection\",!0),c||s(\"DocsTable\",!0),(0,t.jsxs)(a,{anchors:\"iceberg-tables when-to-use-iceberg-tables connect-iceberg-tables table-mappings\",children:[(0,t.jsxs)(r,{sectionId:\"iceberg-tables\",sectionTitle:\"Iceberg Tables\",anchors:\"\",ancestors:\"\",index:\"0\",children:[(0,t.jsx)(e.h1,{id:\"iceberg-tables\",children:\"Iceberg Tables\"}),`\n`,(0,t.jsxs)(e.p,{children:[\"Iceberg Tables expose existing Apache Iceberg datasets from a connected \",(0,t.jsx)(e.a,{href:\"/docs/lakehouse/storage/buckets\",children:\"bucket\"}),\". Use them when another system already owns the Iceberg table metadata and data files, and Altertable should query those tables without copying them.\"]}),`\n`,(0,t.jsx)(e.p,{children:\"Each mapping gives Altertable a logical table name and the Iceberg table path in the bucket. Altertable reads the Iceberg metadata to resolve snapshots, manifests, and data files.\"}),`\n`]}),(0,t.jsxs)(r,{sectionId:\"when-to-use-iceberg-tables\",sectionTitle:\"When to use Iceberg Tables\",anchors:\"\",ancestors:\"\",index:\"1\",children:[(0,t.jsx)(e.h2,{id:\"when-to-use-iceberg-tables\",children:\"When to use Iceberg Tables\"}),`\n`,(0,t.jsx)(e.p,{children:\"Use Iceberg Tables when:\"}),`\n`,(0,t.jsxs)(e.ul,{children:[`\n`,(0,t.jsx)(e.li,{children:\"The dataset is already stored as Apache Iceberg in object storage.\"}),`\n`,(0,t.jsx)(e.li,{children:\"You know the bucket and path for each table you want to expose.\"}),`\n`,(0,t.jsx)(e.li,{children:\"Another engine or pipeline remains responsible for writing the Iceberg tables.\"}),`\n`]}),`\n`,(0,t.jsxs)(e.p,{children:[\"Use \",(0,t.jsx)(e.a,{href:\"/docs/lakehouse/external-catalogs/bucket-tables\",children:\"Bucket Tables\"}),\" for plain Parquet, CSV, or JSON files that are not managed by Iceberg metadata.\"]}),`\n`]}),(0,t.jsxs)(r,{sectionId:\"connect-iceberg-tables\",sectionTitle:\"Connect Iceberg Tables\",anchors:\"\",ancestors:\"\",index:\"2\",children:[(0,t.jsx)(e.h2,{id:\"connect-iceberg-tables\",children:\"Connect Iceberg Tables\"}),`\n`,(0,t.jsxs)(e.ol,{children:[`\n`,(0,t.jsxs)(e.li,{children:[\"Open \",(0,t.jsx)(e.strong,{children:\"Catalogs\"}),\" in the Altertable app.\"]}),`\n`,(0,t.jsxs)(e.li,{children:[\"Click \",(0,t.jsx)(e.strong,{children:\"New catalog\"}),\".\"]}),`\n`,(0,t.jsxs)(e.li,{children:[\"Select \",(0,t.jsx)(e.strong,{children:\"Iceberg Tables\"}),\".\"]}),`\n`,(0,t.jsx)(e.li,{children:\"Choose the connected bucket that stores the Iceberg datasets.\"}),`\n`,(0,t.jsx)(e.li,{children:\"Add one or more table mappings with a table name and Iceberg table path.\"}),`\n`,(0,t.jsx)(e.li,{children:\"Save the catalog, then query the mapped tables with SQL.\"}),`\n`]}),`\n`]}),(0,t.jsxs)(r,{sectionId:\"table-mappings\",sectionTitle:\"Table mappings\",anchors:\"\",ancestors:\"\",index:\"3\",children:[(0,t.jsx)(e.h2,{id:\"table-mappings\",children:\"Table mappings\"}),`\n`,(0,t.jsx)(c,{columns:[\"Field\",\"Description\",\"Example\"],data:[{Field:\"Table name\",Description:\"The table name exposed in Altertable\",Example:\"`orders`\"},{Field:\"Path\",Description:\"The Iceberg table root or metadata path in the bucket\",Example:\"`warehouse/orders/`\"}]}),`\n`,(0,t.jsxs)(e.p,{children:[\"After the catalog is connected, query tables with fully qualified names such as \",(0,t.jsx)(e.code,{children:\"iceberg_external.main.orders\"}),\".\"]})]})]})}function d(n={}){let{wrapper:e}=n.components||{};return e?(0,t.jsx)(e,{...n,children:(0,t.jsx)(b,{...n})}):b(n)}function s(n,e){throw new Error(\"Expected \"+(e?\"component\":\"object\")+\" `\"+n+\"` to be defined: you likely forgot to import, pass, or provide it.\")}return w(y);})();\n;return Component;"},"_id":"docs/lakehouse/external-catalogs/iceberg-tables.mdx","_raw":{"sourceFilePath":"docs/lakehouse/external-catalogs/iceberg-tables.mdx","sourceFileName":"iceberg-tables.mdx","sourceFileDir":"docs/lakehouse/external-catalogs","contentType":"mdx","flattenedPath":"docs/lakehouse/external-catalogs/iceberg-tables"},"type":"Docs","path":"/lakehouse/external-catalogs/iceberg-tables","level":3,"parent":"lakehouse/external-catalogs"}