jack870131 commented on a change in pull request #1791:
URL: https://github.com/apache/iotdb/pull/1791#discussion_r502801510
##########
File path: service-rpc/src/main/java/org/apache/iotdb/rpc/IoTDBRpcDataSet.java
##########
@@ -343,9 +352,11 @@ public long getLong(String columnName) throws
StatementExecutionException {
}
int index = columnOrdinalMap.get(columnName) - START_INDEX;
if (!isNull(index, rowsIndex - 1)) {
+ lastReadWasNull = false;
return BytesUtils.bytesToLong(values[index]);
} else {
- throw new StatementExecutionException(String.format(VALUE_IS_NULL,
columnName));
Review comment:
The reason why I remove the exception here is that it was not consistent
with JDBC specification as we discussed in
[IOTDB-912](https://issues.apache.org/jira/projects/IOTDB/issues/IOTDB-912?filter=allopenissues).
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]