Skip to content

[FEATURE]: Allow specifying custom Switch config file for llm-transpile command #2255

@hiroyukinakazato-db

Description

@hiroyukinakazato-db

Is there an existing issue for this?

  • I have searched the existing issues

Category of feature request

Transpiler

Problem statement

The llm-transpile CLI command currently uses a single default Switch configuration. When users want to try multiple conversion patterns (e.g., different output formats or comment languages), they must modify the configuration file each time, which prevents parallel execution of different conversion patterns.

Switch supports configuration options such as:

  • target_type: notebook (default), file, sdp
  • comment_lang: English (default), Japanese, etc.
  • max_fix_attempts: Number of retry attempts

Proposed Solution

Add an optional --switch-config-path parameter to the llm-transpile command that accepts a path to a Switch configuration YAML file. When omitted, the default configuration is used (current behavior).

Example usage:

databricks labs lakebridge llm-transpile \
  --input-source /path/to/input \
  --output-ws-folder /path/to/output \
  --source-dialect pyspark \
  --switch-config-path /Workspace/Users/user@example.com/switch_config.yaml \
  --accept-terms true

Benefits:

  • Users can run multiple conversion patterns in parallel with different config files
  • No need to modify a shared config file between runs
  • Enables easier E2E testing of different configuration combinations

Additional Context

No response

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions