[BUG]: Transpile CLI cannot read the configuration file it wrote to the workspace #1541
Open
1 task done
Labels
bug
Something isn't working
Is there an existing issue for this?
Category of Bug / Issue
Other
Current Behavior
During routine installation of the pluggable transpiler components, a configuration file (
~/.remorph/config.json
) is written into the user's workspace home directory. This is loaded when transpiling, but crashes because the YAML cannot be deserialised.Expected Behavior
The CLI should be able to read the configuration file that it wrote.
Steps To Reproduce
Install
remorph@main
(4e262a932eaba59d486af8a91e111f1a7a6a0c11
) using the Databricks CLI:Install the transpiler plugins:
Accept default answers where possible. For questions without defaults I used:
tsql
/tmp/foobar
Run the transpiler. Due to [BUG]: Transpile invocation fails without most arguments being provided #1538 the arguments will need to be provided, but it will load the configuration from the workspace:
databricks labs remorph transpile --transpiler-config-path "${HOME}/.databricks/labs/remorph-transpilers/remorph-community-transpiler/lib/config.yml" --source-dialect tsql --input-source /tmp/foobar --output-folder transpiled --error-file-path errors.log --catalog-name remorph --schema-name transpiler --debug
The transpiler will fail to start due to an error:
The configuration file that was written to the workspace (
~/.remorph/config.json
) is this:Relevant log output or Exception details
Operating System
macOS
Version
latest via Databricks CLI
The text was updated successfully, but these errors were encountered: