{"title":"Metabase","description":"Connect Metabase to Altertable with Arrow Flight SQL or the Postgres adapter to query governed lakehouse data in BI dashboards.","order":200,"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=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports),S=(n,e)=>{for(var i in e)a(n,i,{get:e[i],enumerable:!0})},s=(n,e,i,o)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let r of b(e))!f.call(n,r)&&r!==i&&a(n,r,{get:()=>e[r],enumerable:!(o=m(e,r))||o.enumerable});return n};var M=(n,e,i)=>(i=n!=null?g(p(n)):{},s(e||!n||!n.__esModule?a(i,\"default\",{value:n,enumerable:!0}):i,n)),v=n=>s(a({},\"__esModule\",{value:!0}),n);var c=w((x,d)=>{d.exports=_jsx_runtime});var F={};S(F,{default:()=>u,frontmatter:()=>A});var t=M(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:200,askSuggestions:[\"Should I connect Metabase with Flight SQL or Postgres?\",\"How do I install the Flight SQL driver for Metabase?\"]};function h(n){let e={a:\"a\",h1:\"h1\",h2:\"h2\",h3:\"h3\",h4:\"h4\",li:\"li\",ol:\"ol\",p:\"p\",strong:\"strong\",ul:\"ul\",...n.components},{DocsPreviewDocument:i,DocsPreviewSection:o,DocsTable:r}=e;return i||l(\"DocsPreviewDocument\",!0),o||l(\"DocsPreviewSection\",!0),r||l(\"DocsTable\",!0),(0,t.jsxs)(i,{anchors:\"metabase connection-methods method-1-arrow-flight-sql-recommended installation configuration method-2-postgres-adapter-alternative configuration-1 notes\",children:[(0,t.jsxs)(o,{sectionId:\"metabase\",sectionTitle:\"Metabase\",anchors:\"\",ancestors:\"\",index:\"0\",children:[(0,t.jsx)(e.h1,{id:\"metabase\",children:\"Metabase\"}),`\n`,(0,t.jsxs)(e.p,{children:[(0,t.jsx)(e.a,{href:\"https://www.metabase.com/\",children:\"Metabase\"}),\" is an open source business intelligence tool for visualizing and exploring data.\"]}),`\n`]}),(0,t.jsxs)(o,{sectionId:\"connection-methods\",sectionTitle:\"Connection Methods\",anchors:\"\",ancestors:\"\",index:\"1\",children:[(0,t.jsx)(e.h2,{id:\"connection-methods\",children:\"Connection Methods\"}),`\n`,(0,t.jsx)(e.p,{children:\"You can connect Metabase to Altertable using two methods:\"}),`\n`]}),(0,t.jsxs)(o,{sectionId:\"method-1-arrow-flight-sql-recommended\",sectionTitle:\"Method 1: Arrow Flight SQL (Recommended)\",anchors:\"\",ancestors:\"connection-methods\",index:\"2\",children:[(0,t.jsx)(e.h3,{id:\"method-1-arrow-flight-sql-recommended\",children:\"Method 1: Arrow Flight SQL (Recommended)\"}),`\n`,(0,t.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,t.jsxs)(o,{sectionId:\"installation\",sectionTitle:\"Installation\",anchors:\"\",ancestors:\"connection-methods method-1-arrow-flight-sql-recommended\",index:\"3\",children:[(0,t.jsx)(e.h4,{id:\"installation\",children:\"Installation\"}),`\n`,(0,t.jsxs)(e.p,{children:[\"Install the \",(0,t.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,t.jsxs)(e.ol,{children:[`\n`,(0,t.jsx)(e.li,{children:\"Download the driver JAR file from the GitHub repository\"}),`\n`,(0,t.jsx)(e.li,{children:\"Place it in your Metabase plugins directory\"}),`\n`,(0,t.jsx)(e.li,{children:\"Restart Metabase\"}),`\n`]}),`\n`]}),(0,t.jsxs)(o,{sectionId:\"configuration\",sectionTitle:\"Configuration\",anchors:\"\",ancestors:\"connection-methods method-1-arrow-flight-sql-recommended\",index:\"4\",children:[(0,t.jsx)(e.h4,{id:\"configuration\",children:\"Configuration\"}),`\n`,(0,t.jsxs)(e.ol,{children:[`\n`,(0,t.jsxs)(e.li,{children:[\"In Metabase, navigate to \",(0,t.jsx)(e.strong,{children:\"Admin settings\"}),\" \\u2192 \",(0,t.jsx)(e.strong,{children:\"Databases\"})]}),`\n`,(0,t.jsxs)(e.li,{children:[\"Click \",(0,t.jsx)(e.strong,{children:\"Add database\"})]}),`\n`,(0,t.jsxs)(e.li,{children:[\"Select \",(0,t.jsx)(e.strong,{children:\"Arrow Flight SQL\"}),\" as the database type\"]}),`\n`,(0,t.jsx)(e.li,{children:\"Configure the connection with the following details:\"}),`\n`]}),`\n`,(0,t.jsx)(r,{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,t.jsxs)(e.ol,{start:\"5\",children:[`\n`,(0,t.jsxs)(e.li,{children:[\"Click \",(0,t.jsx)(e.strong,{children:\"Save\"})]}),`\n`]}),`\n`]}),(0,t.jsxs)(o,{sectionId:\"method-2-postgres-adapter-alternative\",sectionTitle:\"Method 2: Postgres Adapter (Alternative)\",anchors:\"\",ancestors:\"connection-methods\",index:\"5\",children:[(0,t.jsx)(e.h3,{id:\"method-2-postgres-adapter-alternative\",children:\"Method 2: Postgres Adapter (Alternative)\"}),`\n`,(0,t.jsxs)(e.p,{children:[\"If you prefer not to install the Arrow Flight SQL driver, you can connect Metabase to Altertable through our \",(0,t.jsx)(e.a,{href:\"/docs/lakehouse/query/postgres\",children:\"Postgres adapter\"}),\", which works with Metabase's built-in PostgreSQL database support.\"]}),`\n`]}),(0,t.jsxs)(o,{sectionId:\"configuration-1\",sectionTitle:\"Configuration\",anchors:\"\",ancestors:\"connection-methods method-2-postgres-adapter-alternative\",index:\"6\",children:[(0,t.jsx)(e.h4,{id:\"configuration-1\",children:\"Configuration\"}),`\n`,(0,t.jsxs)(e.ol,{children:[`\n`,(0,t.jsxs)(e.li,{children:[\"In Metabase, navigate to \",(0,t.jsx)(e.strong,{children:\"Admin settings\"}),\" \\u2192 \",(0,t.jsx)(e.strong,{children:\"Databases\"})]}),`\n`,(0,t.jsxs)(e.li,{children:[\"Click \",(0,t.jsx)(e.strong,{children:\"Add database\"})]}),`\n`,(0,t.jsxs)(e.li,{children:[\"Select \",(0,t.jsx)(e.strong,{children:\"PostgreSQL\"}),\" as the database type\"]}),`\n`,(0,t.jsx)(e.li,{children:\"Configure the connection with the following details:\"}),`\n`]}),`\n`,(0,t.jsx)(r,{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,t.jsxs)(e.ol,{start:\"5\",children:[`\n`,(0,t.jsxs)(e.li,{children:[\"Click \",(0,t.jsx)(e.strong,{children:\"Save\"})]}),`\n`]}),`\n`]}),(0,t.jsxs)(o,{sectionId:\"notes\",sectionTitle:\"Notes\",anchors:\"\",ancestors:\"connection-methods\",index:\"7\",children:[(0,t.jsx)(e.h3,{id:\"notes\",children:\"Notes\"}),`\n`,(0,t.jsxs)(e.ul,{children:[`\n`,(0,t.jsxs)(e.li,{children:[(0,t.jsx)(e.strong,{children:\"SQL dialect\"}),\" \\u2014 When using the PostgreSQL connection, write native SQL queries in PostgreSQL syntax. The adapter translates them for execution in the lakehouse.\"]}),`\n`,(0,t.jsxs)(e.li,{children:[(0,t.jsx)(e.strong,{children:\"SSL/TLS Required\"}),\": Make sure to enable SSL/TLS in the connection settings\"]}),`\n`,(0,t.jsxs)(e.li,{children:[(0,t.jsx)(e.strong,{children:\"Catalog Name\"}),\": Enter your Altertable catalog name in the \",(0,t.jsx)(e.strong,{children:\"Database name\"}),\" field\"]}),`\n`]})]})]})}function u(n={}){let{wrapper:e}=n.components||{};return e?(0,t.jsx)(e,{...n,children:(0,t.jsx)(h,{...n})}):h(n)}function l(n,e){throw new Error(\"Expected \"+(e?\"component\":\"object\")+\" `\"+n+\"` to be defined: you likely forgot to import, pass, or provide it.\")}return v(F);})();\n;return Component;"},"_id":"docs/integrations/metabase.mdx","_raw":{"sourceFilePath":"docs/integrations/metabase.mdx","sourceFileName":"metabase.mdx","sourceFileDir":"docs/integrations","contentType":"mdx","flattenedPath":"docs/integrations/metabase"},"type":"Docs","path":"/integrations/metabase","level":2,"parent":"integrations"}