Runaway queries

A runaway query is a kind of partial query failure that happens when some internal query limit was exceeded during query execution.

For example, the following error may be reported: HashJoin operator has exceeded the memory budget during evaluation. Results may be incorrect or incomplete.

There are several possible courses of action.

  • Change the query to consume fewer resources. For example, if the error indicates that the query result set is too large, you can:
  • Increase the relevant query limit temporarily for that query. For more information, see query limits - limit on memory per iterator. This method, however, isn't recommended. The limits exist to protect the cluster and to make sure that a single query doesn't disrupt concurrent queries running on the cluster.