Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/acceptance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ jobs:
version: "0.11.2"
checksum: "7ac2ca0449c8d68dae9b99e635cd3bc9b22a4cb1de64b7c43716398447d42981"

- name: Set up JDK 21
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
with:
distribution: corretto
java-version: 21

- name: Setup for JFrog
uses: ./.github/actions/jfrog-auth

Expand Down
2 changes: 1 addition & 1 deletion docs/lakebridge/docs/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import TabItem from '@theme/TabItem';
| **Databricks workspace** | Any workspace (production, development, or [free trial](https://www.databricks.com/try-databricks)) |
| **Databricks CLI** | [Install here](https://docs.databricks.com/en/dev-tools/cli/install.html) and configure with PAT or Service Principal |
| **Python** | 3.10.1–3.14.x |
| **Java** | Java 11 or above (required for the Morpheus transpiler) |
| **Java** | Java 21 or above (required for the Morpheus transpiler) |
| **Network access** | GitHub, Maven Central, PyPI |

### Python and Java
Expand Down
4 changes: 2 additions & 2 deletions src/databricks/labs/lakebridge/transpiler/installers.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ def can_install(self, artifact: Path) -> bool:
def install(self, artifact: Path | None = None) -> bool:
if not self.is_java_version_okay():
logger.error(
"The morpheus transpiler requires Java 11 or above. Please install Java and re-run 'install-transpile'."
"The morpheus transpiler requires Java 21 or above. Please install Java and re-run 'install-transpile'."
)
return False
artifact_id = "databricks-morph-plugin"
Expand All @@ -549,7 +549,7 @@ def is_java_version_okay(cls) -> bool:
display_version = repr(raw_version)[2:-1] # Strip b'' from the repr.
logger.warning(f"Java found ({java_executable}), but could not parse the version:\n{display_version}")
return False
case (java_executable, tuple() as old_version) if old_version < (11, 0, 0, 0):
case (java_executable, tuple() as old_version) if old_version < (21, 0, 0, 0):
version_str = ".".join(str(v) for v in old_version)
logger.warning(f"Java found ({java_executable}), but version {version_str} is too old.")
return False
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/transpile/test_installers.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ def test_java_version() -> None:
# Fine, no Java available.
pass
case (java_home, tuple() as version):
assert java_home.exists() and version >= (11, 0, 0, 0)
assert java_home.exists() and version >= (21, 0, 0, 0)
case _:
pytest.fail(f"Unexpected result from WorkspaceInstaller.find_java(): {result!r}")
Loading