You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2021/09/03 13:35:21 UTC

[GitHub] [druid] Brimborion opened a new issue #11656: Issue with numerical properties using Avatica JDBC driver

Brimborion opened a new issue #11656:
URL: https://github.com/apache/druid/issues/11656


   ### Affected Version
   
   Druid 0.21.1
   Avatica 1.18.0
   
   ### Description
   
   When I send a query via JDBC driver with a numerical property (eg. numParallelCombineThreads), I get a ClassCastException.
   
   This is an example of how I send the query with context property :
   ```
   val properties = new Properties()
   properties.setProperty("numParallelCombineThreads", "4")
   val connection = DriverManager.getConnection(url, properties)
   val statement = connection.createStatement()
   val resultSet = statement.executeQuery(query)
   ```
   and the response I get
   ```
   Exception in thread "main" org.apache.calcite.avatica.AvaticaSqlException: Error -1 (00000) : Error while executing SQL "select caseid from "2a03cee0-2511-4ee2-b2e9-0068527fc437" group by caseid": Remote driver error: RuntimeException: java.util.concurrent.ExecutionException: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer
   ```
   I also tried with put method, but I get the same error
   ```
   properties.put("numParallelCombineThreads", 4)
   ```
   Requests with string and boolean properties are processed successfully, the problem arise only with numerical values.
   


-- 
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@druid.apache.org

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



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


[GitHub] [druid] FrankChen021 commented on issue #11656: Issue with numerical properties using Avatica JDBC driver

Posted by GitBox <gi...@apache.org>.
FrankChen021 commented on issue #11656:
URL: https://github.com/apache/druid/issues/11656#issuecomment-977878989


   @Brimborion Could you re-produce this problem and check the log of router or broker to see what's the exception stack trace?


-- 
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@druid.apache.org

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



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