NIFI-13932 Calling super #migrateProperty in JsonRecordSetWriter

This closes #9448.

Signed-off-by: Peter Turcsanyi <turcsanyi@apache.org>
This commit is contained in:
Bence Simon 2024-10-25 15:43:33 +02:00 committed by Peter Turcsanyi
parent efb1093a85
commit 5be2cd73e6
No known key found for this signature in database
GPG Key ID: 55A813F1C3E553DC
1 changed files with 2 additions and 0 deletions

View File

@ -149,6 +149,8 @@ public class JsonRecordSetWriter extends DateTimeTextRecordSetWriter implements
@Override
public void migrateProperties(final PropertyConfiguration propertyConfiguration) {
super.migrateProperties(propertyConfiguration);
// We added the ALLOW_SCIENTIFIC_NOTATION property with a default of 'false'. However, we don't want to change the behavior
// of existing services. So we migrate existing services to use a value of 'true' to maintain backward compatibility.
if (!propertyConfiguration.hasProperty(ALLOW_SCIENTIFIC_NOTATION.getName())) {