NobiGo commented on a change in pull request #2592:
URL: https://github.com/apache/calcite/pull/2592#discussion_r735336523
##########
File path:
cassandra/src/main/java/org/apache/calcite/adapter/cassandra/CassandraEnumerator.java
##########
@@ -81,11 +84,12 @@
* @param index Index of the field within the Row object
*/
private Object currentRowField(int index) {
+ assert current != null;
final Object o = current.get(index,
CassandraSchema.CODEC_REGISTRY.codecFor(
- current.getColumnDefinitions().getType(index)));
+ current.getColumnDefinitions().get(index).getType()));
- return convertToEnumeratorObject(o);
+ return convertToEnumeratorObject(Objects.requireNonNull(o, "o"));
Review comment:
Where doesn't exist NULL value ? I'm just curious.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]