diff --git a/.changes/unreleased/Fixes-20240412-094507.yaml b/.changes/unreleased/Fixes-20240412-094507.yaml new file mode 100644 index 000000000..51af87c02 --- /dev/null +++ b/.changes/unreleased/Fixes-20240412-094507.yaml @@ -0,0 +1,6 @@ +kind: Fixes +body: 'test contract enforcement for GEOGRAPHY and GEOMETRY types ' +time: 2024-04-12T09:45:07.55962-07:00 +custom: + Author: michelleark + Issue: "894" diff --git a/tests/functional/adapter/test_constraints.py b/tests/functional/adapter/test_constraints.py index 12c70a6eb..03adc3bed 100644 --- a/tests/functional/adapter/test_constraints.py +++ b/tests/functional/adapter/test_constraints.py @@ -84,6 +84,8 @@ def data_types(self, int_type, schema_int_type, string_type): ["'2013-11-03 00:00:00-07'::timestamp", "timestamp", "TIMESTAMP_NTZ"], ["ARRAY_CONSTRUCT('a','b','c')", "array", "ARRAY"], ["ARRAY_CONSTRUCT(1,2,3)", "array", "ARRAY"], + ["TO_GEOGRAPHY('POINT(-122.35 37.55)')", "geography", "GEOGRAPHY"], + ["TO_GEOMETRY('POINT(1820.12 890.56)')", "geometry", "GEOMETRY"], [ """TO_VARIANT(PARSE_JSON('{"key3": "value3", "key4": "value4"}'))""", "variant",