{"title":"Redshift","description":"Add Amazon Redshift as an external catalog in Altertable for unified analytics. Query and analyze data across Redshift and other sources with federated queries.","order":120,"navigation":true,"body":{"code":"var Component=(()=>{var f=Object.create;var i=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var p=Object.getPrototypeOf,y=Object.prototype.hasOwnProperty;var w=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),x=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},a=(t,e,r,c)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let o of g(e))!y.call(t,o)&&o!==r&&i(t,o,{get:()=>e[o],enumerable:!(c=m(e,o))||c.enumerable});return t};var b=(t,e,r)=>(r=t!=null?f(p(t)):{},a(e||!t||!t.__esModule?i(r,\"default\",{value:t,enumerable:!0}):r,t)),R=t=>a(i({},\"__esModule\",{value:!0}),t);var l=w((C,h)=>{h.exports=_jsx_runtime});var _={};x(_,{default:()=>u,frontmatter:()=>S});var n=b(l()),S={title:\"Redshift\",description:\"Add Amazon Redshift as an external catalog in Altertable for unified analytics. Query and analyze data across Redshift and other sources with federated queries.\",order:120};function d(t){let e={a:\"a\",code:\"code\",h1:\"h1\",h2:\"h2\",li:\"li\",ol:\"ol\",p:\"p\",pre:\"pre\",strong:\"strong\",ul:\"ul\",...t.components},{DocsPreviewDocument:r,DocsPreviewSection:c,Screenshot:o}=e;return r||s(\"DocsPreviewDocument\",!0),c||s(\"DocsPreviewSection\",!0),o||s(\"Screenshot\",!0),(0,n.jsxs)(r,{anchors:\"redshift connect-the-catalog verify-the-connection\",children:[(0,n.jsxs)(c,{sectionId:\"redshift\",anchors:\"\",ancestors:\"\",index:\"0\",children:[(0,n.jsx)(e.h1,{id:\"redshift\",children:\"Redshift\"}),`\n`,(0,n.jsx)(e.p,{children:\"Add your Redshift warehouse as an external catalog in Altertable to query and analyze it alongside your other data sources.\"}),`\n`,(0,n.jsxs)(e.p,{children:[\"Before connecting, make sure Altertable can reach your source. Configure \",(0,n.jsx)(e.a,{href:\"/docs/administration/network\",children:\"network access\"}),\" if it requires an IP allowlist or SSH tunnel. Use credentials for the source database, rather than Altertable lakehouse credentials.\"]}),`\n`]}),(0,n.jsxs)(c,{sectionId:\"connect-the-catalog\",anchors:\"\",ancestors:\"\",index:\"1\",children:[(0,n.jsx)(e.h2,{id:\"connect-the-catalog\",children:\"Connect the catalog\"}),`\n`,(0,n.jsxs)(e.ol,{children:[`\n`,(0,n.jsxs)(e.li,{children:[\"Open \",(0,n.jsx)(e.strong,{children:\"Catalogs\"}),\" and choose \",(0,n.jsx)(e.strong,{children:\"New catalog\"}),\".\"]}),`\n`,(0,n.jsxs)(e.li,{children:[\"Select \",(0,n.jsx)(e.strong,{children:\"Redshift\"}),\" as the engine.\"]}),`\n`,(0,n.jsxs)(e.li,{children:[\"Fill in the connection details:\",`\n`,(0,n.jsxs)(e.ul,{children:[`\n`,(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.strong,{children:\"Host\"}),\": The hostname or IP address of your Redshift server\"]}),`\n`,(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.strong,{children:\"Port\"}),\": The port number (default: 5439)\"]}),`\n`,(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.strong,{children:\"Database\"}),\": The name of the database to connect to\"]}),`\n`,(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.strong,{children:\"Schema\"}),\" (optional): The name of the schema to connect to\"]}),`\n`,(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.strong,{children:\"Username\"}),\": Your Redshift username\"]}),`\n`,(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.strong,{children:\"Password\"}),\": Your Redshift password\"]}),`\n`]}),`\n`]}),`\n`,(0,n.jsxs)(e.li,{children:[\"Choose \",(0,n.jsx)(e.strong,{children:\"Connect\"}),\" to create the catalog.\"]}),`\n`]}),`\n`,(0,n.jsx)(o,{story:\"components-connectionform--redshift-empty\",caption:\"New Redshift connection form\",width:\"1408\",height:\"2028\"}),`\n`]}),(0,n.jsxs)(c,{sectionId:\"verify-the-connection\",anchors:\"\",ancestors:\"\",index:\"2\",children:[(0,n.jsx)(e.h2,{id:\"verify-the-connection\",children:\"Verify the connection\"}),`\n`,(0,n.jsxs)(e.p,{children:[\"Open \",(0,n.jsx)(e.a,{href:\"/docs/lakehouse/query/sql-explorer\",children:\"SQL Explorer\"}),\" and inspect the new catalog's schemas and tables. Replace the example identifiers with names from your source:\"]}),`\n`,(0,n.jsx)(e.pre,{children:(0,n.jsx)(e.code,{className:\"language-sql\",children:`SELECT * FROM my_source.my_schema.my_table LIMIT 10;\n`})}),`\n`,(0,n.jsxs)(e.p,{children:[\"Compare the returned rows with the source. You can then \",(0,n.jsx)(e.a,{href:\"/docs/lakehouse/sql-engine#federated-queries\",children:\"join tables across catalogs\"}),\".\"]})]})]})}function u(t={}){let{wrapper:e}=t.components||{};return e?(0,n.jsx)(e,{...t,children:(0,n.jsx)(d,{...t})}):d(t)}function s(t,e){throw new Error(\"Expected \"+(e?\"component\":\"object\")+\" `\"+t+\"` to be defined: you likely forgot to import, pass, or provide it.\")}return R(_);})();\n;return Component;"},"_id":"docs/lakehouse/external-catalogs/redshift.mdx","_raw":{"sourceFilePath":"docs/lakehouse/external-catalogs/redshift.mdx","sourceFileName":"redshift.mdx","sourceFileDir":"docs/lakehouse/external-catalogs","contentType":"mdx","flattenedPath":"docs/lakehouse/external-catalogs/redshift"},"type":"Docs","path":"/lakehouse/external-catalogs/redshift","level":3,"parent":"lakehouse/external-catalogs"}