Skip to content

Commit

Permalink
Added test scenario where OBJECT parameters are not key=tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-gvenegascastro committed Dec 16, 2024
1 parent e1ca5aa commit 046cb80
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/__snapshots__/test_structured_datatypes.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
# name: test_compile_table_with_structured_data_type[structured_type1]
'CREATE TABLE clustered_user (\t"Id" INTEGER NOT NULL AUTOINCREMENT, \tname OBJECT(key1 VARCHAR(16777216), key2 DECIMAL(10, 0)), \tPRIMARY KEY ("Id"))'
# ---
# name: test_compile_table_with_structured_data_type[structured_type2]
'CREATE TABLE clustered_user (\t"Id" INTEGER NOT NULL AUTOINCREMENT, \tname OBJECT(key1 VARCHAR(16777216), key2 DECIMAL(10, 0)), \tPRIMARY KEY ("Id"))'
# ---
# name: test_insert_map
list([
(1, '{\n "100": "item1",\n "200": "item2"\n}'),
Expand Down
1 change: 1 addition & 0 deletions tests/test_structured_datatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
[
MAP(NUMBER(10, 0), MAP(NUMBER(10, 0), TEXT(16777216))),
OBJECT(key1=(TEXT(16777216), False), key2=(NUMBER(10, 0), False)),
OBJECT(key1=TEXT(16777216), key2=NUMBER(10, 0)),
],
)
def test_compile_table_with_structured_data_type(
Expand Down

0 comments on commit 046cb80

Please sign in to comment.