Skip to content

Commit 33de2c7

Browse files
test: removed join index queries (#343)
1 parent 872c393 commit 33de2c7

File tree

4 files changed

+0
-44
lines changed

4 files changed

+0
-44
lines changed

tests/integration/dbapi/async/V1/test_queries_async.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,6 @@ async def test_query(c: Cursor, query: str) -> None:
200200
"""Create table query is handled properly"""
201201
with connection.cursor() as c:
202202
# Cleanup
203-
await c.execute("DROP JOIN INDEX IF EXISTS test_drop_create_async_db_join_idx")
204203
await c.execute(
205204
"DROP AGGREGATING INDEX IF EXISTS test_drop_create_async_db_agg_idx"
206205
)
@@ -221,23 +220,13 @@ async def test_query(c: Cursor, query: str) -> None:
221220
", f float, d date, dt datetime, b bool, a array(int))",
222221
)
223222

224-
# Create join index
225-
await test_query(
226-
c,
227-
"CREATE JOIN INDEX test_db_join_idx ON "
228-
"test_drop_create_async_dim(id, sn, f)",
229-
)
230-
231223
# Create aggregating index
232224
await test_query(
233225
c,
234226
"CREATE AGGREGATING INDEX test_db_agg_idx ON "
235227
"test_drop_create_async(id, sum(f), count(dt))",
236228
)
237229

238-
# Drop join index
239-
await test_query(c, "DROP JOIN INDEX test_db_join_idx")
240-
241230
# Drop aggregating index
242231
await test_query(c, "DROP AGGREGATING INDEX test_db_agg_idx")
243232

tests/integration/dbapi/async/V2/test_queries_async.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ async def test_query(c: Cursor, query: str) -> None:
129129
"""Create table query is handled properly"""
130130
with connection.cursor() as c:
131131
# Cleanup
132-
await c.execute("DROP JOIN INDEX IF EXISTS test_db_join_idx")
133132
await c.execute("DROP AGGREGATING INDEX IF EXISTS test_db_agg_idx")
134133
await c.execute("DROP TABLE IF EXISTS test_drop_create_async")
135134
await c.execute("DROP TABLE IF EXISTS test_drop_create_async_dim")
@@ -148,23 +147,13 @@ async def test_query(c: Cursor, query: str) -> None:
148147
", f float, d date, dt datetime, b bool, a array(int))",
149148
)
150149

151-
# Create join index
152-
await test_query(
153-
c,
154-
"CREATE JOIN INDEX test_db_join_idx ON "
155-
"test_drop_create_async_dim(id, sn, f)",
156-
)
157-
158150
# Create aggregating index
159151
await test_query(
160152
c,
161153
"CREATE AGGREGATING INDEX test_db_agg_idx ON "
162154
"test_drop_create_async(id, sum(f), count(dt))",
163155
)
164156

165-
# Drop join index
166-
await test_query(c, "DROP JOIN INDEX test_db_join_idx")
167-
168157
# Drop aggregating index
169158
await test_query(c, "DROP AGGREGATING INDEX test_db_agg_idx")
170159

tests/integration/dbapi/sync/V1/test_queries.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ def test_query(c: Cursor, query: str) -> None:
150150
"""Create table query is handled properly"""
151151
with connection.cursor() as c:
152152
# Cleanup
153-
c.execute("DROP JOIN INDEX IF EXISTS test_drop_create_db_join_idx")
154153
c.execute("DROP AGGREGATING INDEX IF EXISTS test_drop_create_db_agg_idx")
155154
c.execute("DROP TABLE IF EXISTS test_drop_create_tb")
156155
c.execute("DROP TABLE IF EXISTS test_drop_create_tb_dim")
@@ -169,23 +168,13 @@ def test_query(c: Cursor, query: str) -> None:
169168
", f float, d date, dt datetime, b bool, a array(int))",
170169
)
171170

172-
# Create join index
173-
test_query(
174-
c,
175-
"CREATE JOIN INDEX test_drop_create_db_join_idx ON "
176-
"test_drop_create_tb_dim(id, sn, f)",
177-
)
178-
179171
# Create aggregating index
180172
test_query(
181173
c,
182174
"CREATE AGGREGATING INDEX test_drop_create_db_agg_idx ON "
183175
"test_drop_create_tb(id, sum(f), count(dt))",
184176
)
185177

186-
# Drop join index
187-
test_query(c, "DROP JOIN INDEX test_drop_create_db_join_idx")
188-
189178
# Drop aggregating index
190179
test_query(c, "DROP AGGREGATING INDEX test_drop_create_db_agg_idx")
191180

tests/integration/dbapi/sync/V2/test_queries.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ def test_query(c: Cursor, query: str) -> None:
135135
"""Create table query is handled properly"""
136136
with connection.cursor() as c:
137137
# Cleanup
138-
c.execute("DROP JOIN INDEX IF EXISTS test_drop_create_db_join_idx")
139138
c.execute("DROP AGGREGATING INDEX IF EXISTS test_drop_create_db_agg_idx")
140139
c.execute("DROP TABLE IF EXISTS test_drop_create_tb")
141140
c.execute("DROP TABLE IF EXISTS test_drop_create_tb_dim")
@@ -154,23 +153,13 @@ def test_query(c: Cursor, query: str) -> None:
154153
", f float, d date, dt datetime, b bool, a array(int))",
155154
)
156155

157-
# Create join index
158-
test_query(
159-
c,
160-
"CREATE JOIN INDEX test_drop_create_db_join_idx ON "
161-
"test_drop_create_tb_dim(id, sn, f)",
162-
)
163-
164156
# Create aggregating index
165157
test_query(
166158
c,
167159
"CREATE AGGREGATING INDEX test_drop_create_db_agg_idx ON "
168160
"test_drop_create_tb(id, sum(f), count(dt))",
169161
)
170162

171-
# Drop join index
172-
test_query(c, "DROP JOIN INDEX test_drop_create_db_join_idx")
173-
174163
# Drop aggregating index
175164
test_query(c, "DROP AGGREGATING INDEX test_drop_create_db_agg_idx")
176165

0 commit comments

Comments
 (0)