Skip to content

[BUG]: Failed to call transpile: Source dialect must be set before checking transpiler options #1832

Open
@Codeabunga

Description

@Codeabunga

Is there an existing issue for this?

  • I have searched the existing issues

Category of Bug / Issue

Converter bug

Current Behavior

Cmd: databricks labs lakebridge transpile --source-dialect tsql --input-source src.sql --output-folder out_1 --debug

Output:

14:01:07    DEBUG [d.labs.lakebridge] Setting source_dialect override: 'tsql'
14:01:07    DEBUG [d.labs.lakebridge] Using only transpiler available for dialect 'tsql': 'Morpheus'
14:01:07     INFO [d.labs.lakebridge] Lakebridge will use the Morpheus transpiler.
14:01:07    ERROR [d.l.lakebridge.transpile] Failed to call transpile
Traceback (most recent call last):
  File "/home/dima/.databricks/labs/lakebridge/state/venv/lib/python3.11/site-packages/databricks/labs/blueprint/cli.py", line 118, in _route
    cmd.fn(**kwargs)
  File "/home/dima/.databricks/labs/lakebridge/lib/src/databricks/labs/lakebridge/cli.py", line 131, in transpile
    config, engine = checker.check()
                     ^^^^^^^^^^^^^^^
  File "/home/dima/.databricks/labs/lakebridge/lib/src/databricks/labs/lakebridge/cli.py", line 485, in check
    self._check_transpiler_options(engine)
  File "/home/dima/.databricks/labs/lakebridge/lib/src/databricks/labs/lakebridge/cli.py", line 454, in _check_transpiler_options
    assert self._config.source_dialect is not None, "Source dialect must be set before checking transpiler options."
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: Source dialect must be set before checking transpiler options.
Error: unexpected end of JSON input

During installation the [0] Set it later option was selected for Select the source dialect.

databricks -v
Databricks CLI v0.258.0

cat .databricks/labs/lakebridge/state/version.json
{"version":"v0.10.4","date":"2025-07-15T13:13:30.634008556+02:00"}

Expected Behavior

No response

Steps To Reproduce

No response

Relevant log output or Exception details

Logs Confirmation

  • I ran the command line with --debug
  • I have attached the lsp-server.log under USER_HOME/.databricks/labs/remorph-transpilers/<converter_name>/lib/lsp-server.log

Sample Query

Operating System

Linux

Version

latest via Databricks CLI

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions