| <?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="DEFAULT_HINTS_INSERT_STATEMENT 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="default_hints_insert_statement" /> |
| <link rel="stylesheet" type="text/css" href="../commonltr.css" /> |
| <title>DEFAULT_HINTS_INSERT_STATEMENT Query Option</title> |
| </head> |
| <body id="default_hints_insert_statement"> |
| |
| |
| <h1 class="title topictitle1" id="ariaid-title1">DEFAULT_HINTS_INSERT_STATEMENT Query Option</h1> |
| |
| |
| |
| |
| |
| |
| <div class="body conbody"> |
| |
| <p class="p"> |
| The <code class="ph codeph">DEFAULT_HINTS_INSERT_STATEMENT</code> query option sets the default hints |
| for the <code class="ph codeph">INSERT</code> statements with no optimizer hint specified. |
| </p> |
| |
| |
| <p class="p"> |
| When there are hints specified in an <code class="ph codeph">INSERT</code> statement, these default |
| hints are ignored. |
| </p> |
| |
| |
| <p class="p"> |
| You can specify multiple hints separated by '<code class="ph codeph">:</code>'. |
| </p> |
| |
| |
| <p class="p"> |
| For example: |
| </p> |
| |
| |
| <pre class="pre codeblock"><code>SET DEFAULT_HINTS_INSERT_STATEMENT=CLUSTERED; |
| SET DEFAULT_HINTS_INSERT_STATEMENT=SHUFFLE; |
| SET DEFAULT_HINTS_INSERT_STATEMENT=NOCLUSTERED:NOSHUFFLE; </code></pre> |
| |
| <p class="p"> |
| The default hints apply to the HDFS and Kudu table formats and are ignored for the HBase |
| table format. |
| </p> |
| |
| |
| <p class="p"> |
| <strong class="ph b">Type:</strong> <code class="ph codeph">STRING</code> |
| </p> |
| |
| |
| <p class="p"> |
| <strong class="ph b">Default:</strong> none |
| </p> |
| |
| |
| <p class="p"> |
| <strong class="ph b">Added in:</strong> <span class="keyword">Impala 3.3</span> |
| </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> |