[ https://issues.apache.org/jira/browse/KYLIN-2643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16097335#comment-16097335 ]
Shaofeng SHI commented on KYLIN-2643: ------------------------------------- The class has been renamed to PushDownRunnerJdbcImpl, there is the unclosed statements. I fixed it with https://github.com/apache/kylin/commit/6ca141a9f2e6cd5bc67fc37ec0fba61b1fc2d49c > PreparedStatement should be closed in QueryServiceV2#execute() > -------------------------------------------------------------- > > Key: KYLIN-2643 > URL: https://issues.apache.org/jira/browse/KYLIN-2643 > Project: Kylin > Issue Type: Bug > Components: Query Engine > Reporter: Ted Yu > Assignee: Shaofeng SHI > Priority: Minor > Labels: newbie, scope > > {code} > PreparedStatement preparedState = > conn.prepareStatement(correctedSql); > processStatementAttr(preparedState, sqlRequest); > for (int i = 0; i < ((PrepareSqlRequest) > sqlRequest).getParams().length; i++) { > setParam(preparedState, i + 1, ((PrepareSqlRequest) > sqlRequest).getParams()[i]); > } > resultSet = preparedState.executeQuery(); > {code} > preparedState should be closed upon returning from the method. -- This message was sent by Atlassian JIRA (v6.4.14#64029)