Currently, I am validating the table schema with expect_table_columns_to_match_set
by feeding in a list of columns. However, I want to validate the schema associated with each column such as string
. The only available Great Expectations rule expect_column_values_to_be_of_type
has to be written for each column name and also creates redundancy by repeating the column names.
Is there any rule that I am missing that I can validate both the name and the schema at the same time?
For exmaple, given column a: string, b: int, c: boolean
, I want to pass that whole info into one function instead of having to break it into [a,b,c]
and validating [a],
string` separately for each column.
Ideally, it will be something like expect_column_schmea([(column_name_a, column_type_a), (column_name_b, column_type_b)]