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

hansva pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hop.git


The following commit(s) were added to refs/heads/master by this push:
     new df6e88a  HOP-3880 Remove obsolete compatibility variables
     new 0ea3c5f  Merge pull request #1437 from nadment/HOP-3880
df6e88a is described below

commit df6e88a72a6b6ad9062ee78b4ce8fc28c89dcdce
Author: Nicolas Adment <[email protected]>
AuthorDate: Wed Mar 30 22:48:09 2022 +0200

    HOP-3880 Remove obsolete compatibility variables
    
    Fix some missing variable description
    
    Remove @Deprecated annotation used for test on variable
    HOP_MAX_ACTIONS_LOGGED
---
 core/src/main/java/org/apache/hop/core/Const.java  |  75 +--------
 .../org/apache/hop/core/row/ValueDataUtil.java     |   9 +-
 .../apache/hop/core/row/value/ValueMetaBase.java   |  10 +-
 .../org/apache/hop/core/row/ValueDateUtilTest.java |  15 --
 .../ValueMetaBaseSetPreparedStmntValueTest.java    |  41 -----
 .../hop/junit/rules/RestoreHopEnvironment.java     |   1 -
 .../ActionEvalTableContent.java                    |   9 -
 .../WorkflowActionEvalTableContentTest.java        |  39 +----
 .../actions/filesexist/ActionFilesExist.java       |   9 -
 .../filesexist/WorkflowActionFilesExistTest.java   |  19 +--
 .../actions/folderisempty/ActionFolderIsEmpty.java |   8 +-
 .../WorkflowActionFolderIsEmptyTest.java           |  14 +-
 .../transforms/memgroupby/MemoryGroupBy.java       |   9 +-
 .../transforms/memgroupby/MemoryGroupByMeta.java   |   4 +-
 .../memgroupby/MemoryGroupByAggregationTest.java   |  57 -------
 .../memgroupby/MemoryGroupByMetaTest.java          |  10 --
 .../pipeline/transforms/mergerows/MergeRows.java   |  28 +---
 .../transforms/selectvalues/SelectValuesMeta.java  |  14 +-
 .../transforms/selectvalues/SelectValuesTest.java  | 186 ---------------------
 .../transforms/textfileoutput/TextFileOutput.java  |  10 +-
 .../transforms/xml/xmloutput/XmlOutput.java        |  13 --
 .../transforms/xml/xmloutput/XmlOutputTest.java    |   8 -
 22 files changed, 24 insertions(+), 564 deletions(-)

