Skip to content

Conversation

@imjalpreet
Copy link
Member

Description

This PR upgrades the Glue client to AWS SDK v2 and updates the GlueHiveMetastore used by the Presto Lakehouse connectors accordingly.

Key Changes

  • Migrates Glue client usage from SDK v1 to v2.
  • In SDK v1, the async client extended the sync client. In SDK v2, the async client exposes only async methods returning CompletableFuture.
    • Added a utility method to safely block on async calls (join() / get()) for synchronous use cases.
  • Replaces v1 RequestMetricCollector with v2 MetricPublisher for metric collection.
    • Updates metric names and structures where necessary.

Motivation and Context

#26668 and #25529

Impact

hive.metastore.glue.pin-client-to-current-region is deprecated as AWS Region SDK v2 no longer supports the Regions.getCurrentRegion API. The current region will be inferred automatically if Presto is running on an EC2 machine.

Test Plan

Contributor checklist

  • Please make sure your submission complies with our contributing guide, in particular code style and commit standards.
  • PR description addresses the issue accurately and concisely. If the change is non-trivial, a GitHub Issue is referenced.
  • Documented new properties (with its default value), SQL syntax, functions, or other functionality.
  • If release notes are required, they follow the release notes guidelines.
  • Adequate tests were added if applicable.
  • CI passed.
  • If adding new dependencies, verified they have an OpenSSF Scorecard score of 5.0 or higher (or obtained explicit TSC approval for lower scores).

Release Notes

Please follow release notes guidelines and fill in the release notes below.

== RELEASE NOTES ==

Hive Connector Changes
* Upgrade AWS Glue Client to AWS SDK v2

Iceberg Connector Changes
* Upgrade AWS Glue Client to AWS SDK v2

Delta Connector Changes
* Upgrade AWS Glue Client to AWS SDK v2

Hudi Connector Changes
* Upgrade AWS Glue Client to AWS SDK v2

@prestodb-ci prestodb-ci added the from:IBM PR from IBM label Nov 20, 2025
@imjalpreet imjalpreet linked an issue Nov 20, 2025 that may be closed by this pull request
@imjalpreet imjalpreet self-assigned this Nov 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

from:IBM PR from IBM

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[PRESTO-HIVE] Migrate Glue Metastore classes to SDK v2

2 participants