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

   ### Backend
   
   CH (ClickHouse)
   
   ### Bug description
   
   `GlutenClickHouseMergeTreeWriteOnS3Suite`'s `test mergetree insert with 
optimize basic` sets `RuntimeSettings.INSERT_WITHOUT_LOCAL_STORAGE` to `true`, 
but it doesn't test that setting:
   
   - Its `CREATE TABLE` has no `storage_policy='__s3_main'`, unlike the other 
catalog-table cases in the suite, so the table uses the `default` policy. 
`SparkMergeTreeSink::create` only stages parts locally when the policy's disk 
is remote (`isRemoteStorage`), so the setting has no effect on this table.
   - Its assertion checks that 
`$CH_DEFAULT_STORAGE_DIR/lineitem_mergetree_insert_optimize_basic` doesn't 
exist. Nothing in the suite writes that path (the table is 
`lineitem_mergetree_insert_optimize_basic_s3`), so the assertion passes no 
matter what the insert does. A local-disk check also can't tell a staged write 
from a direct one, because the staged write drops its temporary table at commit.
   
   The HDFS and RocksDB-meta suites' cases of the same name set 
`storage_policy='__hdfs_main'` / `'__hdfs_main_rocksdb'`.
   
   LuciferYang found this in the review of #13676 
(https://github.com/apache/gluten/pull/13676#discussion_r4681172876). It 
predates that PR.
   
   ### Gluten version
   
   main branch
   
   ### Spark version
   
   None
   
   ### 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]

Reply via email to