You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by ma...@apache.org on 2022/10/07 18:52:16 UTC

[nifi] branch main updated: NIFI-10352: remove the meaningless code of GenerateTableFetch.java, It is confusing for reading code.

This is an automated email from the ASF dual-hosted git repository.

mattyb149 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git


The following commit(s) were added to refs/heads/main by this push:
     new b5f4101fa0 NIFI-10352: remove the meaningless code of GenerateTableFetch.java, It is confusing for reading code.
b5f4101fa0 is described below

commit b5f4101fa09c33a6ea3eff555075bc2ad412af21
Author: zhangcheng <zh...@foxmail.com>
AuthorDate: Sat Aug 13 20:18:22 2022 +0800

    NIFI-10352: remove the meaningless code of GenerateTableFetch.java, It is confusing for reading code.
    
    Signed-off-by: Matthew Burgess <ma...@apache.org>
    
    This closes #6299
---
 .../java/org/apache/nifi/processors/standard/GenerateTableFetch.java     | 1 -
 1 file changed, 1 deletion(-)

diff --git a/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/GenerateTableFetch.java b/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/GenerateTableFetch.java
index c2cd30f34a..78edcad6a6 100644
--- a/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/GenerateTableFetch.java
+++ b/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/GenerateTableFetch.java
@@ -438,7 +438,6 @@ public class GenerateTableFetch extends AbstractDatabaseFetchProcessor {
                 IntStream.range(0, numMaxValueColumns).forEach((index) -> {
                     String colName = maxValueColumnNameList.get(index);
 
-                    maxValueSelectColumns.add("MAX(" + colName + ") " + colName);
                     String maxValue = getColumnStateMaxValue(tableName, statePropertyMap, colName, dbAdapter);
                     if (!StringUtils.isEmpty(maxValue)) {
                         if (columnTypeMap.isEmpty() || getColumnType(tableName, colName, dbAdapter) == null) {