Skip to content

Commit

Permalink
[CALCITE-5409] Implement BatchNestedLoopJoin for JDBC
Browse files Browse the repository at this point in the history
  • Loading branch information
kramerul committed Dec 8, 2023
1 parent 499d4b0 commit b1f5867
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
package org.apache.calcite.runtime;

import org.apache.calcite.DataContext;
import org.apache.calcite.avatica.SqlType;
import org.apache.calcite.linq4j.AbstractEnumerable;
import org.apache.calcite.linq4j.Enumerable;
import org.apache.calcite.linq4j.Enumerator;
Expand Down Expand Up @@ -203,8 +202,7 @@ public static PreparedStatementEnricher createEnricher(Integer[] indexes,
private static void setDynamicParam(PreparedStatement preparedStatement,
int i, @Nullable Object value) throws SQLException {
if (value == null) {
// TODO: use proper type instead of ANY
preparedStatement.setObject(i, null, SqlType.ANY.id);
preparedStatement.setNull(i, Types.NULL);
} else if (value instanceof Timestamp) {
preparedStatement.setTimestamp(i, (Timestamp) value);
} else if (value instanceof Time) {
Expand Down

0 comments on commit b1f5867

Please sign in to comment.