blob: 966e95c24c2036f6e94a739622d24cb61ac2006b [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="SHUFFLE_DISTINCT_EXPRS Query Option" />
<meta name="DC.Relation" scheme="URI" content="../topics/impala_query_options.html" />
<meta name="prodname" content="Impala" />
<meta name="prodname" content="Impala" />
<meta name="version" content="Impala 3.4.x" />
<meta name="version" content="Impala 3.4.x" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="shuffle_distinct_exprs" />
<link rel="stylesheet" type="text/css" href="../commonltr.css" />
<title>SHUFFLE_DISTINCT_EXPRS Query Option</title>
</head>
<body id="shuffle_distinct_exprs">
<h1 class="title topictitle1" id="ariaid-title1">SHUFFLE_DISTINCT_EXPRS Query Option</h1>
<div class="body conbody">
<p class="p">
The <code class="ph codeph">SHUFFLE_DISTINCT_EXPRS</code> query option controls the
shuffling behavior when a query has both grouping and distinct expressions.
Impala can optionally include the distinct expressions in the hash exchange
to spread the data among more nodes. However, this plan requires one more
hash exchange phase.
</p>
<p class="p">
It is recommended that you turn off this option if the NDVs of the grouping
expressions are high.
</p>
<p class="p">
<strong class="ph b">Type:</strong> Boolean; recognized values are 1 and 0, or <code class="ph codeph">true</code> and
<code class="ph codeph">false</code>; any other value interpreted as <code class="ph codeph">false</code>
</p>
<p class="p">
<strong class="ph b">Default:</strong> <code class="ph codeph">false</code>
</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>