Add Switch transpiler with --include-llm-transpiler
flag
#2066
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes
This PR adds Switch, an LLM-powered transpiler, as an optional component in Lakebridge's
install-transpile
workflow. Switch installation is controlled by the new--include-llm-transpiler
flag.What does this PR do?
Implements complete Switch transpiler integration with idempotent installation, workspace deployment, job management, and resource configuration including Unity Catalog Volume for Switch.
Relevant implementation details
CLI Integration:
--include-llm-transpiler
flag toinstall-transpile
command (default:false
)SwitchInstaller Implementation:
TranspilerInstaller
with unified constructor signaturedatabricks-switch-plugin
)/Users/{user}/.lakebridge/switch/
LAKEBRIDGE_Switch
job with NotebookTask for parallel LLM processingUninstall Integration:
databricks labs uninstall lakebridge
workflowCaveats/things to watch out for when reviewing:
--include-llm-transpiler
flag to install Switchinclude-llm-transpiler, "true"
to user agentmax-args
from 12 to 13 inpyproject.toml
to accommodate new CLI parameterLinked issues
Resolves #2048
Functionality
databricks labs lakebridge install-transpile
(adds--include-llm-transpiler
flag and Switch installation support)databricks labs uninstall lakebridge
(adds Switch job and resource cleanup)Tests