shivadarshan-devadiga opened a new pull request, #13772:
URL: https://github.com/apache/gluten/pull/13772

   ## What changes are proposed in this pull request?
   
   `GlutenClickHouseMergeTreeWriteOnS3Suite`'s `test mergetree insert with 
optimize basic` sets `INSERT_WITHOUT_LOCAL_STORAGE`, but it doesn't test that 
setting:
   
   - Its table had no storage policy, so it used the `default` one. 
`SparkMergeTreeSink::create` only stages parts locally for a remote disk, so 
the setting had no effect.
   - Its assertion checked a local path without the suite's `_s3` suffix, which 
nothing writes, so it could never fail.
   
   This PR:
   - adds `TBLPROPERTIES (storage_policy='__s3_main')`, as the other 
catalog-table cases in the suite do, and as the HDFS suite's case of the same 
name does with `__hdfs_main`;
   - removes the local-directory assertion. A local-disk check can't tell a 
staged write from a direct one, since the staged write drops its temporary 
table at commit, and the row count check stays;
   - removes the `java.io.File` import that only that assertion used.
   
   Fixes #13771. Found by @LuciferYang in the review of #13676.
   
   ## How was this patch tested?
   
   `spotless:check` passes on the changed file. 
`GlutenClickHouseMergeTreeWriteOnS3Suite` is `@DoNotDiscover` (#11734) and 
needs MinIO, so the ClickHouse CI compiles it but doesn't run it, and I 
couldn't run it locally either.
   
   ## Was this patch authored or co-authored using generative AI tooling?
   
   Co-authored by: Claude Sonnet 4.5


-- 
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