Skip to content

[presto][diff_train] Fix OSS Spark modules to produce Java 8 bytecode after airbase 109 upgrade (#27416)#27416

Open
shelton408 wants to merge 1 commit into
prestodb:masterfrom
shelton408:export-D97804331
Open

[presto][diff_train] Fix OSS Spark modules to produce Java 8 bytecode after airbase 109 upgrade (#27416)#27416
shelton408 wants to merge 1 commit into
prestodb:masterfrom
shelton408:export-D97804331

Conversation

@shelton408

@shelton408 shelton408 commented Mar 23, 2026

Copy link
Copy Markdown
Contributor

Summary:

#27130 (meta internal revision D96822883) bumped airlift airbase from v108 to v109, which sets
project.build.targetJdk=17 by default. Airbase configures
maven-compiler-plugin with <source>${project.build.targetJdk}</source>
and <target>${project.build.targetJdk}</target>, so all modules now
produce Java 17 bytecode (class file version 61.0).

The Spark launcher jar runs on Spark executors using Java 8, which only
supports class file versions up to 52.0. This causes
UnsupportedClassVersionError at startup, surfacing as
WRAPPER_ERROR_UNKNOWN in Sapphire QueryBank runs.

This diff overrides maven-compiler-plugin to target Java 8 in the two
OSS modules that end up on the Spark classpath:

  • presto-spark-launcher
  • presto-spark-classloader-interface

Differential Revision: D97804331

@steveburnett

Copy link
Copy Markdown
Contributor
  • Please add a release note - or NO RELEASE NOTE - following the Release Notes Guidelines to pass the failing but not required CI check.

  • Please edit the PR title to follow semantic commit style to pass the failing and required CI check. See the failure in the test for advice. If you can't edit the PR title, let us know and we can help.

@meta-codesync meta-codesync Bot changed the title [presto][diff_train] Fix OSS Spark modules to produce Java 8 bytecode after airbase 109 upgrade [presto][diff_train] Fix OSS Spark modules to produce Java 8 bytecode after airbase 109 upgrade (#27416) Mar 24, 2026
shelton408 added a commit to shelton408/presto that referenced this pull request Mar 24, 2026
… after airbase 109 upgrade (prestodb#27416)

Summary:

[prestodb#27130](prestodb#27130) (meta internal revision D96822883) bumped airlift airbase from v108 to v109, which sets
`project.build.targetJdk=17` by default. Airbase configures
`maven-compiler-plugin` with `<source>${project.build.targetJdk}</source>`
and `<target>${project.build.targetJdk}</target>`, so all modules now
produce Java 17 bytecode (class file version 61.0).

The Spark launcher jar runs on Spark executors using Java 8, which only
supports class file versions up to 52.0. This causes
`UnsupportedClassVersionError` at startup, surfacing as
`WRAPPER_ERROR_UNKNOWN` in Sapphire QueryBank runs.

This diff overrides `maven-compiler-plugin` to target Java 8 in the two
OSS modules that end up on the Spark classpath:
- `presto-spark-launcher`
- `presto-spark-classloader-interface`

Differential Revision: D97804331
… after airbase 109 upgrade (prestodb#27416)

Summary:

[prestodb#27130](prestodb#27130) (meta internal revision D96822883) bumped airlift airbase from v108 to v109, which sets
`project.build.targetJdk=17` by default. Airbase configures
`maven-compiler-plugin` with `<source>${project.build.targetJdk}</source>`
and `<target>${project.build.targetJdk}</target>`, so all modules now
produce Java 17 bytecode (class file version 61.0).

The Spark launcher jar runs on Spark executors using Java 8, which only
supports class file versions up to 52.0. This causes
`UnsupportedClassVersionError` at startup, surfacing as
`WRAPPER_ERROR_UNKNOWN` in Sapphire QueryBank runs.

This diff overrides `maven-compiler-plugin` to target Java 8 in the two
OSS modules that end up on the Spark classpath:
- `presto-spark-launcher`
- `presto-spark-classloader-interface`

Differential Revision: D97804331
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants