动态查询参数 Apache Drill。:java.sql.SQLFeatureNotSupportedException:不支持准备语句动态参数

Dynamic query Paramters Apache Drill.: java.sql.SQLFeatureNotSupportedException: Prepared-statement dynamic parameters are not supported

如何在 Apache drill 中设置动态查询参数。我尝试并收到错误消息:java.sql.SQLFeatureNotSupportedException:

Prepared-statement dynamic parameters are not supported.

难道drill不支持这样的功能,如:

String sql = "select employee_id,first_name,last_name from dfs.'employee.json' where id = ?";
PreparedStatement preparedStatement =   conn.prepareStatement(sql);
preparedStatement.setString(1, 23);
ResultSet rs = preparedStatement.executeQuery(sql);

任何人都可以建议解决这个问题,如果有的话

到目前为止,还没有这种支持。 Drill 不支持准备语句动态 parameters.If 仍然有人想继续为他们的查询使用这样的动态参数,他们必须这样设置 using 语句:

    Statement statement = connection.createStatement();
    String queryParam = "Computers"
    String sqlQuery = "select employee_id,first_name,last_name from dfs.'employee.json' where department LIKE'" +queryParam +"'"+"and conditions<...> ";
    ResultSet rs = statement.executeQuery(sqlQuery);
                while(rs.next)
               {
                 do as you need
                }