Files
superset2/docs/developer_docs_versioned_docs/version-6.1.0/api/export-sql-query-results-to-csv-with-streaming.api.mdx
Superset Dev 5a5a0e70fc fix(docs): regenerate 6.1.0 snapshots with depth-aware import rewriter
The previous import-path fixer only matched two-level relative paths
(`../../src/` and `../../data/`), missing files at deeper nesting in the
section tree. After the 6.1.0 cut for developer_docs, ~50 component MDX
files at depth 3 still referenced `../../../src/components/StorybookWrapper`
(should have been `../../../../src/...`), and the components Button page
referenced `../../../superset-frontend/...` (should have been
`../../../../superset-frontend/...`). The Docusaurus production build
failed with module-not-found errors as a result.

Replace the pattern-specific regex with a depth-aware walker that
- counts the file's nesting depth within the snapshot,
- bumps any relative import whose `../` count exceeds that depth (i.e.
  the import escapes the section root and so must compensate for the
  extra `version-X.X.X/` directory the snapshot lives under),
- skips fenced code blocks so documented sample imports (e.g. Playwright
  page-object examples in developer_docs/testing/e2e-testing.md) are not
  rewritten.

Re-cut all four sections under the new fixer. yarn build now passes
locally.
2026-05-04 08:53:25 -07:00

67 lines
3.2 KiB
Plaintext

---
id: export-sql-query-results-to-csv-with-streaming
title: "Export SQL query results to CSV with streaming"
description: "Export SQL query results to CSV with streaming"
sidebar_label: "Export SQL query results to CSV with streaming"
hide_title: true
hide_table_of_contents: true
api: eJzFV21v2zYQ/iuHw4AmmBw3WwcUKvohDVqsXdBks7sXREFKS2eLjUSqJGXHE/TfhyNlRX7pinUf8skydTze89xzx1ODhj7XZN0rna0xbjDVypFy/CiqqpCpcFKr8f1otVqN5tqUo9oUpFKdUcZGNs2pFPxUGV2RcZKs91NIUu5WeqOMbGpkxZ4wxmlOMPn1Aj7XZNZgyNaFA5mRcnIuyWCEbl0RxmidkWqBbYR0X1HqKLs1emX3PV76B1HAxg6MXkGqa+Vgrg1URi8MWQvOiPSOffZnSOVoQYYPmcuClCjpX/xvTLxXlxMfqI3bD7ntV/TsE6UOW17a9vra74VKGFGSI2Mx8tmQhql1pqaWF2yllQ2k/vD06U6OHN27cWqX26nYDWbv6IkzJE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RSzfX+1D2pKzKW/HQtHd9xwyXWTrBbngZKrCuFv1nDEP/ftbx1fH/7+hG7KoT004oXWNPJ/BpFJTmWU4bppY7+Y2VL7Bgh6yIk/hqbZiYsfTBF2/KyD41v0gft+Xs1wtCBfH3c0Zq1OuglXqpFzQF+/TuNKyO4OEtT8k12s7n/gGB19MXMnRAjnHUfhaXO2HbgMRr+CeHyzDqgrU9298AwuldCrQcRNE2wCL2TKzSE6m8dbG/atv0H1AwSiw==
sidebar_class_name: "post api-method"
info_path: developer-docs/api/superset
custom_edit_url: null
hide_send_button: true
show_extensions: true
---
import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
import ParamsDetails from "@theme/ParamsDetails";
import RequestSchema from "@theme/RequestSchema";
import StatusCodes from "@theme/StatusCodes";
import OperationTabs from "@theme/OperationTabs";
import TabItem from "@theme/TabItem";
import Heading from "@theme/Heading";
import Translate from "@docusaurus/Translate";
<Heading
as={"h1"}
className={"openapi__heading"}
children={"Export SQL query results to CSV with streaming"}
>
</Heading>
<MethodEndpoint
method={"post"}
path={"/api/v1/sqllab/export_streaming/"}
context={"endpoint"}
>
</MethodEndpoint>
Export SQL query results to CSV with streaming
<Heading
id={"request"}
as={"h2"}
className={"openapi-tabs__heading"}
>
<Translate id="theme.openapi.request.title">Request</Translate>
</Heading>
<ParamsDetails>
</ParamsDetails>
<RequestSchema
{...require("./export-sql-query-results-to-csv-with-streaming.RequestSchema.json")}
>
</RequestSchema>
<StatusCodes
{...require("./export-sql-query-results-to-csv-with-streaming.StatusCodes.json")}
>
</StatusCodes>