Skip to content

Commit

Permalink
feat: implement wasNull for BigQueryResultSet
Browse files Browse the repository at this point in the history
  • Loading branch information
PhongChuong committed Jan 30, 2025
1 parent 484c8af commit 36604a0
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@
import org.apache.arrow.vector.util.JsonStringArrayList;
import org.apache.arrow.vector.util.Text;

/**
* An implementation of BigQueryResult.
*
* <p>This class and the ResultSet it returns is not thread-safe.
*/
public class BigQueryResultImpl<T> implements BigQueryResult<T> {

private static final String NULL_CURSOR_MSG =
Expand Down Expand Up @@ -688,6 +693,11 @@ public Date getDate(int columnIndex) throws SQLException {
}
}

/**
* Returns whether the last column read had a value of SQL NULL. Note that you must first call
* one of the getter methods on a column to try to read its value and then call the method
* wasNull to see if the value read was SQL NULL. *
*/
@Override
public boolean wasNull() {
return wasNull;
Expand Down

0 comments on commit 36604a0

Please sign in to comment.