-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Enable queries with explicit broker URL in Pinot #17791
Conversation
// Use global broker URI if provided explicitly via config | ||
if (brokerUri.isPresent()) { | ||
URI uri = brokerUri.get(); | ||
return HostAndPort.fromParts(uri.getHost(), uri.getPort()).toString(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No requested change. We build HostAndPort
and change to String
here and then revert to HostAndPort
in getBrokerHttpUriBuilder
. This is a redundant cast.
plugin/trino-pinot/src/main/java/io/trino/plugin/pinot/PinotConfig.java
Outdated
Show resolved
Hide resolved
Could you update the PR title so that other people can understand it more easily? |
ef6e74a
to
23bf4cb
Compare
23bf4cb
to
1685a2b
Compare
This pull request has gone a while without any activity. Tagging the Trino developer relations team: @bitsondatadev @colebow @mosabua |
plugin/trino-pinot/src/main/java/io/trino/plugin/pinot/PinotConfig.java
Outdated
Show resolved
Hide resolved
return brokerUrl; | ||
} | ||
|
||
@Config("pinot.broker-url") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(No requested change) This is not "URL" to be exact. It's good for consistency with controller property though.
Some Pinot setups don't expose publicly available broker or server URLs. This change will make possible configuring connector to make broker queries.
1685a2b
to
67ba0b7
Compare
Description
Allow using connector in broker-only queries mode with Pinot installations where broker URLs returned by Pinot APIs are unreachable to Trino.
Additional context and related issues
Setting config in the following way
will make connector execute broker-only queries to explicit broker URL.
Release notes
( ) This is not user-visible or 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: