Skip to content

docs: document a new Switch built-in prompt and reference prompts#2489

Open
hiroyukinakazato-db wants to merge 2 commits into
mainfrom
docs/switch-sas-and-reference-prompts
Open

docs: document a new Switch built-in prompt and reference prompts#2489
hiroyukinakazato-db wants to merge 2 commits into
mainfrom
docs/switch-sas-and-reference-prompts

Conversation

@hiroyukinakazato-db

@hiroyukinakazato-db hiroyukinakazato-db commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

What

Document two Switch capabilities that recently shipped in the Switch repo but are not yet reflected in the Lakebridge docs:

  • the sas built-in prompt (SAS program to Databricks Python notebook), and
  • Switch's bundled reference prompts and how to use them.

Why

Both landed in Switch (databrickslabs/switch#62 SAS, databrickslabs/switch#89 Teradata stored-procedures reference prompt) but the user-facing docs listed neither, so users had no way to discover them. The sas row keeps the supported-source table in sync with what --source-dialect actually accepts. The reference-prompts section explains a class of prompts that, unlike built-ins, are not auto-selected and must be wired in explicitly.

Changes

  • index.mdx: add sas to the "Built-in Prompts: Non-SQL Sources" table, alongside python and scala.
  • customizing_switch.mdx: add a "Reference Prompts" section covering what they are (resources/reference_prompts/, e.g. teradata_stored_procedures.yml = Teradata stored procedure to Databricks SQL) and how to use one (set conversion_prompt_yaml in switch_config.yml to the prompt's workspace path). Notes that they do not appear in the supported-format tables because they are not auto-selected.

Verification

  • npm run build (Docusaurus) passes: no broken links or MDX errors.
  • The sas built-in is covered by Switch's code-to-notebook E2E, verified green.

@CLAassistant

CLAassistant commented Jun 2, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@codecov

codecov Bot commented Jun 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 67.02%. Comparing base (9d852a2) to head (b9a0648).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2489   +/-   ##
=======================================
  Coverage   67.02%   67.02%           
=======================================
  Files         103      103           
  Lines        9434     9434           
  Branches     1017     1017           
=======================================
  Hits         6323     6323           
  Misses       2926     2926           
  Partials      185      185           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@hiroyukinakazato-db hiroyukinakazato-db changed the title docs: document the SAS built-in and Switch reference prompts docs: document a new Switch built-in prompt and reference prompts Jun 2, 2026
@hiroyukinakazato-db hiroyukinakazato-db force-pushed the docs/switch-sas-and-reference-prompts branch 2 times, most recently from 8f3c6fa to 4516969 Compare June 2, 2026 08:24
- index.mdx: list the sas built-in (SAS program -> Databricks Python
  notebook) in the Non-SQL Sources table, alongside python/scala.
- customizing_switch.mdx: add a Reference Prompts section documenting
  resources/reference_prompts/ (e.g. teradata_stored_procedures.yml).
  Reference prompts are not auto-selected; set conversion_prompt_yaml in
  switch_config.yml to the prompt's workspace path.
@hiroyukinakazato-db hiroyukinakazato-db force-pushed the docs/switch-sas-and-reference-prompts branch from 4516969 to 5218660 Compare June 2, 2026 08:29
@hiroyukinakazato-db hiroyukinakazato-db marked this pull request as ready for review June 2, 2026 08:37
@hiroyukinakazato-db hiroyukinakazato-db requested a review from a team as a code owner June 2, 2026 08:37
@github-actions

github-actions Bot commented Jun 2, 2026

Copy link
Copy Markdown

✅ 158/158 passed, 8 flaky, 3 skipped, 1h19m6s total

Flaky tests:

  • 🤪 test_installs_and_runs_local_bladebridge (11.876s)
  • 🤪 test_installs_and_runs_pypi_bladebridge (21.812s)
  • 🤪 test_transpiles_informatica_to_sparksql (23.887s)
  • 🤪 test_transpiles_informatica_to_sparksql_non_interactive[False] (23.352s)
  • 🤪 test_transpiles_informatica_to_sparksql_non_interactive[True] (4.127s)
  • 🤪 test_transpile_teradata_sql_non_interactive[False] (24.758s)
  • 🤪 test_transpile_teradata_sql (25.865s)
  • 🤪 test_transpile_teradata_sql_non_interactive[True] (5.673s)

Running from acceptance #4755

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants