| <?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_RESULT_SPOOLING_MEM Query Option" /> |
| <meta name="DC.Relation" scheme="URI" content="../topics/impala_query_options.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_RESULT_SPOOLING_MEM" /> |
| <link rel="stylesheet" type="text/css" href="../commonltr.css" /> |
| <title>MAX_RESULT_SPOOLING_MEM Query Option</title> |
| </head> |
| <body id="MAX_RESULT_SPOOLING_MEM"> |
| |
| <h1 class="title topictitle1" id="ariaid-title1">MAX_RESULT_SPOOLING_MEM Query Option</h1> |
| |
| |
| |
| <div class="body conbody"> |
| <p class="p">Use the <code class="ph codeph">MAX_RESULT_SPOOLING_MEM</code> query option to set the |
| maximum amount of memory used when spooling query results. </p> |
| |
| <p class="p">If the amount of memory exceeds this value when spooling query results, |
| all memory will most likely be spilled to disk. </p> |
| |
| <p class="p">The <code class="ph codeph">MAX_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">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">You cannot set this query option to values below <code class="ph codeph">-1</code>.</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"> 100 * 1024 * 1024 (100 MB)</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_query_options.html">Query Options for the SET Statement</a></div> |
| </div> |
| </div></body> |
| </html> |