Commit e0c6985
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 1f0e880 commit e0c6985
2 files changed
+2
-6
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 | | |
| |||
0 commit comments