Commit c66b632
feat(api): return TOO_MANY_BYTES as clickhouse error instead of rate limit
Stop converting ClickHouse TOO_MANY_BYTES (code 307) errors into
RateLimitExceeded. This lets consumers (e.g. sentry) distinguish
"query scanned too many bytes" from snuba-level rate limiting.
- Remove RateLimitExceeded conversion for TOO_MANY_BYTES in db_query.py
- Add TOO_MANY_BYTES to ACCEPTABLE_CLICKHOUSE_ERROR_CODES (returns 400)
- Update test to assert clickhouse error type with code 307
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 795ac47 commit c66b632
3 files changed
+2
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
476 | 476 | | |
477 | 477 | | |
478 | 478 | | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | 479 | | |
486 | 480 | | |
487 | 481 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1329 | 1329 | | |
1330 | 1330 | | |
1331 | 1331 | | |
1332 | | - | |
1333 | | - | |
1334 | | - | |
1335 | | - | |
1336 | 1332 | | |
1337 | 1333 | | |
1338 | 1334 | | |
1339 | 1335 | | |
1340 | | - | |
1341 | 1336 | | |
1342 | 1337 | | |
1343 | 1338 | | |
| |||
0 commit comments