granthenke 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_r379106414
##########
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:
I just learned about this while working on
[NIFI-6867](https://issues.apache.org/jira/browse/NIFI-6867). I will remove the
expression language support. I don't think it's all that useful on this
property.
----------------------------------------------------------------
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