You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by "gortiz (via GitHub)" <gi...@apache.org> on 2023/02/21 12:37:56 UTC

[GitHub] [pinot] gortiz commented on a diff in pull request #10292: [feature] Add jdbc multistage support

gortiz commented on code in PR #10292:
URL: https://github.com/apache/pinot/pull/10292#discussion_r1112995453


##########
pinot-clients/pinot-jdbc-client/src/main/java/org/apache/pinot/client/PinotConnection.java:
##########
@@ -38,11 +40,16 @@
 public class PinotConnection extends AbstractBaseConnection {
 
   private static final Logger LOGGER = LoggerFactory.getLogger(Connection.class);
+  protected static final String[] POSSIBLE_QUERY_OPTIONS = {
+    QueryOptionKey.ENABLE_NULL_HANDLING,
+    QueryOptionKey.USE_MULTISTAGE_ENGINE
+  };
   private org.apache.pinot.client.Connection _session;
   private boolean _closed;
   private String _controllerURL;
   private PinotControllerTransport _controllerTransport;
-  private final boolean _enableNullHandling;
+  private final Map<String, Boolean> _queryOptions = new HashMap<String, Boolean>();

Review Comment:
   I think it is nice to generalise the query options but... couldn't values be other things like ints? I would prefer to use Object as the value of the map and change `DriverUtils::createSetQueryOptionString` to be able to deal with, at least, booleans and integers. Strings would be also fine, but they I'm not sure whether they could be used to do SQL injections or not.
   
   



-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org