diff --git a/core/src/main/java/org/apache/hop/core/Const.java 
b/core/src/main/java/org/apache/hop/core/Const.java
index 1ca7ee5..b6a0c56 100644
--- a/core/src/main/java/org/apache/hop/core/Const.java
+++ b/core/src/main/java/org/apache/hop/core/Const.java
@@ -356,7 +356,7 @@ public class Const {
   public static final String HOP_LOG_SIZE_LIMIT = "HOP_LOG_SIZE_LIMIT";
 
   /** The name of the variable that defines the timer used for detecting 
server nodes. */
-  @Variable(description="")
+  @Variable(description="The name of the variable that defines the timer used 
for detecting server nodes")
   public static final String HOP_SERVER_DETECTION_TIMER = 
"HOP_SERVER_DETECTION_TIMER";
 
   /**
@@ -377,39 +377,6 @@ public class Const {
   public static final String HOP_LENIENT_STRING_TO_NUMBER_CONVERSION =
       "HOP_LENIENT_STRING_TO_NUMBER_CONVERSION";
 
-  /** System wide flag to ignore timezone while writing date/timestamp value 
to the database. */
-  @Variable(value="N", description="System wide flag to ignore timezone while 
writing date/timestamp value to the database.")
-  public static final String HOP_COMPATIBILITY_DB_IGNORE_TIMEZONE =
-      "HOP_COMPATIBILITY_DB_IGNORE_TIMEZONE";
-
-  /**
-   * System wide flag to set or not append and header options dependency on 
Text file output
-   * transform.
-   */
-  @Variable(value="N", description="Set this variable to 'Y' for backward 
compatibility for the Text File Output transform. Setting this to Ywill add no 
header row at all when the append option is enabled, regardless if the file is 
existing or not.")
-  public static final String 
HOP_COMPATIBILITY_TEXT_FILE_OUTPUT_APPEND_NO_HEADER =
-      "HOP_COMPATIBILITY_TEXT_FILE_OUTPUT_APPEND_NO_HEADER";
-
-  /**
-   * System wide flag to control behavior of the merge rows (diff) transform 
in case of "identical"
-   * comparison. 'Y' preserves the old behavior and takes the fields from the 
reference stream 'N'
-   * enables the documented behavior and takes the fields from the comparison 
stream (correct
-   * behavior)
-   */
-  @Variable(value="N", description="Set this variable to 'Y' for backward 
compatibility for the Merge Rows (diff) transform. Setting this to Y will use 
the data from the reference stream (instead of the comparison stream) in case 
the compared rows are identical.")
-  public static final String 
HOP_COMPATIBILITY_MERGE_ROWS_USE_REFERENCE_STREAM_WHEN_IDENTICAL =
-      "HOP_COMPATIBILITY_MERGE_ROWS_USE_REFERENCE_STREAM_WHEN_IDENTICAL";
-
-  /**
-   * System wide flag to control behavior of the Memory Group By transform in 
case of SUM and
-   * AVERAGE aggregation. 'Y' preserves the old behavior and always returns a 
Number type for SUM
-   * and Average aggregations 'N' enables the documented behavior of returning 
the same type as the
-   * input fields use (correct behavior).
-   */
-  @Variable(description="")
-  public static final String 
HOP_COMPATIBILITY_MEMORY_GROUP_BY_SUM_AVERAGE_RETURN_NUMBER_TYPE =
-      "HOP_COMPATIBILITY_MEMORY_GROUP_BY_SUM_AVERAGE_RETURN_NUMBER_TYPE";
-
   /**
    * You can use this variable to speed up hostname lookup. Hostname lookup is 
performed by Hop so
    * that it is capable of logging the server on which a workflow or pipeline 
is executed.
@@ -479,7 +446,6 @@ public class Const {
    * purposes.
    */
   @Variable(value="5000", description="The maximum number of action results 
kept in memory for logging purposes.")
-  @Deprecated
   public static final String HOP_MAX_ACTIONS_LOGGED = "HOP_MAX_ACTIONS_LOGGED";
 
   /**
@@ -516,7 +482,7 @@ public class Const {
    * Name of the environment variable that contains the size of the pipeline 
rowset size. This
    * overwrites values that you set pipeline settings.
    */
-  @Variable(description="")
+  @Variable(description="Name of the environment variable that contains the 
size of the pipeline rowset size. This overwrites values that you set pipeline 
settings")
   public static final String HOP_PIPELINE_ROWSET_SIZE = 
"HOP_PIPELINE_ROWSET_SIZE";
 
   /** A general initial version comment */
@@ -552,7 +518,7 @@ public class Const {
   public static final String HOP_ROWSET_PUT_TIMEOUT = "HOP_ROWSET_PUT_TIMEOUT";
 
   /** Set this variable to Y if you want to test a more efficient batching row 
set. (default = N) */
-  @Variable(description="")
+  @Variable(value="N", description=" Set this variable to Y if you want to 
test a more efficient batching row set.")
   public static final String HOP_BATCHING_ROWSET = "HOP_BATCHING_ROWSET";
 
   /**
@@ -621,33 +587,6 @@ public class Const {
   public static final String HOP_GLOBAL_LOG_VARIABLES_CLEAR_ON_EXPORT =
       "HOP_GLOBAL_LOG_VARIABLES_CLEAR_ON_EXPORT";
 
-  /**
-   * Compatibility settings for {@link 
org.apache.hop.core.row.ValueDataUtil#hourOfDay(IValueMeta,
-   * Object)}.
-   *
-   * <p>Switches off the fix for calculation of timezone decomposition.
-   */
-  @Variable(value="N", description="")
-  public static final String 
HOP_COMPATIBILITY_CALCULATION_TIMEZONE_DECOMPOSITION =
-      "HOP_COMPATIBILITY_CALCULATION_TIMEZONE_DECOMPOSITION";
-
-  /** Compatibility settings for setNrErrors */
-  @Variable(value="N", description="")
-  public static final String 
HOP_COMPATIBILITY_SET_ERROR_ON_SPECIFIC_WORKFLOW_ACTIONS =
-      "HOP_COMPATIBILITY_SET_ERROR_ON_SPECIFIC_WORKFLOW_ACTIONS";
-
-  @Variable(value="N", description="")
-  public static final String 
HOP_COMPATIBILITY_SEND_RESULT_XML_WITH_FULL_STATUS =
-      "HOP_COMPATIBILITY_SEND_RESULT_XML_WITH_FULL_STATUS";
-
-  @Variable(value="N", description="")
-  public static final String 
HOP_COMPATIBILITY_SELECT_VALUES_TYPE_CHANGE_USES_TYPE_DEFAULTS =
-      "HOP_COMPATIBILITY_SELECT_VALUES_TYPE_CHANGE_USES_TYPE_DEFAULTS";
-
-  @Variable(value="N", description="")
-  public static final String HOP_COMPATIBILITY_XML_OUTPUT_NULL_VALUES =
-      "HOP_COMPATIBILITY_XML_OUTPUT_NULL_VALUES";
-
   private static String[] emptyPaddedSpacesStrings;
 
   /** The release type of this compilation */
@@ -683,7 +622,7 @@ public class Const {
       "s3.vfs.useTempFileOnUploadData";
 
   /** A variable to configure Tab size" */
-  @Variable(description="")
+  @Variable(description="A variable to configure Tab size")
   public static final String HOP_MAX_TAB_LENGTH = "HOP_MAX_TAB_LENGTH";
 
   /**
@@ -702,7 +641,7 @@ public class Const {
    * @see #HOP_ZIP_MIN_INFLATE_RATIO_DEFAULT
    * @see #HOP_ZIP_MIN_INFLATE_RATIO_DEFAULT_STRING
    */
-  @Variable(description="")
+  @Variable(description="A variable to configure the minimum allowed ratio 
between de- and inflated bytes to detect a zipbomb")
   public static final String HOP_ZIP_MIN_INFLATE_RATIO = 
"HOP_ZIP_MIN_INFLATE_RATIO";
 
   /**
@@ -732,7 +671,7 @@ public class Const {
    * @see #HOP_ZIP_MAX_ENTRY_SIZE_DEFAULT
    * @see #HOP_ZIP_MAX_ENTRY_SIZE_DEFAULT_STRING
    */
-  @Variable(description="")
+  @Variable(description="A variable to configure the maximum file size of a 
single zip entry")
   public static final String HOP_ZIP_MAX_ENTRY_SIZE = "HOP_ZIP_MAX_ENTRY_SIZE";
 
   /**
@@ -763,7 +702,7 @@ public class Const {
    * @see #HOP_ZIP_MAX_TEXT_SIZE_DEFAULT
    * @see #HOP_ZIP_MAX_TEXT_SIZE_DEFAULT_STRING
    */
-  @Variable(description="")
+  @Variable(description="A variable to configure the maximum number of 
characters of text that are extracted before an exception is thrown during 
extracting text from documents")
   public static final String HOP_ZIP_MAX_TEXT_SIZE = "HOP_ZIP_MAX_TEXT_SIZE";
 
   /**
diff --git a/core/src/main/java/org/apache/hop/core/row/ValueDataUtil.java 
b/core/src/main/java/org/apache/hop/core/row/ValueDataUtil.java
index fd67d99..2bae3ee 100644
--- a/core/src/main/java/org/apache/hop/core/row/ValueDataUtil.java
+++ b/core/src/main/java/org/apache/hop/core/row/ValueDataUtil.java
@@ -1506,14 +1506,7 @@ public class ValueDataUtil {
 
     Calendar calendar = Calendar.getInstance();
     calendar.setTime(metaA.getDate(dataA));
-
-    boolean oldDateCalculation =
-        Boolean.parseBoolean(
-            Const.getEnvironmentVariable(
-                Const.HOP_COMPATIBILITY_CALCULATION_TIMEZONE_DECOMPOSITION, 
"false"));
-    if (!oldDateCalculation) {
-      calendar.setTimeZone(metaA.getDateFormatTimeZone());
-    }
+    calendar.setTimeZone(metaA.getDateFormatTimeZone());
 
     return Long.valueOf(calendar.get(Calendar.HOUR_OF_DAY));
   }
diff --git 
a/core/src/main/java/org/apache/hop/core/row/value/ValueMetaBase.java 
b/core/src/main/java/org/apache/hop/core/row/value/ValueMetaBase.java
index 0f7ddb0..ca7edd6 100644
--- a/core/src/main/java/org/apache/hop/core/row/value/ValueMetaBase.java
+++ b/core/src/main/java/org/apache/hop/core/row/value/ValueMetaBase.java
@@ -137,7 +137,6 @@ public class ValueMetaBase implements IValueMeta {
   protected TimeZone dateFormatTimeZone;
   protected boolean dateFormatLenient;
   protected boolean lenientStringToNumber;
-  protected boolean ignoreTimezone;
   protected boolean emptyStringAndNullAreDifferent;
 
   protected SimpleDateFormat dateFormat;
@@ -229,9 +228,6 @@ public class ValueMetaBase implements IValueMeta {
     this.lenientStringToNumber =
         convertStringToBoolean(
             
Const.NVL(System.getProperty(Const.HOP_LENIENT_STRING_TO_NUMBER_CONVERSION, 
"N"), "N"));
-    this.ignoreTimezone =
-        convertStringToBoolean(
-            
Const.NVL(System.getProperty(Const.HOP_COMPATIBILITY_DB_IGNORE_TIMEZONE, "N"), 
"N"));
     this.emptyStringAndNullAreDifferent =
         convertStringToBoolean(
             
Const.NVL(System.getProperty(Const.HOP_EMPTY_STRING_DIFFERS_FROM_NULL, "N"), 
"N"));
@@ -5375,7 +5371,7 @@ public class ValueMetaBase implements IValueMeta {
               // Convert to DATE!
               long dat = getInteger(data).longValue(); // converts using 
Date.getTime()
               java.sql.Date ddate = new java.sql.Date(dat);
-              if (ignoreTimezone || this.getDateFormatTimeZone() == null) {
+              if (this.getDateFormatTimeZone() == null) {
                 preparedStatement.setDate(index, ddate);
               } else {
                 preparedStatement.setDate(
@@ -5385,7 +5381,7 @@ public class ValueMetaBase implements IValueMeta {
               if (data instanceof Timestamp) {
                 // Preserve ns precision!
                 //
-                if (ignoreTimezone || this.getDateFormatTimeZone() == null) {
+                if (this.getDateFormatTimeZone() == null) {
                   preparedStatement.setTimestamp(index, (Timestamp) data);
                 } else {
                   preparedStatement.setTimestamp(
@@ -5394,7 +5390,7 @@ public class ValueMetaBase implements IValueMeta {
               } else {
                 long dat = getInteger(data).longValue(); // converts using 
Date.getTime()
                 Timestamp sdate = new Timestamp(dat);
-                if (ignoreTimezone || this.getDateFormatTimeZone() == null) {
+                if (this.getDateFormatTimeZone() == null) {
                   preparedStatement.setTimestamp(index, sdate);
                 } else {
                   preparedStatement.setTimestamp(
diff --git a/core/src/test/java/org/apache/hop/core/row/ValueDateUtilTest.java 
b/core/src/test/java/org/apache/hop/core/row/ValueDateUtilTest.java
index 66e4ea8..83efcfb 100644
--- a/core/src/test/java/org/apache/hop/core/row/ValueDateUtilTest.java
+++ b/core/src/test/java/org/apache/hop/core/row/ValueDateUtilTest.java
@@ -47,7 +47,6 @@ public class ValueDateUtilTest {
 
   @After
   public void tearDown() {
-    
System.clearProperty(Const.HOP_COMPATIBILITY_CALCULATION_TIMEZONE_DECOMPOSITION);
     System.setProperty("user.timezone", defUserTimezone.getID());
     TimeZone.setDefault(defTimeZone);
   }
@@ -66,20 +65,6 @@ public class ValueDateUtilTest {
   }
 
   @Test
-  public void shouldCalculateHourOfDayUsingLocalTimeZoneIfPropertyIsSet() 
throws HopValueException {
-    Calendar date = Calendar.getInstance();
-    date.setTimeInMillis(1454313600000L); // 2016-07-01 08:00:00 UTC
-    IValueMeta valueMetaDate = new ValueMetaDate();
-    valueMetaDate.setDateFormatTimeZone(TimeZone.getTimeZone("CET")); // UTC +1
-    long offsetLocal = (long) TimeZone.getDefault().getRawOffset() / 3600000;
-    
System.setProperty(Const.HOP_COMPATIBILITY_CALCULATION_TIMEZONE_DECOMPOSITION, 
"true");
-
-    Object hourOfDayLocal = ValueDataUtil.hourOfDay(valueMetaDate, 
date.getTime());
-
-    assertEquals(8L + offsetLocal, hourOfDayLocal);
-  }
-
-  @Test
   public void shouldCalculateDateWorkingDiff_JAN() throws HopValueException {
     IValueMeta metaA = new ValueMetaDate();
     IValueMeta metaB = new ValueMetaDate();
diff --git 
a/core/src/test/java/org/apache/hop/core/row/value/ValueMetaBaseSetPreparedStmntValueTest.java
 
b/core/src/test/java/org/apache/hop/core/row/value/ValueMetaBaseSetPreparedStmntValueTest.java
index 70c7a0c..ae446ab 100644
--- 
a/core/src/test/java/org/apache/hop/core/row/value/ValueMetaBaseSetPreparedStmntValueTest.java
+++ 
b/core/src/test/java/org/apache/hop/core/row/value/ValueMetaBaseSetPreparedStmntValueTest.java
@@ -70,8 +70,6 @@ public class ValueMetaBaseSetPreparedStmntValueTest {
   @Test
   public void testDateRegular() throws Exception {
 
-    System.setProperty(Const.HOP_COMPATIBILITY_DB_IGNORE_TIMEZONE, "N");
-
     ValueMetaBase valueMeta = new ValueMetaDate("");
     valueMeta.setPrecision(1);
     valueMeta.setPreparedStatementValue(dbMeta, ps, 1, date);
@@ -80,22 +78,8 @@ public class ValueMetaBaseSetPreparedStmntValueTest {
   }
 
   @Test
-  public void testDateIgnoreTZ() throws Exception {
-
-    System.setProperty(Const.HOP_COMPATIBILITY_DB_IGNORE_TIMEZONE, "Y");
-
-    ValueMetaBase valueMeta = new ValueMetaDate("");
-    valueMeta.setPrecision(1);
-    valueMeta.setPreparedStatementValue(dbMeta, ps, 1, date);
-
-    verify(ps).setDate(eq(1), any(java.sql.Date.class));
-  }
-
-  @Test
   public void testTimestampRegular() throws Exception {
 
-    System.setProperty(Const.HOP_COMPATIBILITY_DB_IGNORE_TIMEZONE, "N");
-
     ValueMetaBase valueMeta = new ValueMetaDate("");
     valueMeta.setPreparedStatementValue(dbMeta, ps, 1, ts);
 
@@ -103,37 +87,12 @@ public class ValueMetaBaseSetPreparedStmntValueTest {
   }
 
   @Test
-  public void testTimestampIgnoreTZ() throws Exception {
-
-    System.setProperty(Const.HOP_COMPATIBILITY_DB_IGNORE_TIMEZONE, "Y");
-
-    ValueMetaBase valueMeta = new ValueMetaDate("");
-    valueMeta.setPreparedStatementValue(dbMeta, ps, 1, ts);
-
-    verify(ps).setTimestamp(eq(1), any(Timestamp.class));
-  }
-
-  @Test
   public void testConvertedTimestampRegular() throws Exception {
 
-    System.setProperty(Const.HOP_COMPATIBILITY_DB_IGNORE_TIMEZONE, "N");
-
     ValueMetaBase valueMeta = new ValueMetaDate("");
     valueMeta.setPreparedStatementValue(dbMeta, ps, 1, date);
     valueMeta.setStorageType(IValueMeta.STORAGE_TYPE_NORMAL);
 
     verify(ps).setTimestamp(eq(1), any(Timestamp.class), any(Calendar.class));
   }
-
-  @Test
-  public void testConvertedTimestampIgnoreTZ() throws Exception {
-
-    System.setProperty(Const.HOP_COMPATIBILITY_DB_IGNORE_TIMEZONE, "Y");
-
-    ValueMetaBase valueMeta = new ValueMetaDate("");
-    valueMeta.setPreparedStatementValue(dbMeta, ps, 1, date);
-    valueMeta.setStorageType(IValueMeta.STORAGE_TYPE_NORMAL);
-
-    verify(ps).setTimestamp(eq(1), any(Timestamp.class));
-  }
 }
diff --git 
a/core/src/test/java/org/apache/hop/junit/rules/RestoreHopEnvironment.java 
b/core/src/test/java/org/apache/hop/junit/rules/RestoreHopEnvironment.java
index 2d575a4..8609feb 100644
--- a/core/src/test/java/org/apache/hop/junit/rules/RestoreHopEnvironment.java
+++ b/core/src/test/java/org/apache/hop/junit/rules/RestoreHopEnvironment.java
@@ -114,7 +114,6 @@ public class RestoreHopEnvironment extends ExternalResource 
{
     System.setProperty(Const.HOP_DISABLE_CONSOLE_LOGGING, "Y");
     System.clearProperty(Const.VFS_USER_DIR_IS_ROOT);
     System.clearProperty(Const.HOP_LENIENT_STRING_TO_NUMBER_CONVERSION);
-    System.clearProperty(Const.HOP_COMPATIBILITY_DB_IGNORE_TIMEZONE);
     System.clearProperty(Const.HOP_DEFAULT_INTEGER_FORMAT);
     System.clearProperty(Const.HOP_DEFAULT_NUMBER_FORMAT);
     System.clearProperty(Const.HOP_DEFAULT_BIGNUMBER_FORMAT);
diff --git 
a/plugins/actions/evaluatetablecontent/src/main/java/org/apache/hop/workflow/actions/evaluatetablecontent/ActionEvalTableContent.java
 
b/plugins/actions/evaluatetablecontent/src/main/java/org/apache/hop/workflow/actions/evaluatetablecontent/ActionEvalTableContent.java
index 7f0b8b1..cb5d0a2 100644
--- 
a/plugins/actions/evaluatetablecontent/src/main/java/org/apache/hop/workflow/actions/evaluatetablecontent/ActionEvalTableContent.java
+++ 
b/plugins/actions/evaluatetablecontent/src/main/java/org/apache/hop/workflow/actions/evaluatetablecontent/ActionEvalTableContent.java
@@ -256,11 +256,6 @@ public class ActionEvalTableContent extends ActionBase 
implements Cloneable, IAc
     Result result = previousResult;
     result.setResult(false);
 
-    boolean oldBehavior =
-        "Y"
-            .equalsIgnoreCase(
-                
getVariable(Const.HOP_COMPATIBILITY_SET_ERROR_ON_SPECIFIC_WORKFLOW_ACTIONS, 
"N"));
-
     String countSqlStatement = null;
     long rowsCount = 0;
     long errCount = 0;
@@ -386,10 +381,6 @@ public class ActionEvalTableContent extends ActionBase 
implements Cloneable, IAc
             default:
               break;
           }
-
-          if (!successOK && oldBehavior) {
-            errCount++;
-          }
         } // end if countSqlStatement!=null
       } catch (HopException dbe) {
         errCount++;
diff --git 
a/plugins/actions/evaluatetablecontent/src/test/java/org/apache/hop/workflow/actions/evaluatetablecontent/WorkflowActionEvalTableContentTest.java
 
b/plugins/actions/evaluatetablecontent/src/test/java/org/apache/hop/workflow/actions/evaluatetablecontent/WorkflowActionEvalTableContentTest.java
index e5f2439..2812e4d 100644
--- 
a/plugins/actions/evaluatetablecontent/src/test/java/org/apache/hop/workflow/actions/evaluatetablecontent/WorkflowActionEvalTableContentTest.java
+++ 
b/plugins/actions/evaluatetablecontent/src/test/java/org/apache/hop/workflow/actions/evaluatetablecontent/WorkflowActionEvalTableContentTest.java
@@ -17,7 +17,6 @@
 
 package org.apache.hop.workflow.actions.evaluatetablecontent;
 
-import org.apache.hop.core.Const;
 import org.apache.hop.core.HopClientEnvironment;
 import org.apache.hop.core.Result;
 import org.apache.hop.core.database.BaseDatabaseMeta;
@@ -161,7 +160,6 @@ public class WorkflowActionEvalTableContentTest {
     dbMeta.setDatabaseType("mock-db");
 
     action.setDatabase(dbMeta);
-    
action.setVariable(Const.HOP_COMPATIBILITY_SET_ERROR_ON_SPECIFIC_WORKFLOW_ACTIONS,
 "N");
   }
 
   @After
@@ -170,7 +168,7 @@ public class WorkflowActionEvalTableContentTest {
   }
 
   @Test
-  public void testNrErrorsFailureNewBehavior() throws Exception {
+  public void testNrErrorsFailure() throws Exception {
     action.setLimit("1");
     
action.setSuccessCondition(ActionEvalTableContent.SUCCESS_CONDITION_ROWS_COUNT_EQUAL);
     action.setTablename("table");
@@ -183,24 +181,7 @@ public class WorkflowActionEvalTableContentTest {
         res.getNrErrors(),
         0);
   }
-
-  @Test
-  public void testNrErrorsFailureOldBehavior() throws Exception {
-    action.setLimit("1");
-    
action.setSuccessCondition(ActionEvalTableContent.SUCCESS_CONDITION_ROWS_COUNT_EQUAL);
-    action.setTablename("table");
-
-    
action.setVariable(Const.HOP_COMPATIBILITY_SET_ERROR_ON_SPECIFIC_WORKFLOW_ACTIONS,
 "Y");
-
-    Result res = action.execute(new Result(), 0);
-
-    assertFalse("Eval number of rows should fail", res.getResult());
-    assertEquals(
-        "An error should be reported in result object accoding to the old 
behavior",
-        res.getNrErrors(),
-        1);
-  }
-
+  
   @Test
   public void testNrErrorsSuccess() throws Exception {
     action.setLimit("5");
@@ -211,14 +192,6 @@ public class WorkflowActionEvalTableContentTest {
 
     assertTrue("Eval number of rows should be suceeded", res.getResult());
     assertEquals("Apparently there should no error", res.getNrErrors(), 0);
-
-    // that should work regardless of old/new behavior flag
-    
action.setVariable(Const.HOP_COMPATIBILITY_SET_ERROR_ON_SPECIFIC_WORKFLOW_ACTIONS,
 "Y");
-
-    res = action.execute(new Result(), 0);
-
-    assertTrue("Eval number of rows should be suceeded", res.getResult());
-    assertEquals("Apparently there should no error", res.getNrErrors(), 0);
   }
 
   @Test
@@ -232,13 +205,5 @@ public class WorkflowActionEvalTableContentTest {
 
     assertFalse("Eval number of rows should fail", res.getResult());
     assertEquals("Apparently there should be an error", res.getNrErrors(), 1);
-
-    // that should work regardless of old/new behavior flag
-    
action.setVariable(Const.HOP_COMPATIBILITY_SET_ERROR_ON_SPECIFIC_WORKFLOW_ACTIONS,
 "Y");
-
-    res = action.execute(new Result(), 0);
-
-    assertFalse("Eval number of rows should fail", res.getResult());
-    assertEquals("Apparently there should be an error", res.getNrErrors(), 1);
   }
 }
diff --git 
a/plugins/actions/filesexist/src/main/java/org/apache/hop/workflow/actions/filesexist/ActionFilesExist.java
 
b/plugins/actions/filesexist/src/main/java/org/apache/hop/workflow/actions/filesexist/ActionFilesExist.java
index 4823d9c..9f03ad9 100644
--- 
a/plugins/actions/filesexist/src/main/java/org/apache/hop/workflow/actions/filesexist/ActionFilesExist.java
+++ 
b/plugins/actions/filesexist/src/main/java/org/apache/hop/workflow/actions/filesexist/ActionFilesExist.java
@@ -150,11 +150,6 @@ public class ActionFilesExist extends ActionBase 
implements Cloneable, IAction {
     int missingfiles = 0;
     int nrErrors = 0;
 
-    boolean oldBehavior =
-        "Y"
-            .equalsIgnoreCase(
-                
getVariable(Const.HOP_COMPATIBILITY_SET_ERROR_ON_SPECIFIC_WORKFLOW_ACTIONS, 
"N"));
-
     if (arguments != null) {
       for (int i = 0; i < arguments.length && !parentWorkflow.isStopped(); 
i++) {
         FileObject file = null;
@@ -199,10 +194,6 @@ public class ActionFilesExist extends ActionBase 
implements Cloneable, IAction {
 
     result.setNrErrors(nrErrors);
 
-    if (oldBehavior) {
-      result.setNrErrors(missingfiles);
-    }
-
     if (missingfiles == 0) {
       result.setResult(true);
     }
diff --git 
a/plugins/actions/filesexist/src/test/java/org/apache/hop/workflow/actions/filesexist/WorkflowActionFilesExistTest.java
 
b/plugins/actions/filesexist/src/test/java/org/apache/hop/workflow/actions/filesexist/WorkflowActionFilesExistTest.java
index 1c1015d..13ff95d 100644
--- 
a/plugins/actions/filesexist/src/test/java/org/apache/hop/workflow/actions/filesexist/WorkflowActionFilesExistTest.java
+++ 
b/plugins/actions/filesexist/src/test/java/org/apache/hop/workflow/actions/filesexist/WorkflowActionFilesExistTest.java
@@ -17,7 +17,6 @@
 
 package org.apache.hop.workflow.actions.filesexist;
 
-import org.apache.hop.core.Const;
 import org.apache.hop.core.Result;
 import org.apache.hop.junit.rules.RestoreHopEngineEnvironment;
 import org.apache.hop.utils.TestUtils;
@@ -64,7 +63,7 @@ public class WorkflowActionFilesExistTest {
   public void tearDown() throws Exception {}
 
   @Test
-  public void testSetNrErrorsNewBehaviorFalseResult() throws Exception {
+  public void testSetNrErrorsFalseResult() throws Exception {
     action.setArguments(new String[] {"nonExistingFile.ext"});
 
     Result res = action.execute(new Result(), 0);
@@ -77,22 +76,6 @@ public class WorkflowActionFilesExistTest {
   }
 
   @Test
-  public void testSetNrErrorsOldBehaviorFalseResult() throws Exception {
-    // this tests backward compatibility settings
-    action.setArguments(new String[] {"nonExistingFile1.ext", 
"nonExistingFile2.ext"});
-
-    
action.setVariable(Const.HOP_COMPATIBILITY_SET_ERROR_ON_SPECIFIC_WORKFLOW_ACTIONS,
 "Y");
-
-    Result res = action.execute(new Result(), 0);
-
-    assertFalse("Entry should fail", res.getResult());
-    assertEquals(
-        "Files not found. Result is false. And... Number of errors should be 
the same as number of not found files",
-        action.getArguments().length,
-        res.getNrErrors());
-  }
-
-  @Test
   public void testExecuteWithException() throws Exception {
     action.setArguments(new String[] {null});
 
diff --git 
a/plugins/actions/folderisempty/src/main/java/org/apache/hop/workflow/actions/folderisempty/ActionFolderIsEmpty.java
 
b/plugins/actions/folderisempty/src/main/java/org/apache/hop/workflow/actions/folderisempty/ActionFolderIsEmpty.java
index ed666ad..113a098 100644
--- 
a/plugins/actions/folderisempty/src/main/java/org/apache/hop/workflow/actions/folderisempty/ActionFolderIsEmpty.java
+++ 
b/plugins/actions/folderisempty/src/main/java/org/apache/hop/workflow/actions/folderisempty/ActionFolderIsEmpty.java
@@ -21,7 +21,6 @@ import org.apache.commons.vfs2.FileObject;
 import org.apache.commons.vfs2.FileSelectInfo;
 import org.apache.commons.vfs2.FileSelector;
 import org.apache.commons.vfs2.FileType;
-import org.apache.hop.core.Const;
 import org.apache.hop.core.ICheckResult;
 import org.apache.hop.core.Result;
 import org.apache.hop.core.annotations.Action;
@@ -155,14 +154,9 @@ public class ActionFolderIsEmpty extends ActionBase 
implements Cloneable, IActio
 
   @Override
   public Result execute(Result previousResult, int nr) {
-    boolean oldBehavior =
-        "Y"
-            .equalsIgnoreCase(
-                
getVariable(Const.HOP_COMPATIBILITY_SET_ERROR_ON_SPECIFIC_WORKFLOW_ACTIONS, 
"N"));
-
     Result result = previousResult;
     result.setResult(false);
-    result.setNrErrors(oldBehavior ? 1 : 0);
+    result.setNrErrors(0);
 
     filescount = 0;
     folderscount = 0;
diff --git 
a/plugins/actions/folderisempty/src/test/java/org/apache/hop/workflow/actions/folderisempty/WorkflowActionFolderIsEmptyTest.java
 
b/plugins/actions/folderisempty/src/test/java/org/apache/hop/workflow/actions/folderisempty/WorkflowActionFolderIsEmptyTest.java
index adb99e8..3ad9936 100644
--- 
a/plugins/actions/folderisempty/src/test/java/org/apache/hop/workflow/actions/folderisempty/WorkflowActionFolderIsEmptyTest.java
+++ 
b/plugins/actions/folderisempty/src/test/java/org/apache/hop/workflow/actions/folderisempty/WorkflowActionFolderIsEmptyTest.java
@@ -86,7 +86,7 @@ public class WorkflowActionFolderIsEmptyTest {
   }
 
   @Test
-  public void testSetNrErrorsNewBehaviorFail() throws Exception {
+  public void testSetNrErrorsFail() throws Exception {
     action.setFoldername(nonEmptyDir);
 
     Result result = action.execute(new Result(), 0);
@@ -94,16 +94,4 @@ public class WorkflowActionFolderIsEmptyTest {
     assertFalse("For non-empty folder result should be false", 
result.getResult());
     assertEquals("There should be still no errors", 0, result.getNrErrors());
   }
-
-  @Test
-  public void testSetNrErrorsOldBehaviorFail() throws Exception {
-    action.setFoldername(nonEmptyDir);
-
-    
action.setVariable(Const.HOP_COMPATIBILITY_SET_ERROR_ON_SPECIFIC_WORKFLOW_ACTIONS,
 "Y");
-
-    Result result = action.execute(new Result(), 0);
-
-    assertFalse("For non-empty folder result should be false", 
result.getResult());
-    assertEquals("According to old behaviour there should be an error", 1, 
result.getNrErrors());
-  }
 }
diff --git 
a/plugins/transforms/memgroupby/src/main/java/org/apache/hop/pipeline/transforms/memgroupby/MemoryGroupBy.java
 
b/plugins/transforms/memgroupby/src/main/java/org/apache/hop/pipeline/transforms/memgroupby/MemoryGroupBy.java
index bb19ca6..d761d12 100644
--- 
a/plugins/transforms/memgroupby/src/main/java/org/apache/hop/pipeline/transforms/memgroupby/MemoryGroupBy.java
+++ 
b/plugins/transforms/memgroupby/src/main/java/org/apache/hop/pipeline/transforms/memgroupby/MemoryGroupBy.java
@@ -31,7 +31,6 @@ import org.apache.hop.i18n.BaseMessages;
 import org.apache.hop.pipeline.Pipeline;
 import org.apache.hop.pipeline.PipelineMeta;
 import org.apache.hop.pipeline.transform.BaseTransform;
-import org.apache.hop.pipeline.transform.ITransform;
 import org.apache.hop.pipeline.transform.TransformMeta;
 import 
org.apache.hop.pipeline.transforms.memgroupby.MemoryGroupByData.HashEntry;
 
@@ -43,7 +42,6 @@ public class MemoryGroupBy extends 
BaseTransform<MemoryGroupByMeta, MemoryGroupB
 
   private boolean allNullsAreZero = false;
   private boolean minNullIsValued = false;
-  private boolean compatibilityMode = false;
 
   public MemoryGroupBy(
       TransformMeta transformMeta,
@@ -70,10 +68,6 @@ public class MemoryGroupBy extends 
BaseTransform<MemoryGroupByMeta, MemoryGroupB
       allNullsAreZero = ValueMetaBase.convertStringToBoolean(val);
       val = getVariable(Const.HOP_AGGREGATION_MIN_NULL_IS_VALUED, "N");
       minNullIsValued = ValueMetaBase.convertStringToBoolean(val);
-      compatibilityMode =
-          ValueMetaBase.convertStringToBoolean(
-              getVariable(
-                  
Const.HOP_COMPATIBILITY_MEMORY_GROUP_BY_SUM_AVERAGE_RETURN_NUMBER_TYPE, "N"));
 
       // What is the output looking like?
       //
@@ -421,8 +415,7 @@ public class MemoryGroupBy extends 
BaseTransform<MemoryGroupByMeta, MemoryGroupB
           break;
         case MemoryGroupByMeta.TYPE_GROUP_SUM:
         case MemoryGroupByMeta.TYPE_GROUP_AVERAGE:
-          vMeta =
-              !compatibilityMode && subjMeta.isNumeric() ? subjMeta.clone() : 
new ValueMetaNumber();
+          vMeta = subjMeta.isNumeric() ? subjMeta.clone() : new 
ValueMetaNumber();
           vMeta.setName(meta.getAggregateField()[i]);
           break;
         case MemoryGroupByMeta.TYPE_GROUP_FIRST:
diff --git 
a/plugins/transforms/memgroupby/src/main/java/org/apache/hop/pipeline/transforms/memgroupby/MemoryGroupByMeta.java
 
b/plugins/transforms/memgroupby/src/main/java/org/apache/hop/pipeline/transforms/memgroupby/MemoryGroupByMeta.java
index c4ce983..e38afd9 100644
--- 
a/plugins/transforms/memgroupby/src/main/java/org/apache/hop/pipeline/transforms/memgroupby/MemoryGroupByMeta.java
+++ 
b/plugins/transforms/memgroupby/src/main/java/org/apache/hop/pipeline/transforms/memgroupby/MemoryGroupByMeta.java
@@ -330,8 +330,6 @@ public class MemoryGroupByMeta extends 
BaseTransformMeta<MemoryGroupBy, MemoryGr
       TransformMeta nextTransform,
       IVariables variables,
       IHopMetadataProvider metadataProvider) {
-    // Check compatibility mode
-    boolean compatibilityMode = 
variables.getVariableBoolean(Const.HOP_COMPATIBILITY_MEMORY_GROUP_BY_SUM_AVERAGE_RETURN_NUMBER_TYPE,
 false);
     
     // re-assemble a new row of metadata
     //
@@ -376,7 +374,7 @@ public class MemoryGroupByMeta extends 
BaseTransformMeta<MemoryGroupBy, MemoryGr
             break;
           case TYPE_GROUP_SUM:
           case TYPE_GROUP_AVERAGE:
-            if (!compatibilityMode && subj.isNumeric()) {
+            if (subj.isNumeric()) {
               valueType = subj.getType();
             } else {
               valueType = IValueMeta.TYPE_NUMBER;
diff --git 
a/plugins/transforms/memgroupby/src/test/java/org/apache/hop/pipeline/transforms/memgroupby/MemoryGroupByAggregationTest.java
 
b/plugins/transforms/memgroupby/src/test/java/org/apache/hop/pipeline/transforms/memgroupby/MemoryGroupByAggregationTest.java
index 5dd6ce3..6177192 100644
--- 
a/plugins/transforms/memgroupby/src/test/java/org/apache/hop/pipeline/transforms/memgroupby/MemoryGroupByAggregationTest.java
+++ 
b/plugins/transforms/memgroupby/src/test/java/org/apache/hop/pipeline/transforms/memgroupby/MemoryGroupByAggregationTest.java
@@ -151,61 +151,6 @@ public class MemoryGroupByAggregationTest {
 
   @Test
   @Ignore
-  public void testCompatibility() throws HopException {
-    variables.setVariable(
-        
Const.HOP_COMPATIBILITY_MEMORY_GROUP_BY_SUM_AVERAGE_RETURN_NUMBER_TYPE, "Y");
-
-    addColumn(new ValueMetaInteger("intg"), 0L, 1L, 1L, 10L);
-    addColumn(new ValueMetaInteger("nul"));
-    addColumn(new ValueMetaInteger("mix1"), -1L, 2L);
-    addColumn(new ValueMetaInteger("mix2"), null, 7L);
-    addColumn(new ValueMetaNumber("mix3"), -1.0, 2.5);
-
-    RowMetaAndData output = runTransform();
-
-    assertThat(output.getInteger("intg_min"), is(0L));
-    assertThat(output.getInteger("intg_max"), is(10L));
-    assertThat(output.getInteger("intg_sum"), is(12L));
-    assertThat(output.getInteger("intg_ave"), is(3L));
-    assertThat(output.getInteger("intg_count"), is(4L));
-    assertThat(output.getInteger("intg_count_any"), is(4L));
-    assertThat(output.getInteger("intg_count_distinct"), is(3L));
-
-    assertThat(output.getInteger("nul_min"), nullValue());
-    assertThat(output.getInteger("nul_max"), nullValue());
-    assertThat(output.getInteger("nul_sum"), nullValue());
-    assertThat(output.getInteger("nul_ave"), nullValue());
-    assertThat(output.getInteger("nul_count"), is(0L));
-    assertThat(output.getInteger("nul_count_any"), is(4L));
-    assertThat(output.getInteger("nul_count_distinct"), is(0L));
-
-    assertThat(output.getInteger("mix1_max"), is(2L));
-    assertThat(output.getInteger("mix1_min"), is(-1L));
-    assertThat(output.getInteger("mix1_sum"), is(1L));
-    assertThat(output.getNumber("mix1_ave", Double.NaN), is(0.5));
-    assertThat(output.getInteger("mix1_count"), is(2L));
-    assertThat(output.getInteger("mix1_count_any"), is(4L));
-    assertThat(output.getInteger("mix1_count_distinct"), is(2L));
-
-    assertThat(output.getInteger("mix2_max"), is(7L));
-    assertThat(output.getInteger("mix2_min"), is(7L));
-    assertThat(output.getInteger("mix2_sum"), is(7L));
-    assertThat(output.getNumber("mix2_ave", Double.NaN), is(7.0));
-    assertThat(output.getInteger("mix2_count"), is(1L));
-    assertThat(output.getInteger("mix2_count_any"), is(4L));
-    assertThat(output.getInteger("mix2_count_distinct"), is(1L));
-
-    assertThat(output.getNumber("mix3_max", Double.NaN), is(2.5));
-    assertThat(output.getNumber("mix3_min", Double.NaN), is(-1.0));
-    assertThat(output.getNumber("mix3_sum", Double.NaN), is(1.5));
-    assertThat(output.getNumber("mix3_ave", Double.NaN), is(0.75));
-    assertThat(output.getInteger("mix3_count"), is(2L));
-    assertThat(output.getInteger("mix3_count_any"), is(4L));
-    assertThat(output.getInteger("mix3_count_distinct"), is(2L));
-  }
-
-  @Test
-  @Ignore
   public void testNullMin() throws Exception {
     variables.setVariable(Const.HOP_AGGREGATION_MIN_NULL_IS_VALUED, "Y");
 
@@ -227,8 +172,6 @@ public class MemoryGroupByAggregationTest {
   @Ignore
   public void testNullsAreZeroCompatible() throws Exception {
     variables.setVariable(Const.HOP_AGGREGATION_ALL_NULLS_ARE_ZERO, "Y");
-    variables.setVariable(
-        
Const.HOP_COMPATIBILITY_MEMORY_GROUP_BY_SUM_AVERAGE_RETURN_NUMBER_TYPE, "Y");
 
     addColumn(new ValueMetaInteger("nul"));
     addColumn(new ValueMetaInteger("both"), -2L, 0L, null, 10L);
diff --git 
a/plugins/transforms/memgroupby/src/test/java/org/apache/hop/pipeline/transforms/memgroupby/MemoryGroupByMetaTest.java
 
b/plugins/transforms/memgroupby/src/test/java/org/apache/hop/pipeline/transforms/memgroupby/MemoryGroupByMetaTest.java
index dcacffa..2fd4501 100644
--- 
a/plugins/transforms/memgroupby/src/test/java/org/apache/hop/pipeline/transforms/memgroupby/MemoryGroupByMetaTest.java
+++ 
b/plugins/transforms/memgroupby/src/test/java/org/apache/hop/pipeline/transforms/memgroupby/MemoryGroupByMetaTest.java
@@ -337,16 +337,6 @@ public class MemoryGroupByMetaTest implements 
IInitializer<MemoryGroupByMeta> {
     assertTrue(rm.indexOfValue("Average(Date)") >= 0);
     assertEquals(
         IValueMeta.TYPE_NUMBER, 
rm.getValueMeta(rm.indexOfValue("Average(Date)")).getType());
-
-    // Test Compatibility
-    rm = getInputRowMeta();
-    
vars.setVariable(Const.HOP_COMPATIBILITY_MEMORY_GROUP_BY_SUM_AVERAGE_RETURN_NUMBER_TYPE,
 "Y");
-    meta.getFields(rm, transformName, null, null, vars, null);
-    assertNotNull(rm);
-    assertEquals(26, rm.size());
-    assertTrue(rm.indexOfValue("Average(Integer)") >= 0);
-    assertEquals(
-        IValueMeta.TYPE_NUMBER, 
rm.getValueMeta(rm.indexOfValue("Average(Integer)")).getType());
   }
 
   @Test
diff --git 
a/plugins/transforms/mergerows/src/main/java/org/apache/hop/pipeline/transforms/mergerows/MergeRows.java
 
b/plugins/transforms/mergerows/src/main/java/org/apache/hop/pipeline/transforms/mergerows/MergeRows.java
index 7d86caf..a8d4c14 100644
--- 
a/plugins/transforms/mergerows/src/main/java/org/apache/hop/pipeline/transforms/mergerows/MergeRows.java
+++ 
b/plugins/transforms/mergerows/src/main/java/org/apache/hop/pipeline/transforms/mergerows/MergeRows.java
@@ -17,7 +17,6 @@
 
 package org.apache.hop.pipeline.transforms.mergerows;
 
-import org.apache.hop.core.Const;
 import org.apache.hop.core.exception.HopException;
 import org.apache.hop.core.exception.HopRowException;
 import org.apache.hop.core.exception.HopTransformException;
@@ -47,8 +46,6 @@ public class MergeRows extends BaseTransform<MergeRowsMeta, 
MergeRowsData> {
   private static final String VALUE_NEW = "new";
   private static final String VALUE_DELETED = "deleted";
 
-  private boolean useRefWhenIdentical = false;
-
   public MergeRows(
       TransformMeta transformMeta,
       MergeRowsMeta meta,
@@ -72,21 +69,7 @@ public class MergeRows extends BaseTransform<MergeRowsMeta, 
MergeRowsData> {
       data.oneRowSet = findInputRowSet(infoStreams.get(0).getTransformName());
       // twoRowSet is the "Comparison" stream
       data.twoRowSet = findInputRowSet(infoStreams.get(1).getTransformName());
-
-      // rowSetWhenIdentical is use in case the comparison is IDENTICAL.
-      // this should be the "Comparison" stream but can be the "Reference" 
stream for backward
-      // compatibility
-      String useRefWhenIdenticalVar =
-          Const.NVL(
-              
getVariable(Const.HOP_COMPATIBILITY_MERGE_ROWS_USE_REFERENCE_STREAM_WHEN_IDENTICAL),
-              "N");
-      if ("N".equalsIgnoreCase(useRefWhenIdenticalVar)) {
-        // use the reference stream (as per documentation)
-        useRefWhenIdentical = false;
-      } else {
-        // use the comparison stream (for backward compatibility)
-        useRefWhenIdentical = true;
-      }
+      
       data.one = getRowFrom(data.oneRowSet);
       data.two = getRowFrom(data.twoRowSet);
 
@@ -189,13 +172,8 @@ public class MergeRows extends 
BaseTransform<MergeRowsMeta, MergeRowsData> {
 
         int compareValues = data.oneRowSet.getRowMeta().compare(data.one, 
data.two, data.valueNrs);
         if (compareValues == 0) {
-          if (useRefWhenIdentical) { // backwards compatible behavior: use the 
reference stream
-            outputRow = data.one;
-            outputIndex = data.oneRowSet.getRowMeta().size();
-          } else {
-            outputRow = data.two; // documented behavior: use the comparison 
stream
-            outputIndex = data.twoRowSet.getRowMeta().size();
-          }
+          outputRow = data.two; // documented behavior: use the comparison 
stream
+          outputIndex = data.twoRowSet.getRowMeta().size();          
           flagField = VALUE_IDENTICAL;
         } else {
           // Return the compare (most recent) row
diff --git 
a/plugins/transforms/selectvalues/src/main/java/org/apache/hop/pipeline/transforms/selectvalues/SelectValuesMeta.java
 
b/plugins/transforms/selectvalues/src/main/java/org/apache/hop/pipeline/transforms/selectvalues/SelectValuesMeta.java
index a1b5fd2..9acb23d 100644
--- 
a/plugins/transforms/selectvalues/src/main/java/org/apache/hop/pipeline/transforms/selectvalues/SelectValuesMeta.java
+++ 
b/plugins/transforms/selectvalues/src/main/java/org/apache/hop/pipeline/transforms/selectvalues/SelectValuesMeta.java
@@ -377,13 +377,6 @@ public class SelectValuesMeta extends 
BaseTransformMeta<SelectValues, SelectValu
         SelectMetadataChange metaChange = meta[i];
 
         int idx = inputRowMeta.indexOfValue(metaChange.getName());
-        boolean metaTypeChangeUsesNewTypeDefaults = false; // Normal behavior 
as of 5.x or so
-        if (variables != null) {
-          metaTypeChangeUsesNewTypeDefaults =
-              ValueMetaBase.convertStringToBoolean(
-                  variables.getVariable(
-                      
Const.HOP_COMPATIBILITY_SELECT_VALUES_TYPE_CHANGE_USES_TYPE_DEFAULTS, "N"));
-        }
         if (idx >= 0) { // We found the value
 
           // This is the value we need to change:
@@ -397,12 +390,7 @@ public class SelectValuesMeta extends 
BaseTransformMeta<SelectValues, SelectValu
           }
           // Change the type?
           if (metaChange.getType() != IValueMeta.TYPE_NONE && v.getType() != 
metaChange.getType()) {
-            // clone copies over the conversion mask instead of using the 
default for the new type
-            if (!metaTypeChangeUsesNewTypeDefaults) {
-              v = ValueMetaFactory.cloneValueMeta(v, metaChange.getType());
-            } else {
-              v = ValueMetaFactory.createValueMeta(v.getName(), 
metaChange.getType());
-            }
+            v = ValueMetaFactory.cloneValueMeta(v, metaChange.getType());
 
             // This is now a copy, replace it in the row!
             //
diff --git 
a/plugins/transforms/selectvalues/src/test/java/org/apache/hop/pipeline/transforms/selectvalues/SelectValuesTest.java
 
b/plugins/transforms/selectvalues/src/test/java/org/apache/hop/pipeline/transforms/selectvalues/SelectValuesTest.java
index 1d4d866..2e1a86e 100644
--- 
a/plugins/transforms/selectvalues/src/test/java/org/apache/hop/pipeline/transforms/selectvalues/SelectValuesTest.java
+++ 
b/plugins/transforms/selectvalues/src/test/java/org/apache/hop/pipeline/transforms/selectvalues/SelectValuesTest.java
@@ -280,192 +280,6 @@ public class SelectValuesTest {
 
     iValueMeta = transform2.rowMeta.getValueMeta(0);
     assertEquals(ValueMetaBase.DEFAULT_INTEGER_FORMAT_MASK, 
iValueMeta.getConversionMask());
-
-    // Another test:
-    // Now, test that setting the variable results in getting the default 
conversion mask
-    //
-    transformMeta = new SelectValuesMeta();
-    transformMeta.allocate(1, 0, 1);
-    transformMeta.getSelectFields()[0] = new SelectField();
-    transformMeta.getSelectFields()[0].setName(SELECTED_FIELD);
-    transformMeta.getMeta()[0] =
-        new SelectMetadataChange(
-            SELECTED_FIELD,
-            null,
-            IValueMeta.TYPE_INTEGER,
-            -2,
-            -2,
-            IValueMeta.STORAGE_TYPE_NORMAL,
-            null,
-            false,
-            null,
-            null,
-            false,
-            null,
-            null,
-            null); // no specified conversion type so should have default 
conversion mask.
-
-    transformData = new SelectValuesData();
-    transformData.select = true;
-    transformData.metadata = true;
-    transformData.firstselect = true;
-    transformData.firstmetadata = true;
-
-    transform2 =
-        new SelectValuesHandler(
-            helper.transformMeta,
-            transformMeta,
-            transformData,
-            1,
-            helper.pipelineMeta,
-            helper.pipeline);
-    transform2.setVariable(
-        Const.HOP_COMPATIBILITY_SELECT_VALUES_TYPE_CHANGE_USES_TYPE_DEFAULTS, 
"Y");
-    transform2 = spy(transform2);
-    inputRow2 = new Object[] {new BigDecimal("589")}; // Starting with a 
BigDecimal (no places)
-    doReturn(inputRow2).when(transform2).getRow();
-    doNothing()
-        .when(transform2)
-        .putError(
-            any(IRowMeta.class),
-            any(Object[].class),
-            anyLong(),
-            anyString(),
-            anyString(),
-            anyString());
-
-    inputRowMeta = new RowMeta();
-    inputRowMeta.addValueMeta(new ValueMetaBigNumber(SELECTED_FIELD));
-    transform2.setInputRowMeta(inputRowMeta);
-
-    transform2.processRow();
-
-    iValueMeta = transform2.rowMeta.getValueMeta(0);
-
-    assertEquals(ValueMetaBase.DEFAULT_INTEGER_FORMAT_MASK, 
iValueMeta.getConversionMask());
-
-    // Another test
-    //
-    transformMeta = new SelectValuesMeta();
-    transformMeta.allocate(1, 0, 1);
-    transformMeta.getSelectFields()[0] = new SelectField();
-    transformMeta.getSelectFields()[0].setName(SELECTED_FIELD);
-    transformMeta.getMeta()[0] =
-        new SelectMetadataChange(
-            SELECTED_FIELD,
-            null,
-            IValueMeta.TYPE_NUMBER,
-            -2,
-            -2,
-            IValueMeta.STORAGE_TYPE_NORMAL,
-            null,
-            false,
-            null,
-            null,
-            false,
-            null,
-            null,
-            null); // no specified conversion type so should have default 
conversion mask for
-    // Double.
-
-    transformData = new SelectValuesData();
-    transformData.select = true;
-    transformData.metadata = true;
-    transformData.firstselect = true;
-    transformData.firstmetadata = true;
-
-    transform2 =
-        new SelectValuesHandler(
-            helper.transformMeta,
-            transformMeta,
-            transformData,
-            1,
-            helper.pipelineMeta,
-            helper.pipeline);
-    transform2.setVariable(
-        Const.HOP_COMPATIBILITY_SELECT_VALUES_TYPE_CHANGE_USES_TYPE_DEFAULTS, 
"Y");
-    transform2 = spy(transform2);
-    doReturn(inputRow2).when(transform2).getRow();
-    doNothing()
-        .when(transform2)
-        .putError(
-            any(IRowMeta.class),
-            any(Object[].class),
-            anyLong(),
-            anyString(),
-            anyString(),
-            anyString());
-
-    inputRowMeta = new RowMeta();
-    inputRowMeta.addValueMeta(new ValueMetaBigNumber(SELECTED_FIELD));
-    transform2.setInputRowMeta(inputRowMeta);
-
-    transform2.processRow();
-
-    iValueMeta = transform2.rowMeta.getValueMeta(0);
-    assertEquals(ValueMetaBase.DEFAULT_NUMBER_FORMAT_MASK, 
iValueMeta.getConversionMask());
-
-    // Another test
-    //
-    transformMeta = new SelectValuesMeta();
-    transformMeta.allocate(1, 0, 1);
-    transformMeta.getSelectFields()[0] = new SelectField();
-    transformMeta.getSelectFields()[0].setName(SELECTED_FIELD);
-    // no specified conversion type so should have default conversion mask for 
BigNumber
-    transformMeta.getMeta()[0] =
-        new SelectMetadataChange(
-            SELECTED_FIELD,
-            null,
-            IValueMeta.TYPE_BIGNUMBER,
-            -2,
-            -2,
-            IValueMeta.STORAGE_TYPE_NORMAL,
-            null,
-            false,
-            null,
-            null,
-            false,
-            null,
-            null,
-            null);
-
-    transformData = new SelectValuesData();
-    transformData.select = true;
-    transformData.metadata = true;
-    transformData.firstselect = true;
-    transformData.firstmetadata = true;
-
-    transform2 =
-        new SelectValuesHandler(
-            helper.transformMeta,
-            transformMeta,
-            transformData,
-            1,
-            helper.pipelineMeta,
-            helper.pipeline);
-    transform2.setVariable(
-        Const.HOP_COMPATIBILITY_SELECT_VALUES_TYPE_CHANGE_USES_TYPE_DEFAULTS, 
"Y");
-    transform2 = spy(transform2);
-    inputRow2 = new Object[] {new Long("589")}; // Starting with a Long
-    doReturn(inputRow2).when(transform2).getRow();
-    doNothing()
-        .when(transform2)
-        .putError(
-            any(IRowMeta.class),
-            any(Object[].class),
-            anyLong(),
-            anyString(),
-            anyString(),
-            anyString());
-
-    inputRowMeta = new RowMeta();
-    inputRowMeta.addValueMeta(new ValueMetaInteger(SELECTED_FIELD));
-    transform2.setInputRowMeta(inputRowMeta);
-
-    transform2.processRow();
-
-    iValueMeta = transform2.rowMeta.getValueMeta(0);
-    assertEquals(ValueMetaBase.DEFAULT_BIG_NUMBER_FORMAT_MASK, 
iValueMeta.getConversionMask());
   }
 
   @Test
diff --git 
a/plugins/transforms/textfile/src/main/java/org/apache/hop/pipeline/transforms/textfileoutput/TextFileOutput.java
 
b/plugins/transforms/textfile/src/main/java/org/apache/hop/pipeline/transforms/textfileoutput/TextFileOutput.java
index 90ada8c..5ff88b7 100644
--- 
a/plugins/transforms/textfile/src/main/java/org/apache/hop/pipeline/transforms/textfileoutput/TextFileOutput.java
+++ 
b/plugins/transforms/textfile/src/main/java/org/apache/hop/pipeline/transforms/textfileoutput/TextFileOutput.java
@@ -56,13 +56,7 @@ public class TextFileOutput<Meta extends TextFileOutputMeta, 
Data extends TextFi
 
   private static final String FILE_COMPRESSION_TYPE_NONE =
       
TextFileOutputMeta.fileCompressionTypeCodes[TextFileOutputMeta.FILE_COMPRESSION_TYPE_NONE];
-  private static final boolean COMPATIBILITY_APPEND_NO_HEADER =
-      "Y"
-          .equals(
-              Const.NVL(
-                  
System.getProperty(Const.HOP_COMPATIBILITY_TEXT_FILE_OUTPUT_APPEND_NO_HEADER),
-                  "N"));
-
+  
   public TextFileOutput(
       TransformMeta transformMeta,
       Meta meta,
@@ -322,7 +316,7 @@ public class TextFileOutput<Meta extends 
TextFileOutputMeta, Data extends TextFi
     isWriteHeader &=
         writingToFileForFirstTime
             && (!meta.isFileAppended()
-                || (!COMPATIBILITY_APPEND_NO_HEADER && 
!isFileExists(filename)));
+                || (!isFileExists(filename)));
     return isWriteHeader;
   }
 
diff --git 
a/plugins/transforms/xml/src/main/java/org/apache/hop/pipeline/transforms/xml/xmloutput/XmlOutput.java
 
b/plugins/transforms/xml/src/main/java/org/apache/hop/pipeline/transforms/xml/xmloutput/XmlOutput.java
index 206a073..c135670 100644
--- 
a/plugins/transforms/xml/src/main/java/org/apache/hop/pipeline/transforms/xml/xmloutput/XmlOutput.java
+++ 
b/plugins/transforms/xml/src/main/java/org/apache/hop/pipeline/transforms/xml/xmloutput/XmlOutput.java
@@ -236,24 +236,11 @@ public class XmlOutput extends 
BaseTransform<XmlOutputMeta, XmlOutputData> {
         }
 
         if (valueData != null) {
-
           data.writer.writeAttribute(elementName, 
valueMeta.getString(valueData));
-        } else if (isNullValueAllowed(valueMeta.getType())) {
-
-          data.writer.writeAttribute(elementName, "null");
         }
       }
     }
   }
-
-  private boolean isNullValueAllowed(int valueMetaType) {
-
-    // Check if retro compatibility is set or not, to guaranty compatibility 
with older versions.
-    // In 6.1 null values were written with string "null". Since then the 
attribute is not written.
-    boolean comptability = 
getVariableBoolean(Const.HOP_COMPATIBILITY_XML_OUTPUT_NULL_VALUES, false);
-
-    return comptability  && valueMetaType == IValueMeta.TYPE_STRING;
-  }
   
   private void writeField(IValueMeta valueMeta, Object valueData, String 
element)
       throws HopTransformException {
diff --git 
a/plugins/transforms/xml/src/test/java/org/apache/hop/pipeline/transforms/xml/xmloutput/XmlOutputTest.java
 
b/plugins/transforms/xml/src/test/java/org/apache/hop/pipeline/transforms/xml/xmloutput/XmlOutputTest.java
index d2d3fa9..c0eeb16 100644
--- 
a/plugins/transforms/xml/src/test/java/org/apache/hop/pipeline/transforms/xml/xmloutput/XmlOutputTest.java
+++ 
b/plugins/transforms/xml/src/test/java/org/apache/hop/pipeline/transforms/xml/xmloutput/XmlOutputTest.java
@@ -111,14 +111,6 @@ public class XmlOutputTest {
     testNullValuesInAttribute(0);
   }
 
-  @Test
-  public void testNullInAttributeValuesAreNotEscaped() throws HopException, 
XMLStreamException {
-
-    xmlOutput.setVariable(Const.HOP_COMPATIBILITY_XML_OUTPUT_NULL_VALUES, "Y");
-
-    testNullValuesInAttribute(rowWithNullData.length);
-  }
-
   /** Testing to verify that getIfPresent defaults the XMLField ContentType 
value */
   @Test
   public void testDefaultXmlFieldContentType() {

Reply via email to