Commit 902c1cd
committed
[Test] Expand lake autonomous compaction SQL coverage
Adds 7 new SQL-Tester cases on top of the existing 4, covering scenarios
the unit tests cannot reach (real TabletManager + real publish_version
flow against a deployed cluster):
- test_lake_autonomous_compaction_agg
AGGREGATE-key table. Multiple inserts for same keys must collapse
via SUM/MAX aggregation when autonomous compaction merges rowsets.
- test_lake_autonomous_compaction_unique
UNIQUE-key table. Duplicate keys must collapse to last-write-wins.
- test_lake_autonomous_compaction_pk_delete
PK + DELETE. Tombstones must be honored across autonomous compaction +
force_publish; deleted keys must not reappear.
- test_lake_autonomous_compaction_pk_update
PK + UPDATE. Chained UPDATEs (including IN-list multi-key) must take
effect after autonomous compaction merges the per-update rowsets.
- test_lake_autonomous_compaction_multi_bucket
Multi-bucket (4) partition with 200 rows. Exercises the per-BE
grouping in CompactionScheduler.collectPartitionTablets/
createPublishOnlyTasks and verifies version advances uniformly
across tablets even when some have no local results.
- test_lake_autonomous_compaction_disable_table
lake_compaction_disable_ids: tableId listed → schedulePartitionPublish
must skip via the disabledIds branch. Data integrity unchanged.
- test_lake_autonomous_compaction_high_score_trigger
Tunes lake_compaction_high_score_threshold=0.5 +
lake_compaction_min_version_delta_for_high_score=2 while keeping
version_delta_threshold high. Exercises the second leg of
evaluatePublishTrigger (high-score path) that the version-delta
path tests would never hit.
- test_lake_autonomous_compaction_many_rowsets
15 separate INSERTs into one tablet; verifies merge_results_to_txn_log
handles a large OpParallelCompaction with many subtasks correctly.
Also fixes a config-restore bug in the existing _bundling_skip case:
enable_file_bundling default is true but the previous restore set it
to "false". Restore now matches the documented default.
All cases @cloud @Sequential to avoid race with global FE/BE config
mutation between concurrent tests. Each restores its config triplet
+ enable_file_bundling before DROP DATABASE.
Signed-off-by: meegoo <meegoo.sr@gmail.com>1 parent 73c98cd commit 902c1cd
2 files changed
Lines changed: 1116 additions & 2 deletions
File tree
- test/sql/test_lake_autonomous_compaction
- R
- T
0 commit comments