What causes “resources exceeded” in BigQuery?

后端 未结 2 1436
梦毁少年i
梦毁少年i 2020-12-19 08:07

My query failed with the error \"resources exceeded\". What causes this error, and how can I fix it?

2条回答
  •  南方客
    南方客 (楼主)
    2020-12-19 08:54

    Also faced the error

    Error: Resources exceeded during query execution

    due to using an ORDER BY. More information about that is given by Pentium10

    Using order by on big data databases is not an ordinary operation and at some point it exceeds the attributes of big data resources. You should consider sharding your query or run the order by in your exported data.

    As I explained to you today in your other question, adding allowLargeResults will allow you to return large response, but you can't specify a top-level ORDER BY, TOP or LIMIT clause. Doing so negates the benefit of using allowLargeResults, because the query output can no longer be computed in parallel.

    To solve it I've gone through 9 steps

提交回复
热议问题