Skip to content

Lookup static values check Rule

Description

The Lookup static values check rule refers checks for the correct usage of lookup operations within a system. A lookup-static operation involves searching for a value in a predefined set or dataset (like a table or array) based on a key or criterion.

Rule Configuration

The Rule configuration for Lookup static values check ensures data validation by comparing it against predefined static values stored in a reference table. The check can be case-sensitive, meaning it differentiates between uppercase and lowercase letters to maintain accuracy and consistency in data matching and validation processes.

  • Static Values static values refer to predefined, unchanging values used in the process of validating and matching data. These static values are often stored in a reference or lookup table and are used to ensure that the data meets certain consistency or correctness criteria.

  • Case-sensitive Case sensitivity refers to whether the comparison between the value being looked up and the static reference values is sensitive to the difference between uppercase and lowercase letters.

Success Criteria

Success criteria for a Lookup Static values check in data quality are typically defined by its ability to accurately match values from a static reference dataset to the source data, ensuring consistency and correctness. The key indicators of success include high match rate (i.e., the percentage of source data that can be successfully mapped to a reference value), minimal false positives (incorrect matches), low error rates (such as missing or unmatched data), and the efficient handling of exceptions.

  • The success condition depends on how the Static Values is configured.

  • The success condition is met if this count satisfies the given operator and value.

  • For example, if the column contains an input such as Mango that exactly matches the static value Mango, it will pass. Otherwise, inputs like pineapple, or if case sensitivity is enabled mango, will also fail.

    Configuration Fields

    • Operator Options

      • Greater than

      • Less than

      • Equal to

      • Between (requires specifying a start and end range)

      • Operator Defines the comparison operation (Greater Than, Less Than, Equal To, or Between).

      • Value The threshold value used for success criteria. Required for Greater than, Less than, and Equal to operators.

      • Value Range Required only when the Between operator is selected, specifying the start and end range.

      • Threshold Type Indicates whether the Value or Value Range to be considered as percentage or an absolute count.

      • Allow Null Values Determines if null values are permitted.

Sample Input

IDVegetablesFruits
1TomatoPineapple
2Lettuceapple
3CarrotMango
4OnionApple
5broccoliBanana

Sample Rule Configuration

  • Static Values Vegetables = Tomato,Onion,Broccoli, Fruits = Apple,Banana,Mango,Pineapple
  • Case Sensitivity True

Sample Success Criteria Configuration

  • Operator Less than
  • Value 4
  • Threshold Type Absolute Count
  • Allow Null Values False

alt text

Sample Output

Column NameRule NameSuccess CountFailure CountWithin ThresholdNull Count
VegetablesLookup Static Value Check23Yes0
FruitsLookup Static Value Check41No0