Repository navigation
Commit 1e54da9
committed
Fix flaky PARTIAL/FINAL plan assertion in rateFunctionsNormalTest
assertRateQueryUsesIntermediateAggregation unconditionally required a
PARTIAL/FINAL aggregation split in the EXPLAIN output. Under randomized
data partition allocation (the SHUFFLE strategy used by
IoTDBTableAggregation2IT), all 8 devices of rate_merge_test may
occasionally land in a single DataRegion, where a SINGLE-step
aggregation is the correct plan, so the assertion failed sporadically.
Skip the PARTIAL/FINAL check when the plan scans fewer than two
distinct RegionIds; keep it whenever the data actually spans regions.1 parent 7a38e7e commit 1e54da9
1 file changed
Lines changed: 20 additions & 0 deletions
File tree
- integration-test/src/test/java/org/apache/iotdb/relational/it/query/recent
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
39 | 43 | | |
40 | 44 | | |
41 | 45 | | |
| |||
5901 | 5905 | | |
5902 | 5906 | | |
5903 | 5907 | | |
| 5908 | + | |
| 5909 | + | |
| 5910 | + | |
| 5911 | + | |
| 5912 | + | |
| 5913 | + | |
| 5914 | + | |
5904 | 5915 | | |
5905 | 5916 | | |
5906 | 5917 | | |
| |||
5910 | 5921 | | |
5911 | 5922 | | |
5912 | 5923 | | |
| 5924 | + | |
| 5925 | + | |
| 5926 | + | |
| 5927 | + | |
| 5928 | + | |
| 5929 | + | |
| 5930 | + | |
| 5931 | + | |
| 5932 | + | |
5913 | 5933 | | |
5914 | 5934 | | |
5915 | 5935 | | |
| |||
0 commit comments