Skip to content

CONSOLIDATED - ALL SAME

Description

The ALL SAME validator is designed to ensure that all valid raw data points within a consolidation block are identical. This validator is particularly useful in scenarios where data consistency is critical, and any variation in the data points would indicate an error or inconsistency in the data processing pipeline. It supports all non-BLOB data types, making it versatile for various data validation needs.


Config Location

To configure the ALL SAME validator, you need to define it within the consDPValidators section of your data point configuration within the schema. This involves specifying the validator name and entity.


Supported Data Types

  • Json
  • Boolean
  • String
  • Decimal
  • Double
  • Integer

Config Requirements

Config ({}) options are not required for the ALL SAME validator. This validator is designed to perform a straightforward check for data consistency without the need for additional configuration parameters.


Example Config

Below is an example of how to configure the ALL SAME validator in XML format:

1
2
3
4
5
<dataPoint name="NAME" dataType="STRING">
    <consDPValidators>
        <consDPValidator name="ALL_SAME" entity="ALL_SAME"/>
    </consDPValidators>
</dataPoint>

Example Result

Upon successful configuration and execution, the ALL SAME validator will check all valid raw data points within the specified consolidation block to ensure they are identical. If any variation is detected, the validator will trigger a block violation, indicating a potential issue with the data consistency.


Common Mistakes

  • Ensure that the validator name and entity are correctly defined in the configuration to ensure that the validator is correctly identified and applied during the data processing pipeline.
  • Remember that the ALL SAME validator does not require any configuration. If you attempt to provide a <config> block, it will be ignored.