NIFI-10352: remove the meaningless code of GenerateTableFetch.java, It is confusing for reading code.

Signed-off-by: Matthew Burgess <mattyb149@apache.org>

This closes #6299
This commit is contained in:
zhangcheng 2022-08-13 20:18:22 +08:00 committed by Matthew Burgess
parent 97dc4b67aa
commit b5f4101fa0
No known key found for this signature in database
GPG Key ID: 05D3DEB8126DAD24
1 changed files with 0 additions and 1 deletions

View File

@ -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) {