Skip to content

Commit

Permalink
test constraints for geometry and geography types (#969)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichelleArk authored Apr 17, 2024
1 parent 37d34cd commit f2f0868
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changes/unreleased/Fixes-20240412-094507.yaml
Original file line number Diff line number Diff line change
@@ -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"
2 changes: 2 additions & 0 deletions tests/functional/adapter/test_constraints.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit f2f0868

Please sign in to comment.