{"title":"Metabase","description":"Connect Metabase to Altertable with Arrow Flight SQL or the Postgres adapter to query governed lakehouse data in BI dashboards.","order":930,"askSuggestions":["Should I connect Metabase with Flight SQL or Postgres?","How do I install the Flight SQL driver for Metabase?"],"navigation":true,"body":{"code":"var Component=(()=>{var g=Object.create;var a=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var p=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty;var w=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),S=(t,e)=>{for(var r in e)a(t,r,{get:e[r],enumerable:!0})},s=(t,e,r,o)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let i of b(e))!f.call(t,i)&&i!==r&&a(t,i,{get:()=>e[i],enumerable:!(o=m(e,i))||o.enumerable});return t};var v=(t,e,r)=>(r=t!=null?g(p(t)):{},s(e||!t||!t.__esModule?a(r,\"default\",{value:t,enumerable:!0}):r,t)),F=t=>s(a({},\"__esModule\",{value:!0}),t);var c=w((x,d)=>{d.exports=_jsx_runtime});var M={};S(M,{default:()=>u,frontmatter:()=>A});var n=v(c()),A={title:\"Metabase\",description:\"Connect Metabase to Altertable with Arrow Flight SQL or the Postgres adapter to query governed lakehouse data in BI dashboards.\",order:930,askSuggestions:[\"Should I connect Metabase with Flight SQL or Postgres?\",\"How do I install the Flight SQL driver for Metabase?\"]};function h(t){let e={a:\"a\",h1:\"h1\",h2:\"h2\",h3:\"h3\",h4:\"h4\",li:\"li\",ol:\"ol\",p:\"p\",strong:\"strong\",ul:\"ul\",...t.components},{DocsPreviewDocument:r,DocsPreviewSection:o,DocsTable:i}=e;return r||l(\"DocsPreviewDocument\",!0),o||l(\"DocsPreviewSection\",!0),i||l(\"DocsTable\",!0),(0,n.jsxs)(r,{anchors:\"metabase connection-methods method-1-arrow-flight-sql-recommended installation configuration method-2-postgres-adapter-alternative configuration-1 notes\",children:[(0,n.jsxs)(o,{sectionId:\"metabase\",anchors:\"\",ancestors:\"\",index:\"0\",children:[(0,n.jsx)(e.h1,{id:\"metabase\",children:\"Metabase\"}),`\n`,(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.a,{href:\"https://www.metabase.com/\",children:\"Metabase\"}),\" is an open source business intelligence tool for visualizing and exploring data.\"]}),`\n`]}),(0,n.jsxs)(o,{sectionId:\"connection-methods\",anchors:\"\",ancestors:\"\",index:\"1\",children:[(0,n.jsx)(e.h2,{id:\"connection-methods\",children:\"Connection Methods\"}),`\n`,(0,n.jsx)(e.p,{children:\"You can connect Metabase to Altertable using two methods:\"}),`\n`]}),(0,n.jsxs)(o,{sectionId:\"method-1-arrow-flight-sql-recommended\",anchors:\"\",ancestors:\"connection-methods\",index:\"2\",children:[(0,n.jsx)(e.h3,{id:\"method-1-arrow-flight-sql-recommended\",children:\"Method 1: Arrow Flight SQL (Recommended)\"}),`\n`,(0,n.jsx)(e.p,{children:\"Arrow Flight SQL is the preferred connection method for Altertable because it provides native columnar transport. Metabase does not support Arrow Flight SQL by default, so you need a community driver.\"}),`\n`]}),(0,n.jsxs)(o,{sectionId:\"installation\",anchors:\"\",ancestors:\"connection-methods method-1-arrow-flight-sql-recommended\",index:\"3\",children:[(0,n.jsx)(e.h4,{id:\"installation\",children:\"Installation\"}),`\n`,(0,n.jsxs)(e.p,{children:[\"Install the \",(0,n.jsx)(e.a,{href:\"https://github.com/J0hnG4lt/metabase-flightsql-driver\",children:\"metabase-flightsql-driver\"}),\" to add Arrow Flight SQL support to Metabase:\"]}),`\n`,(0,n.jsxs)(e.ol,{children:[`\n`,(0,n.jsx)(e.li,{children:\"Download the driver JAR file from the GitHub repository\"}),`\n`,(0,n.jsx)(e.li,{children:\"Place it in your Metabase plugins directory\"}),`\n`,(0,n.jsx)(e.li,{children:\"Restart Metabase\"}),`\n`]}),`\n`]}),(0,n.jsxs)(o,{sectionId:\"configuration\",anchors:\"\",ancestors:\"connection-methods method-1-arrow-flight-sql-recommended\",index:\"4\",children:[(0,n.jsx)(e.h4,{id:\"configuration\",children:\"Configuration\"}),`\n`,(0,n.jsxs)(e.ol,{children:[`\n`,(0,n.jsxs)(e.li,{children:[\"In Metabase, navigate to \",(0,n.jsx)(e.strong,{children:\"Admin settings\"}),\" \\u2192 \",(0,n.jsx)(e.strong,{children:\"Databases\"})]}),`\n`,(0,n.jsxs)(e.li,{children:[\"Click \",(0,n.jsx)(e.strong,{children:\"Add database\"})]}),`\n`,(0,n.jsxs)(e.li,{children:[\"Select \",(0,n.jsx)(e.strong,{children:\"Arrow Flight SQL\"}),\" as the database type\"]}),`\n`,(0,n.jsx)(e.li,{children:\"Configure the connection with the following details:\"}),`\n`]}),`\n`,(0,n.jsx)(i,{columns:[\"Field\",\"Value\"],data:[{Field:\"Display name\",Value:\"`Altertable` (or your preferred name)\"},{Field:\"Host\",Value:\"`flight.altertable.ai`\"},{Field:\"Port\",Value:\"`443`\"},{Field:\"Database name\",Value:\"Your Altertable catalog name\"},{Field:\"Username\",Value:\"Your lakehouse username\"},{Field:\"Password\",Value:\"Your lakehouse password\"},{Field:\"Use TLS/SSL\",Value:\"\\u2713 **Enabled**\"}]}),`\n`,(0,n.jsxs)(e.ol,{start:\"5\",children:[`\n`,(0,n.jsxs)(e.li,{children:[\"Click \",(0,n.jsx)(e.strong,{children:\"Save\"})]}),`\n`]}),`\n`]}),(0,n.jsxs)(o,{sectionId:\"method-2-postgres-adapter-alternative\",anchors:\"\",ancestors:\"connection-methods\",index:\"5\",children:[(0,n.jsx)(e.h3,{id:\"method-2-postgres-adapter-alternative\",children:\"Method 2: Postgres Adapter (Alternative)\"}),`\n`,(0,n.jsxs)(e.p,{children:[\"If you prefer not to install the Arrow Flight SQL driver, you can connect Metabase to Altertable through our \",(0,n.jsx)(e.a,{href:\"/docs/lakehouse/clients/postgres\",children:\"Postgres adapter\"}),\", which works with Metabase's built-in PostgreSQL database support.\"]}),`\n`]}),(0,n.jsxs)(o,{sectionId:\"configuration-1\",anchors:\"\",ancestors:\"connection-methods method-2-postgres-adapter-alternative\",index:\"6\",children:[(0,n.jsx)(e.h4,{id:\"configuration-1\",children:\"Configuration\"}),`\n`,(0,n.jsxs)(e.ol,{children:[`\n`,(0,n.jsxs)(e.li,{children:[\"In Metabase, navigate to \",(0,n.jsx)(e.strong,{children:\"Admin settings\"}),\" \\u2192 \",(0,n.jsx)(e.strong,{children:\"Databases\"})]}),`\n`,(0,n.jsxs)(e.li,{children:[\"Click \",(0,n.jsx)(e.strong,{children:\"Add database\"})]}),`\n`,(0,n.jsxs)(e.li,{children:[\"Select \",(0,n.jsx)(e.strong,{children:\"PostgreSQL\"}),\" as the database type\"]}),`\n`,(0,n.jsx)(e.li,{children:\"Configure the connection with the following details:\"}),`\n`]}),`\n`,(0,n.jsx)(i,{columns:[\"Field\",\"Value\"],data:[{Field:\"Display name\",Value:\"`Altertable` (or your preferred name)\"},{Field:\"Host\",Value:\"`postgres.altertable.ai`\"},{Field:\"Port\",Value:\"`443`\"},{Field:\"Database name\",Value:\"Your Altertable catalog name\"},{Field:\"Username\",Value:\"Your lakehouse username\"},{Field:\"Password\",Value:\"Your lakehouse password\"},{Field:\"Use a secure connection (SSL)\",Value:\"\\u2713 **Enabled**\"}]}),`\n`,(0,n.jsxs)(e.ol,{start:\"5\",children:[`\n`,(0,n.jsxs)(e.li,{children:[\"Click \",(0,n.jsx)(e.strong,{children:\"Save\"})]}),`\n`]}),`\n`]}),(0,n.jsxs)(o,{sectionId:\"notes\",anchors:\"\",ancestors:\"connection-methods\",index:\"7\",children:[(0,n.jsx)(e.h3,{id:\"notes\",children:\"Notes\"}),`\n`,(0,n.jsxs)(e.ul,{children:[`\n`,(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.strong,{children:\"SQL Dialect\"}),\": While the connection uses the Postgres protocol, queries are executed using \",(0,n.jsx)(e.strong,{children:\"DuckDB SQL dialect\"}),\". PostgreSQL-specific functions may not be available.\"]}),`\n`,(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.strong,{children:\"SSL/TLS Required\"}),\": Make sure to enable SSL/TLS in the connection settings\"]}),`\n`,(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.strong,{children:\"Catalog Name\"}),\": Enter your Altertable catalog name in the \",(0,n.jsx)(e.strong,{children:\"Database name\"}),\" field\"]}),`\n`]})]})]})}function u(t={}){let{wrapper:e}=t.components||{};return e?(0,n.jsx)(e,{...t,children:(0,n.jsx)(h,{...t})}):h(t)}function l(t,e){throw new Error(\"Expected \"+(e?\"component\":\"object\")+\" `\"+t+\"` to be defined: you likely forgot to import, pass, or provide it.\")}return F(M);})();\n;return Component;"},"_id":"docs/lakehouse/clients/metabase.mdx","_raw":{"sourceFilePath":"docs/lakehouse/clients/metabase.mdx","sourceFileName":"metabase.mdx","sourceFileDir":"docs/lakehouse/clients","contentType":"mdx","flattenedPath":"docs/lakehouse/clients/metabase"},"type":"Docs","path":"/lakehouse/clients/metabase","level":3,"parent":"lakehouse/clients"}