trinodb / trino

Official repository of Trino, the distributed SQL query engine for big data, formerly known as PrestoSQL (https://trino.io)
https://trino.io
Apache License 2.0
10.1k stars 2.92k forks source link

Use and require Java 23 #21316

Open wendigo opened 5 months ago

wendigo commented 5 months ago

This issues aims to detail and track the progress towards adopting Java 23 as build and runtime requirement for Trino.

Background and motivation

Trino completely adopted Java 22 as of Trino 44x. See https://trino.io/blog/2024/03/13/java-22 and https://trino.io/docs/current/release/release-44x.html. Java 22 is an STS release of Java.

Java 23 is a STS Java release and scheduled to ship in September 2024 (https://mail.openjdk.org/pipermail/jdk-dev/2024-March/008832.html) Adoption timing in Trino will depend on testing results and feedback, as well as the time for implementation and collaboration with Trino community members.

Specifically, for Java 23, these are some features that we want to be able to leverage:

Proposed schedule for JDK 23 release is:

The plan is to test and ensure runtime and compile JDK 23 compatibility before GA.

Implementation

Following steps are roughly in order:

mosabua commented 5 months ago

Nice @wendigo !

wendigo commented 1 month ago

JDK 23 is ready: https://github.com/trinodb/trino/pull/21732