Github user mattyb149 commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/1407#discussion_r98681382
  
    --- Diff: 
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/QueryDatabaseTable.java
 ---
    @@ -212,9 +215,21 @@ public void onTrigger(final ProcessContext context, 
final ProcessSessionFactory
             final Map<String, String> statePropertyMap = new 
HashMap<>(stateMap.toMap());
     
             //If an initial max value for column(s) has been specified using 
properties, and this column is not in the state manager, sync them to the state 
property map
    -        for(final Map.Entry<String,String> maxProp : 
maxValueProperties.entrySet()){
    -            if 
(!statePropertyMap.containsKey(maxProp.getKey().toLowerCase())) {
    -                statePropertyMap.put(maxProp.getKey().toLowerCase(), 
maxProp.getValue());
    +        for (final Map.Entry<String, String> maxProp : 
maxValueProperties.entrySet()) {
    --- End diff --
    
    Agreed. For GenerateTableFetch, initial max values are more useful as flow 
file attributes, although for static tables / max-value columns (which don't 
require an incoming connection), it would still be nice to be able to add them 
as dynamic properties. Do you mind adding your observation(s) to 
[NIFI-3335](https://issues.apache.org/jira/browse/NIFI-3335)?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to