Skip to content

Commit b1fba4f

Browse files
Mansib RahmanMansib Rahman
authored andcommitted
Implemented ExpectColumnTypeToBe expectation (file path: great_expectations/expectations/core/expect_column_type_to_be.py) and added integration test file (file path: tests/integration/data_sources_and_expectations/expectations/test_expect_column_type_to_be.py). Modified great_expectations/expectations/__init__.py and great_expectations/expectations/core/__init__.py to register new expectation.
1 parent 4c3adfd commit b1fba4f

4 files changed

Lines changed: 636 additions & 0 deletions

File tree

great_expectations/expectations/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
ExpectColumnStdevToBeBetween,
2020
ExpectColumnSumToBeBetween,
2121
ExpectColumnToExist,
22+
ExpectColumnTypeToBe,
2223
ExpectColumnUniqueValueCountToBeBetween,
2324
ExpectColumnValueLengthsToBeBetween,
2425
ExpectColumnValueLengthsToEqual,

great_expectations/expectations/core/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
from .expect_column_stdev_to_be_between import ExpectColumnStdevToBeBetween
3535
from .expect_column_sum_to_be_between import ExpectColumnSumToBeBetween
3636
from .expect_column_to_exist import ExpectColumnToExist
37+
from .expect_column_type_to_be import ExpectColumnTypeToBe
3738
from .expect_column_unique_value_count_to_be_between import (
3839
ExpectColumnUniqueValueCountToBeBetween,
3940
)

0 commit comments

Comments
 (0)