File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
plugin/trino-pinot/src/main/java/io/trino/plugin/pinot Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -270,4 +270,10 @@ public boolean allUrlSchemesEqual()
270
270
.distinct ()
271
271
.count () == 1 ;
272
272
}
273
+
274
+ @ AssertTrue (message = "Invalid configuration: pinot.broker-url and pinot.proxy.enabled cannot both be set." )
275
+ public boolean isValidBrokerProxyConfiguration ()
276
+ {
277
+ return !(brokerUrl .isPresent () && proxyEnabled );
278
+ }
273
279
}
Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ public PinotClient(
170
170
asyncReloading (CacheLoader .from (this ::getAllTables ), executor ));
171
171
this .controllerAuthenticationProvider = controllerAuthenticationProvider ;
172
172
this .brokerAuthenticationProvider = brokerAuthenticationProvider ;
173
- brokerHostAndPort = config .getBrokerUrl ();
173
+ this . brokerHostAndPort = config .getBrokerUrl ();
174
174
}
175
175
176
176
public static void addJsonBinders (JsonCodecBinder jsonCodecBinder )
You can’t perform that action at this time.
0 commit comments