Functions¶
spark_expectations.utils.udf.get_actions_list(column: Column) -> Column
¶
This function takes column of type array(map(str,str)) and creates list by picking action_if_failed from dict Args: column: Provide a column of type array(map(str,str))
Returns:
Name | Type | Description |
---|---|---|
list |
Column
|
returns a column with list of action_if_failed from the set expectations rules |
Source code in spark_expectations/utils/udf.py
spark_expectations.utils.udf.remove_empty_maps(column: Column) -> Column
¶
This function takes a column of type array(map(str,str)) and removes empty maps from it Args: column: Provide a column of type array(map(str,str)) Returns: list: Returns a Column which is not having empty maps