snuyanzin commented on code in PR #79: URL: https://github.com/apache/flink-connector-jdbc/pull/79#discussion_r1463084570
########## flink-connector-jdbc/src/main/java/org/apache/flink/connector/jdbc/table/JdbcRowDataLookupFunction.java: ########## @@ -167,7 +185,13 @@ public Collection<RowData> lookup(RowData keyRow) { private void establishConnectionAndStatement() throws SQLException, ClassNotFoundException { Connection dbConn = connectionProvider.getOrEstablishConnection(); - statement = FieldNamedPreparedStatement.prepareStatement(dbConn, query, keyNames); + String additionalPredicates = ""; + if (resolvedPredicates.size() > 0) { Review Comment: ```suggestion if (!resolvedPredicates.isEmpty()) { ``` -- 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: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org