Cleaner Rules Processing

Cleaner Rules Processing - Rons Data Stream


In a Rons Data Stream Cleaner, you add rules in the order that makes sense to you, and each rule gets a number. When the Job runs, however, the rules are processed in groups, in a fixed order. Knowing that order helps when one rule depends on another, for example when a rule uses a column name that another rule changes.

The Processing Order

1. Cell rules that apply to column names

Cell rules whose Row Selector is Header Row run first. Every later rule that uses column names sees the new, cleaned names.

2. Column operations

Column operations (add, update, copy, move, delete, merge and split columns) are processed once, before the body of the data. They set the shape of the output: which columns there are, and in which order.

3. Row operations

Row operations (add, delete and split rows) add rows to, or remove them from, the processing pipeline. Only the rows that remain are passed on.

4. Cell operations

All other cell rules, those whose Row Selector is not Header Row, are applied to the remaining rows.

Within each group, rules run in their numbered order. If a Job has several Cleaners, they run in the order they appear in the Job.

What This Means in Practice

  • Rename first, then refer to the new name. If a header cell rule changes "Cust ID" to "CustomerID", column selectors in the same Cleaner should use "CustomerID".
  • Deleted columns are gone for cell rules. A Delete Column operation runs before the cell operations, so a cell rule cannot use a column you delete in the same Cleaner.
  • Deleted rows are not cleaned. Rows removed by a row operation never reach the cell operations.
  • Check with the Data Builder. Cell Change in the Data Builder shows which numbered rule changed each cell.

See Also