blob: 547ffc254a2108ad3ed5e3a39faad3549562a93b [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="copyright" content="(C) Copyright 2023" />
<meta name="DC.rights.owner" content="(C) Copyright 2023" />
<meta name="DC.Type" content="concept" />
<meta name="DC.Title" content="MAX_SPILLED_RESULT_SPOOLING_MEM Query Option" />
<meta name="DC.Relation" scheme="URI" content="../topics/impala_set.html" />
<meta name="prodname" content="Impala" />
<meta name="version" content="Impala 3.4.x" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="MAX_SPILLED_RESULT_SPOOLING_MEM" />
<link rel="stylesheet" type="text/css" href="../commonltr.css" />
<title>MAX_SPILLED_RESULT_SPOOLING_MEM Query Option</title>
</head>
<body id="MAX_SPILLED_RESULT_SPOOLING_MEM">
<h1 class="title topictitle1" id="ariaid-title1">MAX_SPILLED_RESULT_SPOOLING_MEM Query Option</h1>
<div class="body conbody">
<p class="p">Use the <code class="ph codeph">MAX_SPILLED_RESULT_SPOOLING_MEM</code> query option to
set the maximum amount of memory that can be spilled when spooling query
results. </p>
<p class="p">If the amount of memory exceeds this value when spooling query results,
the coordinator fragment will block until the client has consumed enough
rows to free up more memory.</p>
<p class="p">The <code class="ph codeph">MAX_SPILLED_RESULT_SPOOLING_MEM</code> query option is
applicable only when query result spooling is enabled with the
<code class="ph codeph">SPOOL_QUERY_RESULTS</code> query option set to
<code class="ph codeph">TRUE</code>. </p>
<p class="p">The value must be greater than or equal to the value of
<code class="ph codeph">MAX_RESULT_SPOOLING_MEM</code>.</p>
<p class="p">Setting the option to <code class="ph codeph">0</code> or <code class="ph codeph">-1</code> means the
memory is unbounded. </p>
<p class="p">Values below <code class="ph codeph">-1</code> are not allowed for this query
option.</p>
<p class="p"><strong class="ph b">Type:</strong>
<code class="ph codeph">INT</code></p>
<p class="p"><strong class="ph b">Default:</strong><code class="ph codeph"> 1024 * 1024 * 1024 (1 GB)</code></p>
<p class="p"><strong class="ph b">Added in:</strong>
<span class="keyword">Impala 3.4</span></p>
<p class="p"><strong class="ph b">Related information:</strong>
<a class="xref" href="impala_fetch_rows_timeout_ms.html#FETCH_ROWS_TIMEOUT_MS">FETCH_ROWS_TIMEOUT_MS Query Option</a>,
<a class="xref" href="impala_max_spilled_result_spooling_mem.html#MAX_SPILLED_RESULT_SPOOLING_MEM">MAX_SPILLED_RESULT_SPOOLING_MEM Query Option</a>, <a class="xref" href="impala_spool_query_results.html#SPOOL_QUERY_RESULTS">SPOOL_QUERY_RESULTS Query Option</a></p>
</div>
<div class="related-links">
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a class="link" href="../topics/impala_set.html">SET Statement</a></div>
</div>
</div></body>
</html>