Files
superset2/docs/developer_docs_versioned_docs/version-6.1.0/api/validate-a-sql-expression-against-a-datasource.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

69 lines
3.6 KiB
Plaintext

---
id: validate-a-sql-expression-against-a-datasource
title: "Validate a SQL expression against a datasource"
description: "Validate a SQL expression against a datasource"
sidebar_label: "Validate a SQL expression against a datasource"
hide_title: true
hide_table_of_contents: true
api: eJzFWG1v3DYM/isCMaAJ5uSarQMKF/2QZunSrkiz3LXdEAeZzubFam3JleRLbob/+0DJb3fndOsLmk+5yBSp5yEpkqqg4JrnaFEbCC8qSNDEWhRWKAkhzFJkdlUgUwuWcMuNKnWMEICgrwW3KQQgeY4QQv/9irZAABo/lkJjAqHVJQZg4hRzDmEFTiAEY7WQ11DXwZhhkZBZm+LnmBbJ/zEspMVr1FDXl14ajX2mkhWJxEpalJZ+8qLIRMzpTJP3hg5WDXQVWhWorUDjtmW8NEi/1pFM/3jF/DfP5EJpthCZRc3wttBojFDSQAAoyxzCC3h3cnx+DAGcHL59cfobXAabbAXQb9y2R8yRzV6GWcWWPBMJt8TfJ7R5xzmVC15mFkK4SVHTrrvjYt3Y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t7MLWK6oKrayKVVaHk0lFquqwogyvt7QdlcaqvFURwJJrwecZto2vU7M+pdAxB5NH8y/9cdfzuv6T2eyMdXrqAOg06/o6vFuHm/oyQ99o+GRKsxdnpISwrCsZparZ76RrN362pWZKRdKDdAWngrkL+edK55z0vXw3g2aWpeT2X/uBzoGuA9p8pXGh0aRfqoS0GCXP+8H4+BuMWn76q2mCX6iRQbksUBskyq2wZGu4RHHp5ZYHnm5jc+66i+YR4LMTas1814FYvLWTIuPCdWwueKsm1y6AF4LOckC7h6rC7cePcPNRYiTnIAAKTx9/F1BVc27wjc7qmpY/lqipAbnsU8A/0QhDvxMIFzwzuAWka8Zg57xpvXfZnS85o7Db+U2u/MFL+g8CqlkjLz3u+eZLD3XHK8/XHUskUF9SZrvS4ljzMsMiMdCx1bQSJL/jMI7RVdW7ZS8HlzNVNghg3jwm5SqhPZrf0LMUv/HnVY4W/y5Aa762l76j9TopB2k0GkRml6vND0I1ykhVeQlfI+uOINeGgBuR/wX1iPLN
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={"Validate a SQL expression against a datasource"}
>
</Heading>
<MethodEndpoint
method={"post"}
path={"/api/v1/datasource/{datasource_type}/{datasource_id}/validate_expression/"}
context={"endpoint"}
>
</MethodEndpoint>
Validate a SQL expression against a datasource
<Heading
id={"request"}
as={"h2"}
className={"openapi-tabs__heading"}
>
<Translate id="theme.openapi.request.title">Request</Translate>
</Heading>
<ParamsDetails
{...require("./validate-a-sql-expression-against-a-datasource.ParamsDetails.json")}
>
</ParamsDetails>
<RequestSchema
{...require("./validate-a-sql-expression-against-a-datasource.RequestSchema.json")}
>
</RequestSchema>
<StatusCodes
{...require("./validate-a-sql-expression-against-a-datasource.StatusCodes.json")}
>
</StatusCodes>