ASF GitHub Bot commented on NIFI-2866:

Github user mattyb149 commented on the issue:

    Can you add a unit test for this? One option is to update the 
testInitialMaxValue() test to change the name of the "created_on" column to 
uppercase, as well as the max-value column name and the 
initial.maxvalue.CREATED_ON attribute. That should be enough to illustrate the 
problem before applying your change, then the test passes after your change.

> The Initial Max Value of QueryDatabaseTable won't be case sensitive.
> --------------------------------------------------------------------
>                 Key: NIFI-2866
>                 URL: https://issues.apache.org/jira/browse/NIFI-2866
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>    Affects Versions: 1.1.0
>            Reporter: Byunghwa Yun
>            Priority: Minor
> Now, the Initial Max Value of QueryDatabaseTable is allowed the only 
> lowercase so I think to change the below code, it added .toLowerCase() method.
>         for(final Map.Entry<String,String> maxProp : 
> maxValueProperties.entrySet()){
>             if 
> (!statePropertyMap.containsKey(maxProp.getKey().toLowerCase())) {
>                 statePropertyMap.put(maxProp.getKey().toLowerCase(), 
> maxProp.getValue());
>             }
>         }
> When I set the property that is initial.maxvalue.UPDATE_TIME, 
> QueryDatabaseTable doesn't have WHERE clause with UPDATE_TIME.
> Thanks.

This message was sent by Atlassian JIRA

Reply via email to