shivadarshan-devadiga commented on code in PR #13772:
URL: https://github.com/apache/gluten/pull/13772#discussion_r4690257410
##########
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')
| as select * from lineitem
|""".stripMargin)
val ret = spark.sql(s"select count(*) from $tableName").collect()
assertResult(600572)(ret.apply(0).get(0))
Review Comment:
Thanks, I hadn't realized `count(*)` is answered from the `numRecords`
stats. I replaced it with `minioHelper.resetMeta()` followed by
`customCheckQuery(q1(tableName))`, as `test mergetree table write` does, so the
parts are read back from S3. On the scan's file index it also checks the single
merged part and its 600572 rows.
--
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]