Skip to content

Commit

Permalink
3409: Fixes BigQuery error message (#3414)
Browse files Browse the repository at this point in the history
Co-authored-by: e.sevastyanov <[email protected]>
  • Loading branch information
esevastyanov and esevastyanov authored Nov 8, 2023
1 parent eeb9ce2 commit 0182bda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/drivers/bigquery/sql_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func (c *Connection) QueryAsFiles(ctx context.Context, props map[string]any, opt
q := client.Query(srcProps.SQL)
it, err = q.Read(ctx)

if err != nil && !strings.Contains(err.Error(), "Response too large to return") {
if err != nil && strings.Contains(err.Error(), "Response too large to return") {
// https://cloud.google.com/knowledge/kb/bigquery-response-too-large-to-return-consider-setting-allowlargeresults-to-true-in-your-job-configuration-000004266
client.Close()
return nil, fmt.Errorf("response too large, consider ingesting the entire table with 'select * from `project_id.dataset.tablename`'")
Expand Down

0 comments on commit 0182bda

Please sign in to comment.