{"title":"Connect an existing source","description":"Connect a database, warehouse, or object-storage catalog to Altertable, inspect its tables, and verify a query without copying data into managed tables.","order":200,"askSuggestions":["How do I connect a database that isn't publicly reachable?","Should I query S3 files in place or sync them into tables?"],"navigation":true,"routeId":"gettingStartedConnectData","body":{"code":"var Component=(()=>{var p=Object.create;var s=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var b=Object.getPrototypeOf,y=Object.prototype.hasOwnProperty;var x=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports),w=(n,e)=>{for(var o in e)s(n,o,{get:e[o],enumerable:!0})},d=(n,e,o,a)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let r of f(e))!y.call(n,r)&&r!==o&&s(n,r,{get:()=>e[r],enumerable:!(a=m(e,r))||a.enumerable});return n};var D=(n,e,o)=>(o=n!=null?p(b(n)):{},d(e||!n||!n.__esModule?s(o,\"default\",{value:n,enumerable:!0}):o,n)),I=n=>d(s({},\"__esModule\",{value:!0}),n);var l=x((k,h)=>{h.exports=_jsx_runtime});var C={};w(C,{default:()=>g,frontmatter:()=>v});var t=D(l()),v={title:\"Connect an existing source\",routeId:\"gettingStartedConnectData\",description:\"Connect a database, warehouse, or object-storage catalog to Altertable, inspect its tables, and verify a query without copying data into managed tables.\",order:200,askSuggestions:[\"How do I connect a database that isn't publicly reachable?\",\"Should I query S3 files in place or sync them into tables?\"]};function u(n){let e={a:\"a\",code:\"code\",h1:\"h1\",h2:\"h2\",p:\"p\",pre:\"pre\",strong:\"strong\",...n.components},{DocsPreviewDocument:o,DocsPreviewSection:a,DocsPrompt:r,DocsPrompts:i}=e;return o||c(\"DocsPreviewDocument\",!0),a||c(\"DocsPreviewSection\",!0),r||c(\"DocsPrompt\",!0),i||c(\"DocsPrompts\",!0),(0,t.jsxs)(o,{anchors:\"connect-an-existing-source 1-choose-the-source 2-inspect-a-table 3-verify-the-result do-this-with-your-agent\",children:[(0,t.jsxs)(a,{sectionId:\"connect-an-existing-source\",anchors:\"\",ancestors:\"\",index:\"0\",children:[(0,t.jsx)(e.h1,{id:\"connect-an-existing-source\",children:\"Connect an existing source\"}),`\n`,(0,t.jsx)(e.p,{children:\"Make an existing database, warehouse, or object-storage dataset queryable in Altertable. An external catalog reads data from its source without importing it into managed tables.\"}),`\n`,(0,t.jsxs)(e.p,{children:[\"You need connection credentials and permission to add a catalog. If the source restricts network access, configure \",(0,t.jsx)(e.a,{href:\"/docs/administration/network\",children:\"network access\"}),\" first.\"]}),`\n`]}),(0,t.jsxs)(a,{sectionId:\"1-choose-the-source\",anchors:\"\",ancestors:\"\",index:\"1\",children:[(0,t.jsx)(e.h2,{id:\"1-choose-the-source\",children:\"1. Choose the source\"}),`\n`,(0,t.jsxs)(e.p,{children:[\"Open \",(0,t.jsx)(e.a,{href:\"/docs/lakehouse/external-catalogs\",children:\"Connect existing data\"}),\" and choose the guide for your database, warehouse, or table format. Follow that guide to create the catalog in the intended environment.\"]}),`\n`,(0,t.jsxs)(e.p,{children:[\"For object storage, distinguish \",(0,t.jsx)(e.a,{href:\"/docs/lakehouse/query/object-storage\",children:\"querying files in place\"}),\" from \",(0,t.jsx)(e.a,{href:\"/docs/lakehouse/ingest/object-storage\",children:\"syncing files into managed tables\"}),\".\"]}),`\n`]}),(0,t.jsxs)(a,{sectionId:\"2-inspect-a-table\",anchors:\"\",ancestors:\"\",index:\"2\",children:[(0,t.jsx)(e.h2,{id:\"2-inspect-a-table\",children:\"2. Inspect a table\"}),`\n`,(0,t.jsxs)(e.p,{children:[\"Open \",(0,t.jsx)(e.strong,{children:\"Catalogs\"}),\" and find the new catalog. Inspect its schemas and tables, then open \",(0,t.jsx)(e.a,{href:\"/docs/lakehouse/query/sql-explorer\",children:\"SQL Explorer\"}),\".\"]}),`\n`,(0,t.jsx)(e.p,{children:\"Replace the example catalog, schema, and table with names from your source:\"}),`\n`,(0,t.jsx)(e.pre,{children:(0,t.jsx)(e.code,{className:\"language-sql\",children:`SELECT * FROM my_source.public.my_table LIMIT 10;\n`})}),`\n`]}),(0,t.jsxs)(a,{sectionId:\"3-verify-the-result\",anchors:\"\",ancestors:\"\",index:\"3\",children:[(0,t.jsx)(e.h2,{id:\"3-verify-the-result\",children:\"3. Verify the result\"}),`\n`,(0,t.jsx)(e.p,{children:\"Compare the returned rows with the source. Confirm that you connected the intended environment and that the source credentials expose the tables you need.\"}),`\n`]}),(0,t.jsxs)(a,{sectionId:\"do-this-with-your-agent\",anchors:\"\",ancestors:\"\",index:\"4\",children:[(0,t.jsx)(e.h2,{id:\"do-this-with-your-agent\",children:\"Do this with your agent\"}),`\n`,(0,t.jsx)(i,{children:(0,t.jsx)(r,{children:\"Read https://altertable.ai/docs/getting-started/connect-data.md. Help me connect an existing source to Altertable. Inspect project configuration without reading secret files and ask only for the source, target environment, or network constraints you cannot determine. Follow the matching supported connection guide and explain the required access and where the data stays. Confirm the catalog configuration before creating it. Then inspect the schemas and verify a bounded query against an agreed real table. Report the catalog, table, query, and any access or data gaps.\"})}),`\n`,(0,t.jsxs)(e.p,{children:[\"Next, \",(0,t.jsx)(e.a,{href:\"/docs/data-apps/build\",children:\"build a data app\"}),\" with the data you connected.\"]})]})]})}function g(n={}){let{wrapper:e}=n.components||{};return e?(0,t.jsx)(e,{...n,children:(0,t.jsx)(u,{...n})}):u(n)}function c(n,e){throw new Error(\"Expected \"+(e?\"component\":\"object\")+\" `\"+n+\"` to be defined: you likely forgot to import, pass, or provide it.\")}return I(C);})();\n;return Component;"},"_id":"docs/getting-started/connect-data.mdx","_raw":{"sourceFilePath":"docs/getting-started/connect-data.mdx","sourceFileName":"connect-data.mdx","sourceFileDir":"docs/getting-started","contentType":"mdx","flattenedPath":"docs/getting-started/connect-data"},"type":"Docs","path":"/getting-started/connect-data","level":2,"parent":"getting-started"}