Skip to content

Commit ed91701

Browse files
authored
test(NoTicket): Fix struct integrationt tests (#422)
1 parent 3dac759 commit ed91701

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/integration/dbapi/conftest.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,15 +214,14 @@ def select_geography_response() -> List[ColType]:
214214
def setup_struct_query() -> str:
215215
return """
216216
SET advanced_mode=1;
217-
SET enable_struct=1;
218217
SET enable_create_table_v2=true;
219-
SET enable_row_selection=true;
218+
SET enable_struct_syntax=true;
220219
SET prevent_create_on_information_schema=true;
221220
SET enable_create_table_with_struct_type=true;
222221
DROP TABLE IF EXISTS test_struct;
223222
DROP TABLE IF EXISTS test_struct_helper;
224-
CREATE TABLE IF NOT EXISTS test_struct(id int not null, s struct(a array(int) not null, b datetime null) not null);
225-
CREATE TABLE IF NOT EXISTS test_struct_helper(a array(int) not null, b datetime null);
223+
CREATE TABLE IF NOT EXISTS test_struct(id int not null, s struct(a array(int) null, b datetime null) not null);
224+
CREATE TABLE IF NOT EXISTS test_struct_helper(a array(int) null, b datetime null);
226225
INSERT INTO test_struct_helper(a, b) VALUES ([1, 2], '2019-07-31 01:01:01');
227226
INSERT INTO test_struct(id, s) SELECT 1, test_struct_helper FROM test_struct_helper;
228227
"""

0 commit comments

Comments
 (0)