blob: 51fb31c6634cacc64280cd1cb991dfb77b035243 [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="BROADCAST_BYTES_LIMIT 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="broadcast_bytes_limit" />
<link rel="stylesheet" type="text/css" href="../commonltr.css" />
<title>BROADCAST_BYTES_LIMIT Query Option</title>
</head>
<body id="broadcast_bytes_limit">
<h1 class="title topictitle1" id="ariaid-title1">BROADCAST_BYTES_LIMIT Query Option</h1>
<div class="body conbody">
<p class="p">
Sets the limit
for the size of the broadcast input based on estimated size.
</p>
<p class="p">
The Impala planner may in rare cases make a bad choice to broadcast a large table or intermediate
result and encounter performance problems due to high memory pressure. Setting this limit will
make the planner pick a partition based hash join instead of broadcast and avoid such performance problems.
</p>
<p class="p">
<strong class="ph b">Type:</strong> integer
</p>
<p class="p">
<strong class="ph b">Default:</strong>
</p>
<p class="p">
The default value is 34359738368 (32 GB). A value of 0 causes the option to be ignored.
</p>
<p class="p">
<strong class="ph b">Examples:</strong>
</p>
<pre class="pre codeblock"><code>
-- Change the limit to 16GB.
set broadcast_bytes_limit=17179869184;
-- Disable the BROADCAST_BYTES_LIMIT.
set broadcast_bytes_limit=0;
</code></pre>
</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>