{"title":"Lakehouse API","description":"Reference for the Altertable HTTP API, including authentication and endpoints for query, file upload, upserts, append, validation, and query lifecycle.","order":100,"codeExamples":true,"askSuggestions":["How do I estimate how much data a query will scan?","How do I get query results as CSV or Parquet?","Where do appended rows go when they fail?"],"navigation":true,"routeId":"apiReferencesLakehouse","body":{"code":"var Component=(()=>{var f=Object.create;var d=Object.defineProperty;var q=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var T=Object.getPrototypeOf,_=Object.prototype.hasOwnProperty;var S=(i,t)=>()=>(t||i((t={exports:{}}).exports,t),t.exports),A=(i,t)=>{for(var r in t)d(i,r,{get:t[r],enumerable:!0})},p=(i,t,r,n)=>{if(t&&typeof t==\"object\"||typeof t==\"function\")for(let c of b(t))!_.call(i,c)&&c!==r&&d(i,c,{get:()=>t[c],enumerable:!(n=q(t,c))||n.enumerable});return i};var E=(i,t,r)=>(r=i!=null?f(T(i)):{},p(t||!i||!i.__esModule?d(r,\"default\",{value:i,enumerable:!0}):r,i)),w=i=>p(d({},\"__esModule\",{value:!0}),i);var m=S((L,h)=>{h.exports=_jsx_runtime});var k={};A(k,{default:()=>g,frontmatter:()=>O});var e=E(m()),O={title:\"Lakehouse API\",routeId:\"apiReferencesLakehouse\",description:\"Reference for the Altertable HTTP API, including authentication and endpoints for query, file upload, upserts, append, validation, and query lifecycle.\",order:100,codeExamples:!0,askSuggestions:[\"How do I estimate how much data a query will scan?\",\"How do I get query results as CSV or Parquet?\",\"Where do appended rows go when they fail?\"]};function y(i){let t={a:\"a\",code:\"code\",h1:\"h1\",h2:\"h2\",h3:\"h3\",li:\"li\",ol:\"ol\",p:\"p\",pre:\"pre\",strong:\"strong\",ul:\"ul\",...i.components},{CodeSnippet:r,DocsApiReferenceEndpoint:n,DocsApiReferenceQuickReference:c,DocsPreviewDocument:u,DocsPreviewSection:s,DocsSchemaFields:a,DocsTable:o}=t;return r||l(\"CodeSnippet\",!0),n||l(\"DocsApiReferenceEndpoint\",!0),c||l(\"DocsApiReferenceQuickReference\",!0),u||l(\"DocsPreviewDocument\",!0),s||l(\"DocsPreviewSection\",!0),a||l(\"DocsSchemaFields\",!0),o||l(\"DocsTable\",!0),(0,e.jsxs)(u,{anchors:\"lakehouse-api authentication post-query post-upload post-upsert post-append post-explain post-validate post-autocomplete get-queries get-query-query-uuid delete-query-query-uuid get-tasks-task-uuid nested-response-types autocompletesuggestion tablescanestimate querystats cachingstats scanstats sessionkind appenderrorcode taskstatus\",children:[(0,e.jsxs)(s,{sectionId:\"lakehouse-api\",sectionTitle:\"Lakehouse API\",anchors:\"\",ancestors:\"\",index:\"0\",children:[(0,e.jsx)(t.h1,{id:\"lakehouse-api\",children:\"Lakehouse API\"}),`\n`,(0,e.jsx)(c,{items:[{label:\"Base URL\",value:\"https://api.altertable.ai\"},{label:\"Authentication\",value:\"HTTP Basic Auth\",to:\"#authentication\"},{label:\"Terminal workflows\",value:\"Use the CLI\",to:\"/docs/lakehouse/clients/cli\"}],links:[{label:\"Query with SQL\",to:\"#post-query\"},{label:\"Estimate a query\",to:\"#post-explain\"},{label:\"List running queries\",to:\"#get-queries\"},{label:\"Upload a file\",to:\"#post-upload\"},{label:\"Upsert by primary key\",to:\"#post-upsert\"}]}),`\n`,(0,e.jsx)(t.p,{children:\"Use the Altertable HTTP API to run SQL, estimate query scans, upload files, upsert by primary key, append event-style JSON records, validate SQL, and request autocomplete suggestions without opening a database protocol connection.\"}),`\n`,(0,e.jsxs)(t.p,{children:[\"If you are working from a terminal, the \",(0,e.jsx)(t.a,{href:\"/docs/lakehouse/clients/cli\",children:\"CLI\"}),\" wraps the query, upload, upsert, and append endpoints with profile-based authentication.\"]}),`\n`,(0,e.jsxs)(t.p,{children:[(0,e.jsx)(t.a,{href:\"https://api.altertable.ai/openapi/lakehouse.json\",children:\"Download the deployed OpenAPI contract\"}),\" for machine-readable request and response schemas.\"]}),`\n`]}),(0,e.jsxs)(s,{sectionId:\"authentication\",sectionTitle:\"Authentication\",anchors:\"\",ancestors:\"\",index:\"1\",children:[(0,e.jsx)(t.h2,{id:\"authentication\",children:\"Authentication\"}),`\n`,(0,e.jsxs)(t.p,{children:[\"Authenticate every request with HTTP Basic Auth using your environment\\u2019s \",(0,e.jsx)(t.a,{href:\"/docs/administration/lakehouse-credentials\",children:\"lakehouse credentials\"}),\". Base64-encode \",(0,e.jsx)(t.code,{children:\"lakehouse_username:lakehouse_password\"}),\" and store the result for the request examples below:\"]}),`\n`,(0,e.jsx)(r,{language:\"bash\",children:`ALTERTABLE_BASIC_AUTH_TOKEN=$(printf '%s' \"{{LAKEHOUSE_USERNAME}}:{{LAKEHOUSE_PASSWORD}}\" | base64 | tr -d '\\\\n')`}),`\n`,(0,e.jsxs)(t.p,{children:[\"Then send the encoded value in the \",(0,e.jsx)(t.code,{children:\"Authorization\"}),\" header:\"]}),`\n`,(0,e.jsx)(t.pre,{children:(0,e.jsx)(t.code,{className:\"language-http\",children:`Authorization: Basic <ALTERTABLE_BASIC_AUTH_TOKEN>\n`})}),`\n`,(0,e.jsxs)(t.p,{children:[\"The \",(0,e.jsx)(t.a,{href:\"/docs/api-references/sdks\",children:\"Python and Ruby SDKs\"}),\" construct the header from your lakehouse username and password during client initialization.\"]}),`\n`]}),(0,e.jsx)(s,{sectionId:\"post-query\",sectionTitle:\"\",anchors:\"post-query\",ancestors:\"authentication\",index:\"2\",children:(0,e.jsxs)(n,{id:\"post-query\",method:\"POST\",path:\"/query\",summary:\"Execute SQL and stream the result as JSON Lines.\",authentication:\"HTTP Basic Auth\",permission:\"Query access to referenced catalogs\",parameters:[{name:\"statement\",type:\"string\",location:\"body\",required:!0,description:\"The SQL statement to execute.\"},{name:\"catalog\",type:\"string\",location:\"body\",required:!1,description:\"Catalog to use for unqualified table names.\"},{name:\"schema\",type:\"string\",location:\"body\",required:!1,description:\"Schema to use for unqualified table names.\"},{name:\"session_id\",type:\"string\",location:\"body\",required:!1,description:\"Reuse an existing query session.\"},{name:\"timezone\",type:\"string\",location:\"body\",required:!1,description:\"IANA timezone for the session. Defaults to UTC.\"},{name:\"compute_size\",type:\"XS | S | M | L | XL | 2XL | 3XL | 4XL | AUTO\",location:\"body\",required:!1,description:\"Choose a compute tier or infer one from the SQL. AUTO cannot be combined with session_id.\"},{name:\"dialect\",type:\"string\",location:\"body\",required:!1,description:\"Source SQL dialect to transpile to DuckDB before execution.\"},{name:\"limit\",type:\"integer\",location:\"body\",required:!1,description:\"Limit the number of returned rows.\"},{name:\"offset\",type:\"integer\",location:\"body\",required:!1,description:\"Skip this many rows before returning results.\"},{name:\"format\",type:\"default | csv | jsonl | parquet\",location:\"body\",required:!1,description:\"Choose the streamed output format. Defaults to the Altertable metadata, column names, and row stream.\"},{name:\"ephemeral\",type:\"boolean\",location:\"body\",required:!1,description:\"Create an ephemeral session. Defaults to false.\"},{name:\"sanitize\",type:\"boolean\",location:\"body\",required:!1,description:\"Automatically limit returned rows. Defaults to false.\"},{name:\"params\",type:\"object | array\",location:\"body\",required:!1,description:\"Named ($name) or positional ($1) bind values. Values must be JSON scalars.\"},{name:\"requested_by\",type:\"string\",location:\"body\",required:!1,description:\"Caller identifier recorded in query logs.\"},{name:\"query_id\",type:\"UUID\",location:\"body\",required:!1,description:\"Assign a query identifier instead of generating one.\"}],requestExamples:[{language:\"curl\",code:`curl -X POST https://api.altertable.ai/query \\\\\n  -H \"Authorization: Basic $ALTERTABLE_BASIC_AUTH_TOKEN\" \\\\\n  -H \"Content-Type: application/json\" \\\\\n  -d '{\"statement\":\"SELECT event, COUNT(*) AS count FROM product_analytics.main.events GROUP BY event\"}'`}],response:{status:\"200 OK\",language:\"json\",code:`{\"statement\":\"SELECT event, COUNT(*) AS count FROM product_analytics.main.events GROUP BY event\",\"rows_limit\":null,\"rows_offset\":null,\"init_time_ms\":0,\"session_id\":\"123e4567-e89b-12d3-a456-426614174000\",\"query_id\":\"123e4567-e89b-12d3-a456-426614174000\",\"worker_slug\":\"worker-abc\",\"connections_errors\":{}}\n[\"event\",\"count\"]\n[\"signup\",42]\n[\"login\",123]`},children:[(0,e.jsx)(t.h3,{id:\"response-format\",children:\"Response format\"}),(0,e.jsxs)(t.p,{children:[\"The default response uses \",(0,e.jsx)(t.strong,{children:\"JSONL\"}),\" (JSON Lines) for efficient streaming:\"]}),(0,e.jsxs)(t.ol,{children:[`\n`,(0,e.jsxs)(t.li,{children:[(0,e.jsx)(t.strong,{children:\"First line\"}),\": query metadata, including the session, query, and Worker identifiers\"]}),`\n`,(0,e.jsxs)(t.li,{children:[(0,e.jsx)(t.strong,{children:\"Second line\"}),\": an array of column names\"]}),`\n`,(0,e.jsxs)(t.li,{children:[(0,e.jsx)(t.strong,{children:\"Remaining lines\"}),\": one JSON array per result row, in column order\"]}),`\n`]}),(0,e.jsxs)(t.p,{children:[\"Set \",(0,e.jsx)(t.code,{children:\"format\"}),\" to \",(0,e.jsx)(t.code,{children:\"csv\"}),\", \",(0,e.jsx)(t.code,{children:\"jsonl\"}),\", or \",(0,e.jsx)(t.code,{children:\"parquet\"}),\" when you need a standard data stream without the Altertable metadata and column-name lines. The \",(0,e.jsx)(t.code,{children:\"jsonl\"}),\" format emits one JSON object per row.\"]}),(0,e.jsx)(t.h3,{id:\"response-statuses\",children:\"Response statuses\"}),(0,e.jsx)(o,{columns:[\"Status\",\"Description\"],data:[{Status:\"200\",Description:\"Execute a SQL query and return streaming data in the requested format\"},{Status:\"400\",Description:\"Invalid SQL query or sanitization failed\"},{Status:\"401\",Description:\"Authentication required\"}]})]})}),(0,e.jsx)(s,{sectionId:\"post-upload\",sectionTitle:\"\",anchors:\"post-upload\",ancestors:\"authentication\",index:\"3\",children:(0,e.jsxs)(n,{id:\"post-upload\",method:\"POST\",path:\"/upload\",summary:\"Upload a CSV, JSON, or Parquet file to create, append to, or replace a table.\",authentication:\"HTTP Basic Auth\",permission:\"Write access to the destination catalog\",parameters:[{name:\"catalog\",type:\"string\",location:\"query\",required:!0,description:\"Catalog to ingest data into.\"},{name:\"schema\",type:\"string\",location:\"query\",required:!0,description:\"Schema within the catalog.\"},{name:\"table\",type:\"string\",location:\"query\",required:!0,description:\"Table to create or insert into.\"},{name:\"mode\",type:\"create | append | create_append | overwrite\",location:\"query\",required:!0,description:\"How the uploaded data changes the destination table.\"}],requestExamples:[{language:\"curl\",label:\"Create a CSV table\",code:`curl \"https://api.altertable.ai/upload?catalog=my_catalog&schema=main&table=users&mode=create\" \\\\\n  -H \"Authorization: Basic $ALTERTABLE_BASIC_AUTH_TOKEN\" \\\\\n  --data-binary @users.csv`},{language:\"curl\",label:\"Append JSON to a table\",code:`curl \"https://api.altertable.ai/upload?catalog=my_catalog&schema=main&table=events&mode=append\" \\\\\n  -H \"Authorization: Basic $ALTERTABLE_BASIC_AUTH_TOKEN\" \\\\\n  --data-binary @events.json`}],response:{status:\"200 OK\",language:\"http\",code:\"HTTP/1.1 200 OK\"},children:[(0,e.jsx)(t.h3,{id:\"request-body\",children:\"Request body\"}),(0,e.jsxs)(t.p,{children:[\"Binary file data. The server infers CSV, JSON, or Parquet from the \",(0,e.jsx)(t.code,{children:\"Content-Type\"}),\" header when present, otherwise from magic bytes in the payload:\"]}),(0,e.jsxs)(t.ul,{children:[`\n`,(0,e.jsxs)(t.li,{children:[(0,e.jsx)(t.strong,{children:\"CSV\"}),\": Comma-separated values with header row\"]}),`\n`,(0,e.jsxs)(t.li,{children:[(0,e.jsx)(t.strong,{children:\"JSON\"}),\": JSON array of objects or JSONL (one JSON object per line)\"]}),`\n`,(0,e.jsxs)(t.li,{children:[(0,e.jsx)(t.strong,{children:\"Parquet\"}),\": Apache Parquet columnar format (most efficient)\"]}),`\n`]}),(0,e.jsx)(t.h3,{id:\"ingestion-modes\",children:\"Ingestion modes\"}),(0,e.jsxs)(t.ul,{children:[`\n`,(0,e.jsxs)(t.li,{children:[(0,e.jsx)(t.strong,{children:(0,e.jsx)(t.code,{children:\"create\"})}),\": Create a new table with the uploaded data (fails if the table already exists)\"]}),`\n`,(0,e.jsxs)(t.li,{children:[(0,e.jsx)(t.strong,{children:(0,e.jsx)(t.code,{children:\"append\"})}),\": Append the uploaded data to an existing table (preserves existing data)\"]}),`\n`,(0,e.jsxs)(t.li,{children:[(0,e.jsx)(t.strong,{children:(0,e.jsx)(t.code,{children:\"create_append\"})}),\": Create the table if missing; otherwise append to it\"]}),`\n`,(0,e.jsxs)(t.li,{children:[(0,e.jsx)(t.strong,{children:(0,e.jsx)(t.code,{children:\"overwrite\"})}),\": Drop the existing table and recreate it with the uploaded data (replaces all data)\"]}),`\n`]}),(0,e.jsxs)(t.p,{children:[\"Request bodies can contain up to \",(0,e.jsx)(t.strong,{children:\"100 GiB\"}),\".\"]}),(0,e.jsx)(t.h3,{id:\"response-statuses-1\",children:\"Response statuses\"}),(0,e.jsx)(o,{columns:[\"Status\",\"Description\"],data:[{Status:\"200\",Description:\"File uploaded successfully\"},{Status:\"400\",Description:\"Invalid request (e.g., malformed file)\"},{Status:\"401\",Description:\"Authentication required\"}]})]})}),(0,e.jsx)(s,{sectionId:\"post-upsert\",sectionTitle:\"\",anchors:\"post-upsert\",ancestors:\"authentication\",index:\"4\",children:(0,e.jsxs)(n,{id:\"post-upsert\",method:\"POST\",path:\"/upsert\",summary:\"Merge uploaded CSV, JSON, or Parquet rows into a table by primary key.\",authentication:\"HTTP Basic Auth\",permission:\"Write access to the destination catalog\",parameters:[{name:\"catalog\",type:\"string\",location:\"query\",required:!0,description:\"Catalog to ingest data into.\"},{name:\"schema\",type:\"string\",location:\"query\",required:!0,description:\"Schema within the catalog.\"},{name:\"table\",type:\"string\",location:\"query\",required:!0,description:\"Table to merge rows into.\"},{name:\"primary_key\",type:\"string\",location:\"query\",required:!0,description:\"Column or comma-separated columns used to match existing rows.\"},{name:\"cursor_field\",type:\"string\",location:\"query\",required:!1,description:\"Cursor column or comma-separated columns. Higher values win on primary-key collisions; NULL is lowest.\"}],requestExamples:[{language:\"curl\",code:`curl \"https://api.altertable.ai/upsert?catalog=my_catalog&schema=main&table=users&primary_key=id\" \\\\\n  -H \"Authorization: Basic $ALTERTABLE_BASIC_AUTH_TOKEN\" \\\\\n  --data-binary @updates.parquet`}],response:{status:\"200 OK\",language:\"http\",code:\"HTTP/1.1 200 OK\"},children:[(0,e.jsxs)(t.p,{children:[\"The request body contains binary CSV, JSON, or Parquet data and can be up to \",(0,e.jsx)(t.strong,{children:\"100 GiB\"}),\". Matching rows are updated and new rows are inserted.\"]}),(0,e.jsx)(t.h3,{id:\"response-statuses-2\",children:\"Response statuses\"}),(0,e.jsx)(o,{columns:[\"Status\",\"Description\"],data:[{Status:\"200\",Description:\"File upserted successfully\"},{Status:\"400\",Description:\"Invalid request (e.g., malformed file or missing primary_key)\"},{Status:\"401\",Description:\"Authentication required\"}]})]})}),(0,e.jsx)(s,{sectionId:\"post-append\",sectionTitle:\"\",anchors:\"post-append\",ancestors:\"authentication\",index:\"5\",children:(0,e.jsxs)(n,{id:\"post-append\",method:\"POST\",path:\"/append\",summary:\"Append one JSON object or a batch of objects without managing pipelines or offsets.\",authentication:\"HTTP Basic Auth\",permission:\"Write access to the destination catalog\",parameters:[{name:\"catalog\",type:\"string\",location:\"query\",required:!0,description:\"Catalog to append data to.\"},{name:\"schema\",type:\"string\",location:\"query\",required:!0,description:\"Schema within the catalog.\"},{name:\"table\",type:\"string\",location:\"query\",required:!0,description:\"Table to append data to.\"},{name:\"sync\",type:\"boolean\",location:\"query\",required:!1,description:\"Wait for processing to finish before returning.\"}],requestExamples:[{language:\"curl\",code:`curl \"https://api.altertable.ai/append?catalog=my_catalog&schema=main&table=events\" \\\\\n  -H \"Authorization: Basic $ALTERTABLE_BASIC_AUTH_TOKEN\" \\\\\n  -H \"Content-Type: application/json\" \\\\\n  -d '{\"event\":\"signup\",\"user_id\":123}'`}],response:{status:\"200 OK\",language:\"json\",code:`{\n  \"ok\": true,\n  \"task_id\": \"019d68d4-c4cb-7e40-ad50-fd4b68c2045e\",\n  \"error_code\": null\n}`},children:[(0,e.jsxs)(t.p,{children:[\"The request body can be one JSON object or an array of objects, up to \",(0,e.jsx)(t.strong,{children:\"32 MiB\"}),\". For larger files, use \",(0,e.jsx)(t.code,{children:\"/upload\"}),\" with \",(0,e.jsx)(t.code,{children:\"mode=append\"}),\".\"]}),(0,e.jsxs)(t.p,{children:[\"Use \",(0,e.jsx)(t.code,{children:\"task_id\"}),\" with \",(0,e.jsx)(t.a,{href:\"/docs/api-references/lakehouse#get-tasks-task-uuid\",children:(0,e.jsx)(t.code,{children:\"GET /tasks/{task_id}\"})}),\" to poll asynchronous processing. When \",(0,e.jsx)(t.code,{children:\"sync=true\"}),\", the response waits until the append task finishes.\"]}),(0,e.jsxs)(t.p,{children:[\"The response confirms that Altertable accepted the records for asynchronous processing. Rows that still fail after retries are written to \",(0,e.jsx)(t.code,{children:\"altertable.main.quarantined_appends\"}),\" with the destination catalog, schema, table, error, original payload, and retry count.\"]}),(0,e.jsx)(t.h3,{id:\"automatic-table-management\",children:\"Automatic table management\"}),(0,e.jsxs)(t.ul,{children:[`\n`,(0,e.jsx)(t.li,{children:\"Infer column types from JSON values\"}),`\n`,(0,e.jsx)(t.li,{children:\"Create the table when it does not exist\"}),`\n`,(0,e.jsx)(t.li,{children:\"Add columns when later payloads contain new fields\"}),`\n`,(0,e.jsx)(t.li,{children:\"Make accepted data queryable within seconds\"}),`\n`]}),(0,e.jsxs)(t.p,{children:[\"Numbers become \",(0,e.jsx)(t.code,{children:\"BIGINT\"}),\" or \",(0,e.jsx)(t.code,{children:\"DOUBLE\"}),\", strings become \",(0,e.jsx)(t.code,{children:\"VARCHAR\"}),\", booleans become \",(0,e.jsx)(t.code,{children:\"BOOLEAN\"}),\", arrays and objects become \",(0,e.jsx)(t.code,{children:\"JSON\"}),\", and RFC3339 timestamps become \",(0,e.jsx)(t.code,{children:\"TIMESTAMP\"}),\".\"]}),(0,e.jsx)(t.p,{children:\"You can also create the table manually when you need explicit types, constraints, or defaults. Append respects the existing schema and only adds missing columns.\"}),(0,e.jsx)(t.h3,{id:\"response-statuses-3\",children:\"Response statuses\"}),(0,e.jsx)(o,{columns:[\"Status\",\"Description\"],data:[{Status:\"200\",Description:\"Append data to a table\"},{Status:\"400\",Description:\"Invalid request\"},{Status:\"401\",Description:\"Authentication required\"},{Status:\"403\",Description:\"Catalog not found, or no write access to it\"}]}),(0,e.jsx)(t.h3,{id:\"response-fields\",children:\"Response fields\"}),(0,e.jsx)(a,{fields:[{name:\"error_code\",type:\"null | AppendErrorCode\",qualifiers:[\"Optional\"],description:\"\"},{name:\"error_message\",type:\"string | null\",qualifiers:[\"Optional\"],description:\"Human-readable error message if the data was not successfully appended\"},{name:\"ok\",type:\"boolean\",qualifiers:[\"Required\"],description:\"Indicates whether the data was successfully enqueued for processing\"},{name:\"task_id\",type:\"string | null\",qualifiers:[\"Optional\"],description:\"Task ID that can be used to track the processing status of this batch via GET /tasks/{task_id}\"}]})]})}),(0,e.jsx)(s,{sectionId:\"post-explain\",sectionTitle:\"\",anchors:\"post-explain\",ancestors:\"authentication\",index:\"6\",children:(0,e.jsxs)(n,{id:\"post-explain\",method:\"POST\",path:\"/explain\",summary:\"Estimate the files, bytes, and rows a SQL statement will scan without running it.\",authentication:\"HTTP Basic Auth\",permission:\"Query access to referenced catalogs\",parameters:[{name:\"statement\",type:\"string\",location:\"body\",required:!0,description:\"SQL statement to estimate.\"},{name:\"catalog\",type:\"string\",location:\"body\",required:!1,description:\"Catalog to use for unqualified table names.\"},{name:\"schema\",type:\"string\",location:\"body\",required:!1,description:\"Schema to use for unqualified table names.\"},{name:\"session_id\",type:\"string\",location:\"body\",required:!1,description:\"Existing session to use for the estimate.\"},{name:\"include_plan\",type:\"boolean\",location:\"body\",required:!1,description:\"Include the raw EXPLAIN plan in the response.\"}],requestExamples:[{language:\"curl\",code:`curl https://api.altertable.ai/explain \\\\\n  -H \"Authorization: Basic $ALTERTABLE_BASIC_AUTH_TOKEN\" \\\\\n  -H \"Content-Type: application/json\" \\\\\n  -d '{\"statement\":\"SELECT * FROM my_catalog.main.events WHERE timestamp >= current_date - 7\",\"include_plan\":false}'`}],response:{status:\"200 OK\",language:\"json\",code:`{\n  \"connections_errors\": {},\n  \"statement\": \"SELECT * FROM my_catalog.main.events WHERE timestamp >= current_date - 7\",\n  \"tables\": []\n}`},children:[(0,e.jsxs)(t.p,{children:[\"The response reports per-table row estimates and, when available, file and byte estimates after filter pruning. It also returns totals across all scanned tables and connection errors for catalogs that could not be attached. Each table uses the \",(0,e.jsx)(t.a,{href:\"#tablescanestimate\",children:\"TableScanEstimate\"}),\" response type.\"]}),(0,e.jsx)(t.h3,{id:\"response-statuses-4\",children:\"Response statuses\"}),(0,e.jsx)(o,{columns:[\"Status\",\"Description\"],data:[{Status:\"200\",Description:\"Explain result for the SQL statement\"},{Status:\"400\",Description:\"Invalid request parameters\"},{Status:\"401\",Description:\"Authentication required\"}]}),(0,e.jsx)(t.h3,{id:\"response-fields-1\",children:\"Response fields\"}),(0,e.jsx)(a,{fields:[{name:\"connections_errors\",type:\"object\",qualifiers:[\"Required\"],description:\"Connection errors for attached catalogs\"},{name:\"error\",type:\"string | null\",qualifiers:[\"Optional\"],description:\"Error message if the explain failed\"},{name:\"plan\",type:\"array\",qualifiers:[\"Optional\"],description:\"Raw EXPLAIN JSON plan (wrapped in array for API compatibility)\"},{name:\"scanned_bytes_estimate\",type:\"integer | null\",qualifiers:[\"Optional\"],description:\"Estimated bytes to scan after filter pruning\"},{name:\"scanned_files_estimate\",type:\"integer | null\",qualifiers:[\"Optional\"],description:\"Estimated files to scan after filter pruning\"},{name:\"statement\",type:\"string\",qualifiers:[\"Required\"],description:\"The statement that was explained\"},{name:\"tables\",type:\"TableScanEstimate[]\",qualifiers:[\"Required\"],description:\"Per-table scan estimates\"},{name:\"total_bytes\",type:\"integer | null\",qualifiers:[\"Optional\"],description:\"Total bytes across all table scans\"},{name:\"total_files\",type:\"integer | null\",qualifiers:[\"Optional\"],description:\"Total files across all table scans\"}]})]})}),(0,e.jsx)(s,{sectionId:\"post-validate\",sectionTitle:\"\",anchors:\"post-validate\",ancestors:\"authentication\",index:\"7\",children:(0,e.jsxs)(n,{id:\"post-validate\",method:\"POST\",path:\"/validate\",summary:\"Check a SQL statement for syntax and semantic issues without executing it.\",authentication:\"HTTP Basic Auth\",permission:\"Query access to referenced catalogs\",parameters:[{name:\"statement\",type:\"string\",location:\"body\",required:!0,description:\"SQL statement to validate.\"},{name:\"catalog\",type:\"string\",location:\"body\",required:!1,description:\"Catalog to use for validation.\"},{name:\"schema\",type:\"string\",location:\"body\",required:!1,description:\"Schema to use for validation.\"},{name:\"session_id\",type:\"string\",location:\"body\",required:!1,description:\"Existing session to use for validation.\"}],requestExamples:[{language:\"curl\",code:`curl https://api.altertable.ai/validate \\\\\n  -H \"Authorization: Basic $ALTERTABLE_BASIC_AUTH_TOKEN\" \\\\\n  -H \"Content-Type: application/json\" \\\\\n  -d '{\"statement\":\"SELECT 1 AS connected\"}'`}],response:{status:\"200 OK\",language:\"json\",code:`{\n  \"connections_errors\": {},\n  \"statement\": \"SELECT 1 AS connected\",\n  \"valid\": true\n}`},children:[(0,e.jsx)(t.h3,{id:\"response-statuses-5\",children:\"Response statuses\"}),(0,e.jsx)(o,{columns:[\"Status\",\"Description\"],data:[{Status:\"200\",Description:\"Validation result for the SQL statement\"},{Status:\"400\",Description:\"Invalid request parameters\"},{Status:\"401\",Description:\"Authentication required\"}]}),(0,e.jsx)(t.h3,{id:\"response-fields-2\",children:\"Response fields\"}),(0,e.jsx)(a,{fields:[{name:\"connections_errors\",type:\"object\",qualifiers:[\"Required\"],description:\"Connection errors for attached catalogs\"},{name:\"error\",type:\"string | null\",qualifiers:[\"Optional\"],description:\"Error message if the statement is invalid\"},{name:\"statement\",type:\"string\",qualifiers:[\"Required\"],description:\"The statement that was validated\"},{name:\"valid\",type:\"boolean\",qualifiers:[\"Required\"],description:\"Whether the SQL statement is valid\"}]})]})}),(0,e.jsx)(s,{sectionId:\"post-autocomplete\",sectionTitle:\"\",anchors:\"post-autocomplete\",ancestors:\"authentication\",index:\"8\",children:(0,e.jsxs)(n,{id:\"post-autocomplete\",method:\"POST\",path:\"/autocomplete\",summary:\"Return ranked SQL completions for a partial statement.\",authentication:\"HTTP Basic Auth\",permission:\"Query access to referenced catalogs\",parameters:[{name:\"statement\",type:\"string\",location:\"body\",required:!0,description:\"Partial SQL statement.\"},{name:\"catalog\",type:\"string\",location:\"body\",required:!1,description:\"Catalog used to scope suggestions.\"},{name:\"schema\",type:\"string\",location:\"body\",required:!1,description:\"Schema used to scope suggestions.\"},{name:\"session_id\",type:\"string\",location:\"body\",required:!1,description:\"Existing session used for catalog context.\"},{name:\"max_suggestions\",type:\"integer\",location:\"body\",required:!1,description:\"Maximum suggestions to return. Defaults to 20 and cannot exceed 200.\"}],requestExamples:[{language:\"curl\",code:`curl https://api.altertable.ai/autocomplete \\\\\n  -H \"Authorization: Basic $ALTERTABLE_BASIC_AUTH_TOKEN\" \\\\\n  -H \"Content-Type: application/json\" \\\\\n  -d '{\"statement\":\"SELECT ma\",\"catalog\":\"my_catalog\",\"schema\":\"main\",\"max_suggestions\":20}'`}],response:{status:\"200 OK\",language:\"json\",code:`{\n  \"connections_errors\": {},\n  \"statement\": \"SELECT ma\",\n  \"suggestions\": []\n}`},children:[(0,e.jsxs)(t.p,{children:[\"The response includes the original statement, connection errors by catalog when present, and suggestions with their type, score, and replacement start position. See \",(0,e.jsx)(t.a,{href:\"#autocompletesuggestion\",children:\"AutocompleteSuggestion\"}),\" for the fields in each suggestion.\"]}),(0,e.jsx)(t.h3,{id:\"response-statuses-6\",children:\"Response statuses\"}),(0,e.jsx)(o,{columns:[\"Status\",\"Description\"],data:[{Status:\"200\",Description:\"SQL autocomplete suggestions\"},{Status:\"400\",Description:\"Invalid request parameters\"},{Status:\"401\",Description:\"Authentication required\"}]}),(0,e.jsx)(t.h3,{id:\"response-fields-3\",children:\"Response fields\"}),(0,e.jsx)(a,{fields:[{name:\"connections_errors\",type:\"object\",qualifiers:[\"Required\"],description:\"\"},{name:\"statement\",type:\"string\",qualifiers:[\"Required\"],description:\"\"},{name:\"suggestions\",type:\"AutocompleteSuggestion[]\",qualifiers:[\"Required\"],description:\"\"}]})]})}),(0,e.jsx)(s,{sectionId:\"get-queries\",sectionTitle:\"\",anchors:\"get-queries\",ancestors:\"authentication\",index:\"9\",children:(0,e.jsxs)(n,{id:\"get-queries\",method:\"GET\",path:\"/queries\",summary:\"List running queries visible to the caller.\",authentication:\"HTTP Basic Auth\",permission:\"Access to the environment's queries\",requestExamples:[{language:\"curl\",code:'curl https://api.altertable.ai/queries -H \"Authorization: Basic $ALTERTABLE_BASIC_AUTH_TOKEN\"'}],children:[(0,e.jsx)(t.p,{children:\"Environment credentials can list all running queries in that environment. Credentials for a principal list only that principal's queries.\"}),(0,e.jsxs)(t.p,{children:[\"A successful response contains a \",(0,e.jsx)(t.code,{children:\"queries\"}),\" array with an \",(0,e.jsx)(t.code,{children:\"id\"}),\" and \",(0,e.jsx)(t.code,{children:\"started_at\"}),\" timestamp for each running query:\"]}),(0,e.jsx)(t.pre,{children:(0,e.jsx)(t.code,{className:\"language-json\",children:`{\n  \"queries\": [\n    {\n      \"id\": \"58219482-3669-42d4-89d8-3289df60995c\",\n      \"started_at\": \"2026-11-11T13:24:46.680771Z\"\n    }\n  ]\n}\n`})}),(0,e.jsxs)(t.p,{children:[\"Use the ID with \",(0,e.jsx)(t.a,{href:\"/docs/api-references/lakehouse#get-query-query-uuid\",children:(0,e.jsx)(t.code,{children:\"GET /query/{query_id}\"})}),\" for progress and Worker details, or \",(0,e.jsx)(t.a,{href:\"/docs/api-references/lakehouse#delete-query-query-uuid\",children:(0,e.jsx)(t.code,{children:\"DELETE /query/{query_id}\"})}),\" to request cancellation. Missing authentication returns \",(0,e.jsx)(t.code,{children:\"401\"}),\".\"]})]})}),(0,e.jsx)(s,{sectionId:\"get-query-query-uuid\",sectionTitle:\"\",anchors:\"get-query-query-uuid\",ancestors:\"authentication\",index:\"10\",children:(0,e.jsxs)(n,{id:\"get-query-query-uuid\",method:\"GET\",path:\"/query/{query_id}\",summary:\"Inspect a running or completed query.\",authentication:\"HTTP Basic Auth\",permission:\"Access to the query\",parameters:[{name:\"query_id\",type:\"UUID\",location:\"path\",required:!0,description:\"Query identifier returned when execution started.\"}],requestExamples:[{language:\"curl\",code:`curl \"https://api.altertable.ai/query/<query-id>\" \\\\\n  -H \"Authorization: Basic $ALTERTABLE_BASIC_AUTH_TOKEN\"`}],response:{status:\"200 OK\",language:\"json\",code:`{\n  \"uuid\": \"58219482-3669-42d4-89d8-3289df60995c\",\n  \"start_time\": \"2026-11-11T13:24:46.68230691Z\",\n  \"query\": \"SELECT sleep_ms(15000) AS waited\",\n  \"client_interface\": \"HTTP\",\n  \"visible\": true,\n  \"user_agent\": \"altertable-cli/1.15.0\",\n  \"session_id\": \"01a1cac8-43e7-7372-9018-9a8e287fe85c\",\n  \"threads\": 2,\n  \"percentage\": -1.0,\n  \"rows_processed\": 0,\n  \"total_rows\": 0,\n  \"worker\": {\n    \"slug\": \"api-worker-xs-668c47b7db-sgwzf\",\n    \"compute_size\": \"XS\",\n    \"threads\": 2,\n    \"memory_limit_bytes\": 3006477107,\n    \"memory_usage_bytes\": 3605146,\n    \"memory_by_tag\": [\n      {\n        \"tag\": \"ALLOCATOR\",\n        \"memory_usage_bytes\": 16384,\n        \"temporary_storage_bytes\": 0\n      },\n      {\n        \"tag\": \"OBJECT_CACHE\",\n        \"memory_usage_bytes\": 3588762,\n        \"temporary_storage_bytes\": 0\n      }\n    ]\n  }\n}`},children:[(0,e.jsxs)(t.p,{children:[\"This example was captured with \",(0,e.jsx)(t.code,{children:\"altertable query show <query-id> --json\"}),\" while \",(0,e.jsx)(t.code,{children:\"SELECT sleep_ms(15000) AS waited\"}),\" was running. Optional null fields and zero-memory tags are omitted. Worker memory readings describe the Worker at that moment.\"]}),(0,e.jsx)(t.h3,{id:\"response-statuses-7\",children:\"Response statuses\"}),(0,e.jsx)(o,{columns:[\"Status\",\"Description\"],data:[{Status:\"200\",Description:\"Query log\"},{Status:\"401\",Description:\"Authentication required\"},{Status:\"404\",Description:\"Query not found\"}]}),(0,e.jsx)(t.h3,{id:\"response-fields-4\",children:\"Response fields\"}),(0,e.jsxs)(t.p,{children:[\"Use the \",(0,e.jsx)(t.code,{children:\"query_id\"}),\" returned by \",(0,e.jsx)(t.a,{href:\"/docs/api-references/lakehouse#post-query\",children:\"POST /query\"}),\". Running-query progress fields are included when available. The optional \",(0,e.jsx)(t.code,{children:\"stats\"}),\" object uses \",(0,e.jsx)(t.a,{href:\"#querystats\",children:\"QueryStats\"}),\". When available, \",(0,e.jsx)(t.code,{children:\"worker\"}),\" includes its \",(0,e.jsx)(t.code,{children:\"slug\"}),\", \",(0,e.jsx)(t.code,{children:\"compute_size\"}),\", \",(0,e.jsx)(t.code,{children:\"threads\"}),\", \",(0,e.jsx)(t.code,{children:\"memory_limit_bytes\"}),\", \",(0,e.jsx)(t.code,{children:\"memory_usage_bytes\"}),\", and \",(0,e.jsx)(t.code,{children:\"memory_by_tag\"}),\". These are Worker-level memory readings, not the query's peak memory.\"]}),(0,e.jsx)(a,{fields:[{name:\"client_interface\",type:\"SessionKind\",qualifiers:[\"Required\"],description:\"\"},{name:\"duration_ms\",type:\"integer | null\",qualifiers:[\"Optional\"],description:\"\"},{name:\"end_time\",type:\"string | null\",qualifiers:[\"Optional\"],description:\"\"},{name:\"error\",type:\"string | null\",qualifiers:[\"Optional\"],description:\"\"},{name:\"fingerprint\",type:\"integer | null\",qualifiers:[\"Optional\"],description:\"\"},{name:\"query\",type:\"string\",qualifiers:[\"Required\"],description:\"\"},{name:\"requested_by\",type:\"string | null\",qualifiers:[\"Optional\"],description:\"\"},{name:\"session_catalog\",type:\"string | null\",qualifiers:[\"Optional\"],description:\"\"},{name:\"session_id\",type:\"string\",qualifiers:[\"Required\"],description:\"\"},{name:\"session_schema\",type:\"string | null\",qualifiers:[\"Optional\"],description:\"\"},{name:\"start_time\",type:\"string\",qualifiers:[\"Required\"],description:\"\"},{name:\"stats\",type:\"null | QueryStats\",qualifiers:[\"Optional\"],description:\"\"},{name:\"threads\",type:\"integer\",qualifiers:[\"Required\"],description:\"\"},{name:\"user_agent\",type:\"string | null\",qualifiers:[\"Optional\"],description:\"\"},{name:\"uuid\",type:\"string\",qualifiers:[\"Required\"],description:\"\"},{name:\"visible\",type:\"boolean\",qualifiers:[\"Required\"],description:\"\"},{name:\"percentage\",type:\"number\",qualifiers:[\"When available\"],description:\"\"},{name:\"rows_processed\",type:\"integer\",qualifiers:[\"When available\"],description:\"\"},{name:\"total_rows\",type:\"integer\",qualifiers:[\"When available\"],description:\"\"}]})]})}),(0,e.jsx)(s,{sectionId:\"delete-query-query-uuid\",sectionTitle:\"\",anchors:\"delete-query-query-uuid\",ancestors:\"authentication\",index:\"11\",children:(0,e.jsxs)(n,{id:\"delete-query-query-uuid\",method:\"DELETE\",path:\"/query/{query_id}\",summary:\"Cancel a running query.\",authentication:\"HTTP Basic Auth\",permission:\"Access to the query\",parameters:[{name:\"query_id\",type:\"UUID\",location:\"path\",required:!0,description:\"Query identifier to cancel.\"}],requestExamples:[{language:\"curl\",code:`curl -X DELETE \"https://api.altertable.ai/query/<query-id>\" \\\\\n  -H \"Authorization: Basic $ALTERTABLE_BASIC_AUTH_TOKEN\"`}],response:{status:\"200 OK\",language:\"json\",code:`{\n  \"cancelled\": true,\n  \"message\": \"Query cancellation requested\"\n}`},children:[(0,e.jsx)(t.h3,{id:\"response-statuses-8\",children:\"Response statuses\"}),(0,e.jsx)(o,{columns:[\"Status\",\"Description\"],data:[{Status:\"200\",Description:\"Query cancellation response\"},{Status:\"401\",Description:\"Authentication required\"},{Status:\"404\",Description:\"Query not found\"}]}),(0,e.jsx)(t.h3,{id:\"response-fields-5\",children:\"Response fields\"}),(0,e.jsx)(a,{fields:[{name:\"cancelled\",type:\"boolean\",qualifiers:[\"Required\"],description:\"\"},{name:\"message\",type:\"string\",qualifiers:[\"Required\"],description:\"\"}]})]})}),(0,e.jsx)(s,{sectionId:\"get-tasks-task-uuid\",sectionTitle:\"\",anchors:\"get-tasks-task-uuid\",ancestors:\"authentication\",index:\"12\",children:(0,e.jsxs)(n,{id:\"get-tasks-task-uuid\",method:\"GET\",path:\"/tasks/{task_id}\",summary:\"Inspect an asynchronous task returned by the append API.\",authentication:\"HTTP Basic Auth\",permission:\"Access to the task\",parameters:[{name:\"task_id\",type:\"UUID\",location:\"path\",required:!0,description:\"Task identifier returned by an asynchronous request.\"}],requestExamples:[{language:\"curl\",code:`curl \"https://api.altertable.ai/tasks/<task-uuid>\" \\\\\n  -H \"Authorization: Basic $ALTERTABLE_BASIC_AUTH_TOKEN\"`}],response:{status:\"200 OK\",language:\"json\",code:`{\n  \"task_id\": \"019d68d4-c4cb-7e40-ad50-fd4b68c2045e\",\n  \"status\": \"completed\"\n}`},children:[(0,e.jsxs)(t.p,{children:[\"Task status is \",(0,e.jsx)(t.code,{children:\"pending\"}),\" or \",(0,e.jsx)(t.code,{children:\"completed\"}),\".\"]}),(0,e.jsx)(t.h3,{id:\"response-statuses-9\",children:\"Response statuses\"}),(0,e.jsx)(o,{columns:[\"Status\",\"Description\"],data:[{Status:\"200\",Description:\"Task status\"},{Status:\"400\",Description:\"Invalid task ID\"},{Status:\"401\",Description:\"Authentication required\"}]}),(0,e.jsx)(t.h3,{id:\"response-fields-6\",children:\"Response fields\"}),(0,e.jsx)(a,{fields:[{name:\"status\",type:\"TaskStatus\",qualifiers:[\"Required\"],description:\"Current status of the task\"},{name:\"task_id\",type:\"string\",qualifiers:[\"Required\"],description:\"The task ID\"}]})]})}),(0,e.jsxs)(s,{sectionId:\"nested-response-types\",sectionTitle:\"Nested response types\",anchors:\"\",ancestors:\"\",index:\"13\",children:[(0,e.jsx)(t.h2,{id:\"nested-response-types\",children:\"Nested response types\"}),`\n`,(0,e.jsxs)(t.p,{children:[\"The endpoint responses use these nested types. \",(0,e.jsx)(t.a,{href:\"/docs/api-references/lakehouse#get-query-query-uuid\",children:\"Query status\"}),\" includes query statistics, \",(0,e.jsx)(t.a,{href:\"/docs/api-references/lakehouse#post-explain\",children:\"explain\"}),\" returns table scan estimates, and \",(0,e.jsx)(t.a,{href:\"/docs/api-references/lakehouse#post-autocomplete\",children:\"autocomplete\"}),\" returns suggestions.\"]}),`\n`]}),(0,e.jsxs)(s,{sectionId:\"autocompletesuggestion\",sectionTitle:\"AutocompleteSuggestion\",anchors:\"\",ancestors:\"nested-response-types\",index:\"14\",children:[(0,e.jsx)(t.h3,{id:\"autocompletesuggestion\",children:\"AutocompleteSuggestion\"}),`\n`,(0,e.jsx)(a,{fields:[{name:\"extra_char\",type:\"string | null\",qualifiers:[\"Optional\"],description:\"\"},{name:\"suggestion\",type:\"string\",qualifiers:[\"Required\"],description:\"\"},{name:\"suggestion_score\",type:\"integer\",qualifiers:[\"Required\"],description:\"\"},{name:\"suggestion_start\",type:\"integer\",qualifiers:[\"Required\"],description:\"\"},{name:\"suggestion_type\",type:\"string\",qualifiers:[\"Required\"],description:\"\"}]}),`\n`]}),(0,e.jsxs)(s,{sectionId:\"tablescanestimate\",sectionTitle:\"TableScanEstimate\",anchors:\"\",ancestors:\"nested-response-types\",index:\"15\",children:[(0,e.jsx)(t.h3,{id:\"tablescanestimate\",children:\"TableScanEstimate\"}),`\n`,(0,e.jsx)(a,{fields:[{name:\"estimated_rows\",type:\"integer\",qualifiers:[\"Required\"],description:\"Estimated number of rows in the table\"},{name:\"filters\",type:\"string | null\",qualifiers:[\"Optional\"],description:\"Filters applied to the table\"},{name:\"scanned_bytes_estimate\",type:\"integer | null\",qualifiers:[\"Optional\"],description:\"Estimated bytes to scan after filter pruning based on column min/max stats\"},{name:\"scanned_files_estimate\",type:\"integer | null\",qualifiers:[\"Optional\"],description:\"Estimated files to scan after filter pruning based on column min/max stats\"},{name:\"table_name\",type:\"string\",qualifiers:[\"Required\"],description:\"Name of the table\"},{name:\"total_bytes\",type:\"integer | null\",qualifiers:[\"Optional\"],description:\"Total bytes across all data files\"},{name:\"total_files\",type:\"integer | null\",qualifiers:[\"Optional\"],description:\"Total number of data files for this table\"}]}),`\n`]}),(0,e.jsxs)(s,{sectionId:\"querystats\",sectionTitle:\"QueryStats\",anchors:\"\",ancestors:\"nested-response-types\",index:\"16\",children:[(0,e.jsx)(t.h3,{id:\"querystats\",children:\"QueryStats\"}),`\n`,(0,e.jsx)(a,{fields:[{name:\"caching\",type:\"null | CachingStats\",qualifiers:[\"Optional\"],description:\"\"},{name:\"scan\",type:\"null | ScanStats\",qualifiers:[\"Optional\"],description:\"\"}]}),`\n`]}),(0,e.jsxs)(s,{sectionId:\"cachingstats\",sectionTitle:\"CachingStats\",anchors:\"\",ancestors:\"nested-response-types\",index:\"17\",children:[(0,e.jsx)(t.h3,{id:\"cachingstats\",children:\"CachingStats\"}),`\n`,(0,e.jsx)(a,{fields:[{name:\"data_bytes_hits\",type:\"integer\",qualifiers:[\"Required\"],description:\"\"},{name:\"data_bytes_misses\",type:\"integer\",qualifiers:[\"Required\"],description:\"\"},{name:\"data_hits\",type:\"integer\",qualifiers:[\"Required\"],description:\"\"},{name:\"data_misses\",type:\"integer\",qualifiers:[\"Required\"],description:\"\"}]}),`\n`]}),(0,e.jsxs)(s,{sectionId:\"scanstats\",sectionTitle:\"ScanStats\",anchors:\"\",ancestors:\"nested-response-types\",index:\"18\",children:[(0,e.jsx)(t.h3,{id:\"scanstats\",children:\"ScanStats\"}),`\n`,(0,e.jsx)(a,{fields:[{name:\"estimated_result_rows\",type:\"integer\",qualifiers:[\"Required\"],description:\"\"},{name:\"estimated_scanned_rows\",type:\"integer\",qualifiers:[\"Required\"],description:\"\"}]}),`\n`]}),(0,e.jsxs)(s,{sectionId:\"sessionkind\",sectionTitle:\"SessionKind\",anchors:\"\",ancestors:\"nested-response-types\",index:\"19\",children:[(0,e.jsx)(t.h3,{id:\"sessionkind\",children:\"SessionKind\"}),`\n`,(0,e.jsxs)(t.p,{children:[(0,e.jsx)(t.code,{children:\"ArrowFlightSQL\"}),\", \",(0,e.jsx)(t.code,{children:\"HTTP\"}),\", \",(0,e.jsx)(t.code,{children:\"Postgres\"}),\".\"]}),`\n`]}),(0,e.jsxs)(s,{sectionId:\"appenderrorcode\",sectionTitle:\"AppendErrorCode\",anchors:\"\",ancestors:\"nested-response-types\",index:\"20\",children:[(0,e.jsx)(t.h3,{id:\"appenderrorcode\",children:\"AppendErrorCode\"}),`\n`,(0,e.jsxs)(t.p,{children:[(0,e.jsx)(t.code,{children:\"invalid-data\"}),\".\"]}),`\n`]}),(0,e.jsxs)(s,{sectionId:\"taskstatus\",sectionTitle:\"TaskStatus\",anchors:\"\",ancestors:\"nested-response-types\",index:\"21\",children:[(0,e.jsx)(t.h3,{id:\"taskstatus\",children:\"TaskStatus\"}),`\n`,(0,e.jsxs)(t.p,{children:[(0,e.jsx)(t.code,{children:\"pending\"}),\", \",(0,e.jsx)(t.code,{children:\"completed\"}),\".\"]})]})]})}function g(i={}){let{wrapper:t}=i.components||{};return t?(0,e.jsx)(t,{...i,children:(0,e.jsx)(y,{...i})}):y(i)}function l(i,t){throw new Error(\"Expected \"+(t?\"component\":\"object\")+\" `\"+i+\"` to be defined: you likely forgot to import, pass, or provide it.\")}return w(k);})();\n;return Component;"},"_id":"docs/api-references/lakehouse.mdx","_raw":{"sourceFilePath":"docs/api-references/lakehouse.mdx","sourceFileName":"lakehouse.mdx","sourceFileDir":"docs/api-references","contentType":"mdx","flattenedPath":"docs/api-references/lakehouse"},"type":"Docs","path":"/api-references/lakehouse","level":2,"parent":"api-references"}