Commit 6983aa2
authored
BigQuery.getQueryResults no longer returns null on a 404 (#2469)
BigQuery.getQueryResults() returns a GetQueryResultsResponse, which should not be null even if a 404 was thrown. Returning a null results in BigQueryImpl.getQueryResults() throwing a NPE, which is less informative than a wrapped "Not Found" BigQueryException.
This is similar to the behavior of BigQuery.query(), which returns a QueryResponse, and just bubbles up any exceptions, translated, without filtering for any particular exception.
Resolves issue #2428.1 parent d2419d4 commit 6983aa2
1 file changed
Lines changed: 1 addition & 5 deletions
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
| 388 | + | |
393 | 389 | | |
394 | 390 | | |
395 | 391 | | |
| |||
0 commit comments