shivadarshan-devadiga commented on code in PR #13772:
URL: https://github.com/apache/gluten/pull/13772#discussion_r4690255064
##########
backends-clickhouse/src/test/scala/org/apache/gluten/execution/mergetree/GlutenClickHouseMergeTreeWriteOnS3Suite.scala:
##########
@@ -508,13 +506,12 @@ class GlutenClickHouseMergeTreeWriteOnS3Suite extends
CreateMergeTreeSuite {
|CREATE TABLE $tableName
|USING clickhouse
|LOCATION '$dataPath'
+ |TBLPROPERTIES (storage_policy='__s3_main')
Review Comment:
Thanks, that makes sense: with lineitem under both squashing thresholds, the
insert wrote one part and `checkAndMerge(true)` had nothing to merge. I added
`MIN_INSERT_BLOCK_SIZE_ROWS -> "10000"` as the HDFS case does, and an S3
counterpart of its check: `countObjects(minioHelper.listObjects(BUCKET_NAME,
tableName).toSeq)` in an `eventually` block, expecting 5 on Spark 3.5 and 4
before.
I worked the count out from the two counts the suites already measure:
- **HDFS anchor.** The HDFS case of the same name, with the same CTAS and
settings, expects `countDir(dataPath) == 4`. `countDir` counts files with the
same exclusions as `countObjects`. That's the CTAS's `00000.json` plus the
three files of one merged part (`metadata.gluten`, which `MetaDataHelper`
writes per part, and the `part_meta.gluten` and `part_data.gluten` that
`CompactObjectStorageDiskTransaction` writes). So the merge ends with a single
part.
- **S3 anchor.** `test mergetree table write` in this suite expects 6 on 3.5
and 5 before, for two commits and one part. On S3 the `_delta_log/_commits/`
marker is an object on 3.5, which HDFS's `listFiles` doesn't count.
- **This case:** one commit, one part, plus the `_commits` marker on 3.5, so
5 on 3.5 and 4 before.
The scan also checks that the log has a single part holding the 600572 rows.
I can't run the suite against MinIO here, so the number is derived, not
measured.
--
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]