KKcorps commented on a change in pull request #5988: URL: https://github.com/apache/incubator-pinot/pull/5988#discussion_r493659544
########## File path: pinot-clients/pinot-jdbc-client/src/main/java/org/apache/pinot/client/PinotDriver.java ########## @@ -37,16 +38,18 @@ public class PinotDriver implements Driver { private static final org.slf4j.Logger LOGGER = LoggerFactory.getLogger(PinotDriver.class); private final String SCHEME = "pinot"; + public static final String TENANT = "tenant"; @Override public Connection connect(String url, Properties info) throws SQLException { try { LOGGER.info("Initiating connection to database for url: " + url); PinotClientTransport pinotClientTransport = new JsonAsyncHttpPinotClientTransportFactory().buildTransport(); - List<String> brokerList = DriverUtils.getBrokersFromURL(url); String controllerUrl = DriverUtils.getControllerFromURL(url); - return new PinotConnection(brokerList, controllerUrl, pinotClientTransport); + Preconditions.checkArgument(info.containsKey(TENANT), "Pinot tenant missing in the properties"); Review comment: done ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org