Repository navigation
Commit 38436f6
authored
fix(geospatial): raise the bing tile zoom-span limit as a user error (facebookincubator#18993)
Summary:
`geometry_to_bing_tiles` surfaces the parent-to-child zoom span limit through
`VELOX_FAIL`, so it arrives as a runtime error and `try()` cannot catch it. The
same limit, reached through the `bing_tile_children` UDF, is returned as
`Status::UserError` and is catchable.
`BingTileType::bingTileChildren` returns `folly::Expected` with a message rather
than throwing, leaving classification to each caller. The two callers disagree.
The condition depends only on the input geometry and the requested zoom, both
user supplied, and the adjacent covering-count guard in the same function
already uses `VELOX_USER_FAIL`.
A query that wraps the call in `try()` therefore dies outright instead of
dropping the offending row, which is what the same query does on Presto Java.
Differential Revision: D119884072
Pull Request resolved: facebookincubator#189931 parent 17fbf01 commit 38436f6
2 files changed
Lines changed: 18 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
432 | 432 | | |
433 | 433 | | |
434 | 434 | | |
435 | | - | |
| 435 | + | |
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
| |||
460 | 460 | | |
461 | 461 | | |
462 | 462 | | |
463 | | - | |
| 463 | + | |
464 | 464 | | |
465 | 465 | | |
466 | 466 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3516 | 3516 | | |
3517 | 3517 | | |
3518 | 3518 | | |
| 3519 | + | |
| 3520 | + | |
| 3521 | + | |
| 3522 | + | |
| 3523 | + | |
| 3524 | + | |
| 3525 | + | |
| 3526 | + | |
| 3527 | + | |
| 3528 | + | |
| 3529 | + | |
| 3530 | + | |
| 3531 | + | |
| 3532 | + | |
| 3533 | + | |
| 3534 | + | |
3519 | 3535 | | |
3520 | 3536 | | |
3521 | 3537 | | |
| |||
0 commit comments