{"title":"Import from object storage","description":"Import files from object storage into Altertable tables with bucket synchronizers for scheduled, queryable ingestion.","order":150,"askSuggestions":["Should I sync bucket files or query them in place?","Can one synchronizer load both CSV and Parquet paths?","How do I schedule imports from an S3 bucket?"],"navigation":true,"routeId":"ingestDataObjectStorage","body":{"code":"var Component=(()=>{var p=Object.create;var i=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var y=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var m=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports),g=(n,e)=>{for(var r in e)i(n,r,{get:e[r],enumerable:!0})},c=(n,e,r,o)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let s of f(e))!k.call(n,s)&&s!==r&&i(n,s,{get:()=>e[s],enumerable:!(o=b(e,s))||o.enumerable});return n};var w=(n,e,r)=>(r=n!=null?p(y(n)):{},c(e||!n||!n.__esModule?i(r,\"default\",{value:n,enumerable:!0}):r,n)),x=n=>c(i({},\"__esModule\",{value:!0}),n);var l=m((j,a)=>{a.exports=_jsx_runtime});var I={};g(I,{default:()=>u,frontmatter:()=>z});var t=w(l()),z={title:\"Import from object storage\",routeId:\"ingestDataObjectStorage\",description:\"Import files from object storage into Altertable tables with bucket synchronizers for scheduled, queryable ingestion.\",order:150,askSuggestions:[\"Should I sync bucket files or query them in place?\",\"Can one synchronizer load both CSV and Parquet paths?\",\"How do I schedule imports from an S3 bucket?\"]};function h(n){let e={a:\"a\",code:\"code\",h1:\"h1\",h2:\"h2\",li:\"li\",ol:\"ol\",p:\"p\",strong:\"strong\",ul:\"ul\",...n.components},{DocsPreviewDocument:r,DocsPreviewSection:o}=e;return r||d(\"DocsPreviewDocument\",!0),o||d(\"DocsPreviewSection\",!0),(0,t.jsxs)(r,{anchors:\"import-from-object-storage when-to-use-a-bucket-synchronizer set-up-a-bucket-synchronizer query-synced-tables keep-paths-stable\",children:[(0,t.jsxs)(o,{sectionId:\"import-from-object-storage\",sectionTitle:\"Import from object storage\",anchors:\"\",ancestors:\"\",index:\"0\",children:[(0,t.jsx)(e.h1,{id:\"import-from-object-storage\",children:\"Import from object storage\"}),`\n`,(0,t.jsx)(e.p,{children:\"Use a bucket synchronizer when files land in Amazon S3, Cloudflare R2, Google Cloud Storage, or another S3-compatible bucket and you want Altertable to load them into a catalog.\"}),`\n`,(0,t.jsx)(e.p,{children:\"A bucket synchronizer runs on a schedule. Each run imports new files from the configured bucket paths into destination tables, and skips files that were already loaded.\"}),`\n`]}),(0,t.jsxs)(o,{sectionId:\"when-to-use-a-bucket-synchronizer\",sectionTitle:\"When to use a bucket synchronizer\",anchors:\"\",ancestors:\"\",index:\"1\",children:[(0,t.jsx)(e.h2,{id:\"when-to-use-a-bucket-synchronizer\",children:\"When to use a bucket synchronizer\"}),`\n`,(0,t.jsx)(e.p,{children:\"Use this path for:\"}),`\n`,(0,t.jsxs)(e.ul,{children:[`\n`,(0,t.jsx)(e.li,{children:\"Parquet, CSV, or JSON files written to stable bucket paths.\"}),`\n`,(0,t.jsx)(e.li,{children:\"File drops produced by ELT jobs, reverse ETL jobs, or application exports.\"}),`\n`,(0,t.jsx)(e.li,{children:\"Append-style datasets where new files arrive over time.\"}),`\n`,(0,t.jsx)(e.li,{children:\"Data that should be copied into Altertable-managed tables for SQL, dashboards, and AI workflows.\"}),`\n`]}),`\n`,(0,t.jsxs)(e.p,{children:[\"If you only need to query files in place without copying them, use \",(0,t.jsx)(e.a,{href:\"/docs/lakehouse/external-catalogs/bucket-tables\",children:\"Bucket Tables\"}),\", \",(0,t.jsx)(e.a,{href:\"/docs/lakehouse/external-catalogs/iceberg-tables\",children:\"Iceberg Tables\"}),\", or \",(0,t.jsx)(e.a,{href:\"/docs/lakehouse/external-catalogs/s3-tables\",children:\"S3 Tables\"}),\".\"]}),`\n`]}),(0,t.jsxs)(o,{sectionId:\"set-up-a-bucket-synchronizer\",sectionTitle:\"Set up a bucket synchronizer\",anchors:\"\",ancestors:\"\",index:\"2\",children:[(0,t.jsx)(e.h2,{id:\"set-up-a-bucket-synchronizer\",children:\"Set up a bucket synchronizer\"}),`\n`,(0,t.jsxs)(e.ol,{children:[`\n`,(0,t.jsxs)(e.li,{children:[\"Connect the \",(0,t.jsx)(e.a,{href:\"/docs/lakehouse/storage/buckets\",children:\"bucket\"}),\" that contains the files.\"]}),`\n`,(0,t.jsx)(e.li,{children:\"Open the destination catalog in the Altertable app.\"}),`\n`,(0,t.jsxs)(e.li,{children:[\"In \",(0,t.jsx)(e.strong,{children:\"Synchronizers\"}),\", click \",(0,t.jsx)(e.strong,{children:\"Add synchronizer\"}),\".\"]}),`\n`,(0,t.jsxs)(e.li,{children:[\"Choose \",(0,t.jsx)(e.strong,{children:\"Bucket\"}),\" as the source type.\"]}),`\n`,(0,t.jsx)(e.li,{children:\"Select the bucket and file format.\"}),`\n`,(0,t.jsx)(e.li,{children:\"Choose the target schema.\"}),`\n`,(0,t.jsx)(e.li,{children:\"Map each bucket path to the table Altertable should load.\"}),`\n`,(0,t.jsx)(e.li,{children:\"Save the synchronizer and configure its schedule.\"}),`\n`]}),`\n`,(0,t.jsx)(e.p,{children:\"The file format applies to every path in the synchronizer. Use separate synchronizers when different paths use different formats.\"}),`\n`]}),(0,t.jsxs)(o,{sectionId:\"query-synced-tables\",sectionTitle:\"Query synced tables\",anchors:\"\",ancestors:\"\",index:\"3\",children:[(0,t.jsx)(e.h2,{id:\"query-synced-tables\",children:\"Query synced tables\"}),`\n`,(0,t.jsxs)(e.p,{children:[\"After the synchronizer runs, query the destination tables with fully qualified names such as \",(0,t.jsx)(e.code,{children:\"analytics.main.events\"}),\" from the SQL explorer, HTTP query API, DuckDB extension, BI adapters, MCP tools, and AI workflows.\"]}),`\n`]}),(0,t.jsxs)(o,{sectionId:\"keep-paths-stable\",sectionTitle:\"Keep paths stable\",anchors:\"\",ancestors:\"\",index:\"4\",children:[(0,t.jsx)(e.h2,{id:\"keep-paths-stable\",children:\"Keep paths stable\"}),`\n`,(0,t.jsx)(e.p,{children:\"Bucket synchronizers work best when upstream jobs write new files to predictable paths. Keep partitioning consistent, avoid rewriting files after they have been loaded, and grant Altertable least-privilege access to the bucket paths it needs.\"}),`\n`,(0,t.jsxs)(e.p,{children:[\"To send records or ad hoc files directly to Altertable, use \",(0,t.jsx)(e.a,{href:\"/docs/lakehouse/ingest/http-api\",children:\"ingest with HTTP API\"}),\" or \",(0,t.jsx)(e.a,{href:\"/docs/lakehouse/ingest/duckdb\",children:\"ingest with DuckDB\"}),\".\"]})]})]})}function u(n={}){let{wrapper:e}=n.components||{};return e?(0,t.jsx)(e,{...n,children:(0,t.jsx)(h,{...n})}):h(n)}function d(n,e){throw new Error(\"Expected \"+(e?\"component\":\"object\")+\" `\"+n+\"` to be defined: you likely forgot to import, pass, or provide it.\")}return x(I);})();\n;return Component;"},"_id":"docs/lakehouse/ingest/object-storage.mdx","_raw":{"sourceFilePath":"docs/lakehouse/ingest/object-storage.mdx","sourceFileName":"object-storage.mdx","sourceFileDir":"docs/lakehouse/ingest","contentType":"mdx","flattenedPath":"docs/lakehouse/ingest/object-storage"},"type":"Docs","path":"/lakehouse/ingest/object-storage","level":3,"parent":"lakehouse/ingest"}