From fda4f00f7d751fa2f895282d35cd8b4010569e06 Mon Sep 17 00:00:00 2001 From: ptiurin Date: Thu, 27 Feb 2025 10:44:56 +0000 Subject: [PATCH] test: Fix struct integrationt tests --- tests/integration/dbapi/conftest.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/integration/dbapi/conftest.py b/tests/integration/dbapi/conftest.py index 634d578ad4..60f513463e 100644 --- a/tests/integration/dbapi/conftest.py +++ b/tests/integration/dbapi/conftest.py @@ -214,15 +214,14 @@ def select_geography_response() -> List[ColType]: def setup_struct_query() -> str: return """ SET advanced_mode=1; - SET enable_struct=1; SET enable_create_table_v2=true; - SET enable_row_selection=true; + SET enable_struct_syntax=true; SET prevent_create_on_information_schema=true; SET enable_create_table_with_struct_type=true; DROP TABLE IF EXISTS test_struct; DROP TABLE IF EXISTS test_struct_helper; - CREATE TABLE IF NOT EXISTS test_struct(id int not null, s struct(a array(int) not null, b datetime null) not null); - CREATE TABLE IF NOT EXISTS test_struct_helper(a array(int) not null, b datetime null); + CREATE TABLE IF NOT EXISTS test_struct(id int not null, s struct(a array(int) null, b datetime null) not null); + CREATE TABLE IF NOT EXISTS test_struct_helper(a array(int) null, b datetime null); INSERT INTO test_struct_helper(a, b) VALUES ([1, 2], '2019-07-31 01:01:01'); INSERT INTO test_struct(id, s) SELECT 1, test_struct_helper FROM test_struct_helper; """