-
Notifications
You must be signed in to change notification settings - Fork 37
Make transpile config flexible #1488
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…esiliency * no-default-transpiler-install: fix typo formatting only install rct and morpheus when installing 'transpiler' module only install rct and morpheus when installing 'transpiler' module
…g-flexible * improve-installer-resiliency: formatting fix typo improve resiliency improve resiliency formatting only install rct and morpheus when installing 'transpiler' module only install rct and morpheus when installing 'transpiler' module
…exible * fix-missing-dependencies: remove duplicate update dependencies fix missing dependency
…-options * improve-installer-resiliency: formatting fix typo improve resiliency improve resiliency # Conflicts: # src/databricks/labs/remorph/install.py
…g-flexible * configure-lsp-custom-options: formatting and failing tests pass transpiler options add init time and check reception update rct config add tests and fix issues fix typo reads config options
❌ 13/14 passed, 1 failed, 1 skipped, 11s total ❌ test_stores_and_fetches_config: databricks.labs.blueprint.installation.SerdeError: transpiler_options.(as dict[str, any]).b: unknown: c (1.722s)
Running from acceptance #313 |
…g-flexible * improve-installer-resiliency: formatting improve resiliency
…ible * improve-LSP-resiliency: increase timeout when waiting for transpile capability registration improve lsp server isolation
* fix-labs.yml: use null instead of None in morpheus installer
input_source: str | None = None | ||
output_folder: str | None = None | ||
error_file_path: str | None = None | ||
sdk_config: dict[str, str] | None = None | ||
skip_validation: bool = False | ||
catalog_name: str = "remorph" | ||
schema_name: str = "transpiler" | ||
transpiler_options: dict[str, Any] | None = None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are the types of the values in this dictionary supposed to be?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any type. That's data provided by the transpiler config, that we don't control. It's any valid JSON.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JSONValue: typing.TypeAlias = None | bool | int | float | str | list["JSONValue"] | dict[str, "JSONValue"]
* main: Improve lsp resiliency (#1491) Hot Fix for Dashboard Names (#1476) Improve installer resiliency (#1484) Patch Contributing Document (#1506) Introduce Documentation for Remorph (#1460) Fix missing dependencies (#1485) Installation Improvements (#1495) Update transpilers.md (#1486) Drop proxy commands (#1493) Fix labs.yml (#1490) Configure lsp custom options (#1487) Add support for DBT (#1456) # Conflicts: # pyproject.toml # src/databricks/labs/remorph/config.py # src/databricks/labs/remorph/install.py # src/databricks/labs/remorph/transpiler/execute.py # tests/unit/test_install.py
Our current code requires various transpile config fields at
install
time, but requires them as parameters when runningtranspile
.This PR fixes the discrepancy by:
install
timetranspile
timetranspile
timeBuilds on top of the following PRs:
#1491
#1490
#1487
#1485
#1484
#1480
#1472
#1456
Also requires databrickslabs/blueprint#189