Commit 0e122f5
authored
register_hex_tiles listed every non-leading SELECT column as a
value_column, including H3 join/partition keys (h0, h3, …) the caller
carries through. Since downstream defaults value_column to
value_columns[0], a `SELECT h8, h0, <value>` that omits value_column
would color the map by meaningless H3 integers instead of the metric,
and h0 also polluted suggested_scale + cost a wasted value_stats scan.
Filter sql_value_columns through a `^h\d+$` match in prepare_hex_tiles,
before the empty-value guard so an H3-only SELECT still raises. The
build is unaffected: Phase 1 derives h0 itself, so partitioning never
depended on the caller carrying it.
1 parent 0ec68a9 commit 0e122f5
2 files changed
Lines changed: 79 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | | - | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
201 | 206 | | |
202 | 207 | | |
203 | 208 | | |
| |||
238 | 243 | | |
239 | 244 | | |
240 | 245 | | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
241 | 294 | | |
242 | 295 | | |
243 | 296 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
267 | 268 | | |
268 | 269 | | |
269 | 270 | | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
270 | 287 | | |
271 | 288 | | |
272 | 289 | | |
| |||
453 | 470 | | |
454 | 471 | | |
455 | 472 | | |
456 | | - | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
457 | 478 | | |
458 | 479 | | |
459 | 480 | | |
460 | 481 | | |
461 | | - | |
462 | 482 | | |
463 | 483 | | |
464 | 484 | | |
| |||
647 | 667 | | |
648 | 668 | | |
649 | 669 | | |
650 | | - | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
651 | 673 | | |
652 | 674 | | |
653 | 675 | | |
| |||
0 commit comments