Skip to content

Rule#

[source]

Rule#

hsfs.rule.Rule(
    name,
    level,
    min=None,
    max=None,
    pattern=None,
    accepted_type=None,
    feature=None,
    legal_values=None,
    href=None,
    expand=None,
    items=None,
    count=None,
    type=None,
)

Metadata object representing the validation rule that is used by feature group expectations.

This class is made for hsfs internal use only.


Properties#

[source]

accepted_type#

Data type accepted for a feature. Applicable only to the HAS_DATATYPE rule. Accepted types are: Null, Fractional, Integral, Boolean, String


[source]

feature#

Feature to compare the expectation's features to, applied only to Compliance rules.


[source]

List of legal values a feature should be found int. feature.Applicable only to IS_CONTAINED_IN rule.


[source]

level#

Severity level of a rule, one of "WARNING" or "ERROR".


[source]

max#

The upper bound of the value range this feature should fall into.


[source]

min#

The lower bound of the value range this feature should fall into.


[source]

name#

Name of the rule as found in rule definitions.


[source]

pattern#

Pattern to check for a feature's pattern compliance. Applicable only to the HAS_PATTERN rule.