shivadarshan-devadiga opened a new issue, #13675:
URL: https://github.com/apache/gluten/issues/13675

   ### Backend
   
   CH (ClickHouse)
   
   ### Bug description
   
   Follow-up to #13636 / #13637, which moved cleanup that ran after the 
assertions into `withTable` for the ClickHouse and Bolt suites. Two groups were 
left out on purpose:
   
   **1. Cases that only run `DROP TABLE IF EXISTS` before creating their 
table.** They never drop it afterwards, so the table stays in the catalog for 
the rest of the suite even when the case passes. Some reuse a table name from 
another case (the two `GLUTEN-2180` cases both use `test_table_2180`) and rely 
on that pre-create drop to start clean. Examples:
   
   - `GlutenClickHouseDeltaParquetWriteSuite` (14 cases, three of them through 
the `doInsert(drop(table), ...)` helper)
   - `GlutenClickHouseHiveTableSuite` (6, for example `GLUTEN-2019`, 
`GLUTEN-2180`, the text/compressed txt table cases)
   - `GlutenDeltaParquetDeletionVectorSuite` (4)
   - `GlutenClickHouseTPCHNotNullSkipIndexSuite` / 
`GlutenClickHouseTPCHNullableSkipIndexSuite` (4 each)
   - `GLUTEN-8253` in `GlutenClickHouseTPCHSaltNullParquetSuite`
   - `GlutenClickHouseNativeWriteTableSuite`: most cases go through 
`NativeWriteChecker.nativeWrite2` / `withDestinationTable`, which drop before 
the create and never after. Others drop inline before `saveAsTable`.
   
   **2. The MergeTree suites**, which #13637 excluded:
   
   - Same pattern as group 1 in `GlutenClickHouseMergeTreeWriteSuite` (24 
cases), `GlutenClickHouseMergeTreeOptimizeSuite` (9) and the HDFS / RocksDB / 
S3 / task-not-serializable suites.
   - Cases in `GlutenClickHouseMergeTreeCacheDataSuite` (all five use 
`lineitem_mergetree_hdfs`) and the HDFS / RocksDB / S3 write suites that drop 
after the assertions but outside `withTable` or a `finally`, which is the 
pattern #13637 fixed elsewhere. A failed assertion skips the drop.
   
   Expected: each case drops the tables it creates when it finishes, pass or 
fail, using `withTable` as in #13637.
   
   Cases that test `DROP` / `PURGE` themselves stay as they are: 
`GlutenClickHouseTableAfterRestart`, `GLUTEN-4749` and `GLUTEN-5219`.
   
   ### Gluten version
   
   main branch
   
   ### Spark version
   
   Spark-3.5.x
   
   ### Spark configurations
   
   _No response_
   
   ### System information
   
   _No response_
   
   ### Relevant logs
   
   ```bash
   
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

  • [I] [CH] ClickHouse test su... shivadarshan-devadiga (via GitHub) via commits

Reply via email to