pvillard31 commented on a change in pull request #4053: NIFI-7142: 
Automatically handle schema drift in the PutKudu processor
URL: https://github.com/apache/nifi/pull/4053#discussion_r379099330
 
 

 ##########
 File path: 
nifi-nar-bundles/nifi-kudu-bundle/nifi-kudu-processors/src/main/java/org/apache/nifi/processors/kudu/PutKudu.java
 ##########
 @@ -108,6 +113,17 @@
             .addValidator(StandardValidators.BOOLEAN_VALIDATOR)
             .build();
 
+    protected static final PropertyDescriptor HANDLE_SCHEMA_DRIFT = new 
Builder()
+            .name("Handle Schema Drift")
+            .description("If set to true, when fields with names that are not 
in the target Kudu table " +
+                    "are encountered, the Kudu table will be altered to 
include new columns for those fields.")
+            .allowableValues("true", "false")
+            .defaultValue("false")
+            .required(true)
+            
.expressionLanguageSupported(ExpressionLanguageScope.FLOWFILE_ATTRIBUTES)
 
 Review comment:
   Unfortunately it's not possible to support EL evaluation with allowable 
values. Unless you specify a specific attribute name in the allowable values.

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


With regards,
Apache Git Services

Reply via email to