Uploaded image for project: 'Atlas'
  1. Atlas
  2. ATLAS-1955

Validation for Attributes

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.0.0
    • Fix Version/s: 1.0.0
    • Component/s: atlas-core
    • Labels:
      None

      Description

      It would be very nice that Atlas model could contain a way to represent attribute validation.

      A simple example is that we would like to model a Person, with attributes Name, Email and Country. Now we would like to specify that Email has to follow a specific regular expression, so it would be nice if we could set Email -> hasValidation -> EmailRegex, with EmailRegex having:

      Name: Email Regular Expresion
      Expression: /[0-9a-z]@[0-9a-z].[0-9a-z]+/

      For more complex types of validation, e.g. checking card number validity, it could be added some external validator function/service.

      Name: Credit Card Number Validator
      Validator: org.apache.atlas.validators.creditcard or https://host:port/creditCardValidator

      For validations from a reference table, for example a country name, it could be:

      Name: Country Name Ref Validator
      Reference Column: <country_name_column>

      where <country_name_column> would be an instance of type Hive_Column or HBase_Column.

      Since this is a kind of Standarization, it could be placed in Area 5.

      A similar approach is followed in software Kylo

        Attachments

          Activity

            People

            • Assignee:
              rding Richard Ding
              Reporter:
              ivarea Israel Varea
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: