grishick commented on a change in pull request #4549:
URL: https://github.com/apache/nifi/pull/4549#discussion_r494577812



##########
File path: 
nifi-nar-bundles/nifi-kudu-bundle/nifi-kudu-processors/src/main/java/org/apache/nifi/processors/kudu/AbstractKuduProcessor.java
##########
@@ -352,6 +351,9 @@ protected void buildPartialRow(Schema schema, PartialRow 
row, Record record, Lis
                         case VARCHAR:
                             row.addVarchar(colIdx, 
DataTypeUtils.toString(value, recordFieldName));
                             break;
+                        case DATE:
+                            row.addDate(colIdx, DataTypeUtils.toDate(value, () 
-> DataTypeUtils.getDateFormat("yyyy-MM-dd"), recordFieldName));

Review comment:
       Hive3 processor uses 
`org.apache.nifi.serialization.record.DataType.getFormat()` and Solr processor 
uses `RecordFieldType.DATE.getDefaultFormat()`




----------------------------------------------------------------
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]


Reply via email to