NIFI-2174: Fix handling of time/date types in QueryCassandra

This closes #661

Signed-off-by: jpercivall <joepercivall@yahoo.com>
This commit is contained in:
Matt Burgess 2016-07-15 15:52:37 -04:00 committed by jpercivall
parent 52a961873b
commit 1c5975da86
1 changed files with 6 additions and 0 deletions

View File

@ -311,8 +311,14 @@ public abstract class AbstractCassandraProcessor extends AbstractProcessor {
return row.getDouble(i);
} else if (dataType.equals(DataType.timestamp())) {
return row.getTimestamp(i);
} else if (dataType.equals(DataType.date())) {
return row.getDate(i);
} else if (dataType.equals(DataType.time())) {
return row.getTime(i);
} else if (dataType.isCollection()) {
List<DataType> typeArguments = dataType.getTypeArguments();