Commit b9e77b6
authored
feat(fuse): support partitioned table layout (#20143)
* feat(fuse): organize data by partition key
* feat(fuse): prune segments by partition values
* fix(fuse): preserve partitioned update statistics
* test(fuse): stabilize partition pruning assertions
* test(fuse): cover partition-aware recluster
* fix(query): emit replayable partitioned table DDL
* fix(ast): preserve Iceberg partition syntax
* fix(query): validate partition table options
* perf(fuse): scan partition boundaries by column type
* test(fuse): document fragmented partition writes
* test(fuse): avoid topology-dependent segment count
* fix(fuse): prune day partitions from timestamp ranges
* ci(sqllogic): update partition cluster expectation
* fix(fuse): flush final partition segment
* ci(sqllogic): avoid topology-dependent block count
* test(fuse): add missing coverage for PARTITION BY
- sqllogictest: verify SET OPTIONS partition_by rejection, MODIFY COLUMN
partition-key rejection, unrelated-filter no-pruning, DELETE+compact
boundary preservation, and CTAS partition boundary on initial write
- unit: partition_values/same_partition fallback cases (None stats,
mismatched key id, min!=max prefix)
- unit: PartitionPruner::should_keep returns true conservatively when
segment has no cluster statistics
* ci(sqllogic): isolate unrelated partition filter1 parent a5fe8de commit b9e77b6
63 files changed
Lines changed: 2217 additions & 225 deletions
File tree
- src/query
- ast
- src
- ast/statements
- parser
- visit
- tests/it
- testdata
- expression/src
- functions
- src/scalars/timestamp/src
- tests/it/scalars
- testdata
- service
- src
- interpreters
- physical_plans
- tests/it
- indexes
- inverted_index
- spatial_index
- vector_index
- storages/fuse
- sql/src/planner
- binder
- bind_query
- ddl
- optimizer/ir/stats
- plans
- storages
- common/table_meta/src/table
- fuse
- src
- operations
- analyze
- common
- meta
- processors
- mutation
- meta
- mutator
- pruning
- retry
- statistics
- table_functions
- tests/sqllogictests/suites/base/09_fuse_engine
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
| 165 | + | |
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
214 | 220 | | |
215 | 221 | | |
216 | 222 | | |
| |||
221 | 227 | | |
222 | 228 | | |
223 | 229 | | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1131 | 1131 | | |
1132 | 1132 | | |
1133 | 1133 | | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
1134 | 1140 | | |
1135 | 1141 | | |
1136 | 1142 | | |
1137 | 1143 | | |
1138 | 1144 | | |
1139 | 1145 | | |
1140 | 1146 | | |
| 1147 | + | |
1141 | 1148 | | |
1142 | 1149 | | |
1143 | | - | |
1144 | 1150 | | |
1145 | 1151 | | |
1146 | 1152 | | |
| |||
1154 | 1160 | | |
1155 | 1161 | | |
1156 | 1162 | | |
| 1163 | + | |
1157 | 1164 | | |
1158 | 1165 | | |
1159 | | - | |
1160 | 1166 | | |
1161 | 1167 | | |
1162 | 1168 | | |
| |||
1168 | 1174 | | |
1169 | 1175 | | |
1170 | 1176 | | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
1171 | 1181 | | |
1172 | 1182 | | |
1173 | 1183 | | |
| |||
1179 | 1189 | | |
1180 | 1190 | | |
1181 | 1191 | | |
1182 | | - | |
1183 | | - | |
1184 | | - | |
| 1192 | + | |
| 1193 | + | |
1185 | 1194 | | |
1186 | 1195 | | |
1187 | 1196 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
153 | | - | |
154 | | - | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
177 | | - | |
178 | | - | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1393 | 1393 | | |
1394 | 1394 | | |
1395 | 1395 | | |
| 1396 | + | |
| 1397 | + | |
| 1398 | + | |
| 1399 | + | |
| 1400 | + | |
| 1401 | + | |
| 1402 | + | |
| 1403 | + | |
| 1404 | + | |
| 1405 | + | |
| 1406 | + | |
| 1407 | + | |
| 1408 | + | |
| 1409 | + | |
| 1410 | + | |
| 1411 | + | |
| 1412 | + | |
| 1413 | + | |
| 1414 | + | |
| 1415 | + | |
| 1416 | + | |
| 1417 | + | |
| 1418 | + | |
| 1419 | + | |
| 1420 | + | |
| 1421 | + | |
1396 | 1422 | | |
1397 | 1423 | | |
1398 | 1424 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
98 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
99 | 101 | | |
100 | 102 | | |
101 | 103 | | |
| |||
0 commit comments