@@ -224,7 +224,6 @@ def test_athena_create_ctas(path, glue_table, glue_table2, glue_database, glue_c
224224
225225@pytest .mark .xfail (is_ray_modin , raises = AssertionError , reason = "Index equality regression" )
226226def test_athena (path , glue_database , glue_table , kms_key , workgroup0 , workgroup1 ):
227- wr .catalog .delete_table_if_exists (database = glue_database , table = glue_table )
228227 wr .s3 .to_parquet (
229228 df = get_df (),
230229 path = path ,
@@ -301,7 +300,6 @@ def test_athena(path, glue_database, glue_table, kms_key, workgroup0, workgroup1
301300
302301
303302def test_read_sql_query_parameter_formatting_respects_prefixes (path , glue_database , glue_table , workgroup0 ):
304- wr .catalog .delete_table_if_exists (database = glue_database , table = glue_table )
305303 wr .s3 .to_parquet (
306304 df = get_df (),
307305 path = path ,
@@ -329,7 +327,6 @@ def test_read_sql_query_parameter_formatting_respects_prefixes(path, glue_databa
329327 [("string" , "Seattle" ), ("date" , datetime .date (2020 , 1 , 1 )), ("bool" , True ), ("category" , 1.0 )],
330328)
331329def test_read_sql_query_parameter_formatting (path , glue_database , glue_table , workgroup0 , col_name , col_value ):
332- wr .catalog .delete_table_if_exists (database = glue_database , table = glue_table )
333330 wr .s3 .to_parquet (
334331 df = get_df (),
335332 path = path ,
@@ -354,7 +351,6 @@ def test_read_sql_query_parameter_formatting(path, glue_database, glue_table, wo
354351
355352@pytest .mark .parametrize ("col_name" , [("string" ), ("date" ), ("bool" ), ("category" )])
356353def test_read_sql_query_parameter_formatting_null (path , glue_database , glue_table , workgroup0 , col_name ):
357- wr .catalog .delete_table_if_exists (database = glue_database , table = glue_table )
358354 wr .s3 .to_parquet (
359355 df = get_df (),
360356 path = path ,
@@ -377,6 +373,7 @@ def test_read_sql_query_parameter_formatting_null(path, glue_database, glue_tabl
377373 assert len (df .index ) == 1
378374
379375
376+ @pytest .mark .xfail (raises = botocore .exceptions .ClientError , reason = "QueryId not found." )
380377def test_athena_query_cancelled (glue_database ):
381378 query_execution_id = wr .athena .start_query_execution (
382379 sql = "SELECT " + "rand(), " * 10000 + "rand()" , database = glue_database
@@ -551,7 +548,6 @@ def test_category(path, glue_table, glue_database):
551548 )
552549 for df2 in dfs :
553550 ensure_data_types_category (df2 )
554- assert wr .catalog .delete_table_if_exists (database = glue_database , table = glue_table ) is True
555551
556552
557553@pytest .mark .parametrize ("workgroup" , [None , 0 , 1 , 2 , 3 ])
@@ -784,7 +780,6 @@ def test_bucketing_catalog_parquet_table(path, glue_database, glue_table):
784780 table = next (wr .catalog .get_tables (name_contains = glue_table ))
785781 assert table ["StorageDescriptor" ]["NumberOfBuckets" ] == nb_of_buckets
786782 assert table ["StorageDescriptor" ]["BucketColumns" ] == bucket_cols
787- assert wr .catalog .delete_table_if_exists (database = glue_database , table = glue_table )
788783
789784
790785@pytest .mark .parametrize ("bucketing_data" , [[0 , 1 , 2 ], [False , True , False ], ["b" , "c" , "d" ]])
@@ -873,7 +868,6 @@ def test_bucketing_catalog_csv_table(path, glue_database, glue_table):
873868 table = next (wr .catalog .get_tables (name_contains = glue_table ))
874869 assert table ["StorageDescriptor" ]["NumberOfBuckets" ] == nb_of_buckets
875870 assert table ["StorageDescriptor" ]["BucketColumns" ] == bucket_cols
876- assert wr .catalog .delete_table_if_exists (database = glue_database , table = glue_table )
877871
878872
879873@pytest .mark .parametrize ("bucketing_data" , [[0 , 1 , 2 ], [False , True , False ], ["b" , "c" , "d" ]])
@@ -1196,7 +1190,6 @@ def test_bucketing_combined_csv_saving(path, glue_database, glue_table):
11961190
11971191
11981192def test_start_query_execution_wait (path , glue_database , glue_table ):
1199- wr .catalog .delete_table_if_exists (database = glue_database , table = glue_table )
12001193 wr .s3 .to_parquet (
12011194 df = get_df (),
12021195 path = path ,
@@ -1358,7 +1351,6 @@ def test_get_query_execution(workgroup0, workgroup1):
13581351
13591352@pytest .mark .parametrize ("compression" , [None , "snappy" , "gzip" ])
13601353def test_read_sql_query_ctas_write_compression (path , glue_database , glue_table , compression ):
1361- wr .catalog .delete_table_if_exists (database = glue_database , table = glue_table )
13621354 wr .s3 .to_parquet (
13631355 df = get_df (),
13641356 path = path ,
0 commit comments