mirror of https://github.com/apache/nifi.git
nifi-1247 Correction for check of UnmatchedFieldBehaviour in generateUpdate to match generateInsert correct functionality
Signed-off-by: Mark Payne <markap14@hotmail.com>
This commit is contained in:
parent
dae25accb7
commit
6bdcd3913f
|
@ -471,7 +471,7 @@ public class ConvertJSONToSQL extends AbstractProcessor {
|
||||||
final ColumnDescription desc = schema.getColumns().get(normalizedColName);
|
final ColumnDescription desc = schema.getColumns().get(normalizedColName);
|
||||||
|
|
||||||
if (desc == null) {
|
if (desc == null) {
|
||||||
if (ignoreUnmappedFields) {
|
if (!ignoreUnmappedFields) {
|
||||||
throw new ProcessException("Cannot map JSON field '" + fieldName + "' to any column in the database");
|
throw new ProcessException("Cannot map JSON field '" + fieldName + "' to any column in the database");
|
||||||
} else {
|
} else {
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue