mirror of https://github.com/apache/nifi.git
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:
parent
97dc4b67aa
commit
b5f4101fa0
|
@ -438,7 +438,6 @@ public class GenerateTableFetch extends AbstractDatabaseFetchProcessor {
|
||||||
IntStream.range(0, numMaxValueColumns).forEach((index) -> {
|
IntStream.range(0, numMaxValueColumns).forEach((index) -> {
|
||||||
String colName = maxValueColumnNameList.get(index);
|
String colName = maxValueColumnNameList.get(index);
|
||||||
|
|
||||||
maxValueSelectColumns.add("MAX(" + colName + ") " + colName);
|
|
||||||
String maxValue = getColumnStateMaxValue(tableName, statePropertyMap, colName, dbAdapter);
|
String maxValue = getColumnStateMaxValue(tableName, statePropertyMap, colName, dbAdapter);
|
||||||
if (!StringUtils.isEmpty(maxValue)) {
|
if (!StringUtils.isEmpty(maxValue)) {
|
||||||
if (columnTypeMap.isEmpty() || getColumnType(tableName, colName, dbAdapter) == null) {
|
if (columnTypeMap.isEmpty() || getColumnType(tableName, colName, dbAdapter) == null) {
|
||||||
|
|
Loading…
Reference in New Issue