Skip to content

Fix Pinot connector to respect pinot.broker-url when proxy is enabled #26170

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

shreyas-dev
Copy link
Member

@shreyas-dev shreyas-dev commented Jul 10, 2025

Description

Add configuration validation to prevent conflicting pinot.broker-url and pinot.proxy.enabled settings in the Pinot connector.

Previously, users could configure both pinot.broker-url and pinot.proxy.enabled=true simultaneously, which would result in confusing behavior where the explicit broker URL would silently take precedence over the proxy setting without any indication to the user.

Changes made:

  • Add @AssertTrue validation in PinotConfig.isValidBrokerProxyConfiguration() to reject conflicting settings

Related to: #25747

Release notes

(x) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
( ) Release notes are required, with the following suggested text:

@cla-bot cla-bot bot added the cla-signed label Jul 10, 2025
@github-actions github-actions bot added the pinot Pinot connector label Jul 10, 2025
@shreyas-dev shreyas-dev force-pushed the fix-pinot-broker-url branch from 648c034 to 7de70b5 Compare July 11, 2025 05:38
brokerHostAndPort = config.getBrokerUrl();
this.brokerHostAndPort = config.getBrokerUrl();

if (this.brokerHostAndPort.isPresent() && this.proxyEnabled) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be validated in the config class and rejected instead

@shreyas-dev shreyas-dev force-pushed the fix-pinot-broker-url branch from 7de70b5 to a96b3be Compare July 15, 2025 13:14
@shreyas-dev shreyas-dev force-pushed the fix-pinot-broker-url branch from a96b3be to e112180 Compare July 15, 2025 13:16
Copy link

cla-bot bot commented Jul 15, 2025

Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to [email protected]. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla

@cla-bot cla-bot bot removed the cla-signed label Jul 15, 2025
@shreyas-dev shreyas-dev force-pushed the fix-pinot-broker-url branch from 404aa47 to 2721942 Compare July 15, 2025 13:34
Copy link

cla-bot bot commented Jul 15, 2025

Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to [email protected]. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla

@shreyas-dev shreyas-dev force-pushed the fix-pinot-broker-url branch from 2721942 to 605ab9d Compare July 15, 2025 13:40
@cla-bot cla-bot bot added the cla-signed label Jul 15, 2025
@shreyas-dev shreyas-dev force-pushed the fix-pinot-broker-url branch from 605ab9d to 734ba83 Compare July 15, 2025 15:06
@chenjian2664
Copy link
Contributor

TestPinotConfig.testExplicitPropertyMappings:89 Untested properties [pinot.proxy.enabled] Please fix ci failure, it's related to the change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed pinot Pinot connector
Development

Successfully merging this pull request may close these issues.

3 participants