Skip to content
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

Add session property for jdbc metadata, pool size, caching enabled #23843

Closed

Conversation

konjac-h
Copy link
Contributor

@konjac-h konjac-h commented Oct 16, 2024

Description

This pull request enables the control of JDBC in-memory metadata caching through the use of a session property. Additionally, it also provides the capability to manage the thread pool size.

Motivation and Context

Currently, Presto does not have the capability to control the JDBC metadata thread pool size and caching for certain sources. This pull request aims to address this limitation by making these features available in Presto.

Impact

as above

Test Plan

build & deploy to verifier that the change will be picked up by inspecting session property at query level

Contributor checklist

  • Please make sure your submission complies with our development, formatting, commit message, and attribution guidelines.
  • 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.

Release Notes

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

== NO RELEASE NOTE ==

@konjac-h konjac-h requested a review from a team as a code owner October 16, 2024 10:30
@konjac-h konjac-h force-pushed the improve-xdb-caching-controability branch from 7e4d71a to 832e065 Compare October 16, 2024 10:32
namya28 and others added 25 commits October 16, 2024 04:48
Co-authored-by: Steve Burnett <burnett@pobox.com>
Co-authored-by: Steve Burnett <burnett@pobox.com>
Co-authored-by: Steve Burnett <burnett@pobox.com>
As part of new native plan checker SPI, the new property
eager-plan-validation-enabled will enable the eager building and
validation of a logical plan so that any errors or incompatibilities
in the plan will cause the query to fail quickly, before queueing
and cluster resources are assigned to keep queries with invalid
plans from holding slots in the queue.

RFC: https://github.com/prestodb/rfcs/blob/main/RFC-0008-plan-checker.md
This adds a new SPI to support plugin custom plan checkers to be
provided for validating intermediate, final, and fragment stages of
a logical plan. The motivation for this is to allow for a native plan
checker that will eagerly validate a plan on the native sidecar to
quickly fail the query if there are incompatibilities.

Add unit test to verify that a queued query can be validated
and fail while queued. This is done by using the new custom
plan checker SPI to add plugin that will trigger a failure when
validating the plan.

See also: prestodb#23596
RFC: https://github.com/prestodb/rfcs/blob/main/RFC-0008-plan-checker.md
Adds a new counter `presto_cpp.memory_pushback_reduction_bytes`
that keeps track of the actual used memory reduction for every
memory pushback attempt.
Update the `ResourceGroupView` component
to properly display a subgroup which is in
3rd or more level.

Signed-off-by: Yihong Wang <yh.wang@ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.