You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@drill.apache.org by vo...@apache.org on 2020/03/10 10:40:58 UTC

[drill-site] branch asf-site updated: Website update

This is an automated email from the ASF dual-hosted git repository.

volodymyr pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/drill-site.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new a548714  Website update
a548714 is described below

commit a5487147f992643c867128c9bfdc03f8185bc3c3
Author: Volodymyr Vysotskyi <vv...@gmail.com>
AuthorDate: Tue Mar 10 12:40:15 2020 +0200

    Website update
---
 docs/analyze-table-refresh-metadata/index.html     |   35 +-
 docs/analyze-table/index.html                      | 1666 --------------------
 .../index.html                                     |    4 +-
 docs/date-time-functions-and-arithmetic/index.html |    6 +-
 docs/drill-iceberg-metastore/index.html            |   47 +-
 docs/drill-metastore/index.html                    |    2 +-
 docs/img/1_vbImport.png                            |  Bin
 docs/img/3_vbNetwork.png                           |  Bin
 docs/img/4_vbMaprSetting.png                       |  Bin
 docs/img/drill-bin.png                             |  Bin
 docs/img/drill-directory.png                       |  Bin
 docs/img/odbc-configure1.png                       |  Bin
 docs/img/odbc-configure2.png                       |  Bin
 docs/img/odbc-configure3.png                       |  Bin
 docs/img/odbc-drivers.png                          |  Bin
 docs/img/odbc-mapr-drill-apps.png                  |  Bin
 docs/img/odbc-test.png                             |  Bin
 docs/img/odbc-user-dsn.png                         |  Bin
 docs/img/sqlline1.png                              |  Bin
 docs/persistent-configuration-storage/index.html   |   30 +-
 docs/rest-api-introduction/index.html              |   60 +-
 docs/supported-sql-commands/index.html             |    2 +-
 docs/using-drill-metastore/index.html              |  426 ++---
 feed.xml                                           |   18 +-
 24 files changed, 359 insertions(+), 1937 deletions(-)

diff --git a/docs/analyze-table-refresh-metadata/index.html b/docs/analyze-table-refresh-metadata/index.html
index a360a8f..f69d53b 100644
--- a/docs/analyze-table-refresh-metadata/index.html
+++ b/docs/analyze-table-refresh-metadata/index.html
@@ -1337,7 +1337,7 @@
 
     </div>
 
-     Jan 30, 2020
+     Mar 3, 2020
 
     <link href="/css/docpage.css" rel="stylesheet" type="text/css">
 
@@ -1346,36 +1346,17 @@
         <p>Starting from Drill 1.17, you can store table metadata (including schema and computed statistics) into Drill Metastore.
 This metadata will be used when querying a table for more optimal plan creation.</p>
 
-<p>The Metastore is an Alpha feature; it is subject to change. We encourage you to try it and provide feedback.
-Because the Metastore is in Beta, the SQL commands and Metastore formats may change in the next release.
-<div class="admonition note">
-  <p class="first admonition-title">Note</p>
-  <p class="last">In Drill 1.17, this feature is supported for Parquet tables only and is disabled by default.  </p>
-</div></p>
-
 <p>To use the Drill Metastore, you must enable it at the session or system level with one of the following commands:</p>
 <div class="highlight"><pre><code class="language-text" data-lang="text">SET `metastore.enabled` = true;
 ALTER SYSTEM SET `metastore.enabled` = true;
 </code></pre></div>
-<p>Alternatively, you can enable the option in the Drill Web UI at <code>http://&lt;drill-hostname-or-ip-address&gt;:8047/options</code>.</p>
-
-<p>Once you enable the Metastore, the next step is to populate it with data. Drill can query a table whether that table
- has a Metastore entry or not. (If you are familiar with Hive, then you know that Hive requires that all tables have
- Hive Metastore entries before you can query them.) In Drill, only add data to the Metastore when doing so improves
- query performance. In general, large tables benefit from statistics more than small tables do.</p>
-
-<p>Unlike Hive, Drill does not require you to declare a schema. Instead, Drill infers the schema by scanning your table 
- and computes some metadata like MIN / MAX column values and NULLS COUNT designated as &quot;metadata&quot; to be able to
- produce more optimizations like filter push-down, etc. If <code>planner.statistics.use</code> option is enabled, this command
- will also calculate and store table statistics into Drill Metastore.</p>
-
-<p>Unlike Hive, Drill does not require you to declare a schema. Instead, Drill infers the schema by scanning your table
- in the same way as it is done during regular select.</p>
+<p>Please refer to <a href="/docs/using-drill-metastore">Using Drill Metastore</a> for more details about Drill Metastore including its purpose and how to use it.</p>
 
 <h2 id="syntax">Syntax</h2>
 
 <p>The ANALYZE TABLE REFRESH METADATA statement supports the following syntax:</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">ANALYZE TABLE [table_name] [COLUMNS {(col1, col2, ...) | NONE}]
+<div class="highlight"><pre><code class="language-text" data-lang="text">ANALYZE TABLE [table_name | table({table function name}(parameters))]
+[COLUMNS {(col1, col2, ...) | NONE}]
 REFRESH METADATA [&#39;level&#39; LEVEL]
 [{COMPUTE | ESTIMATE} | STATISTICS
 [ SAMPLE number PERCENT ]]
@@ -1386,6 +1367,14 @@ REFRESH METADATA [&#39;level&#39; LEVEL]
 The name of the table or directory for which Drill will collect table metadata. If the table does not exist, the table
  is temporary or if you do not have permission to read the table, the command fails and metadata is not collected and stored.</p>
 
+<p><em>table({table function name}(parameters))</em>
+Table function parameters. This syntax is only available since Drill 1.18.
+Example of table function parameters usage:</p>
+<div class="highlight"><pre><code class="language-text" data-lang="text">table(dfs.`table_name` (type =&gt; &#39;parquet&#39;, autoCorrectCorruptDates =&gt; true))
+</code></pre></div>
+<p>For detailed information, please refer to
+ <a href="/docs/plugin-configuration-basics/#using-the-formats-attributes-as-table-function-parameters">Using the Formats Attributes as Table Function Parameters</a></p>
+
 <p><em>COLUMNS (col1, col2, ...)</em>
 Optional names of the column(s) for which Drill will compute and store statistics. The stored schema will include all
  table columns.</p>
diff --git a/docs/analyze-table/index.html b/docs/analyze-table/index.html
deleted file mode 100644
index 54bc754..0000000
--- a/docs/analyze-table/index.html
+++ /dev/null
@@ -1,1666 +0,0 @@
-<!DOCTYPE html>
-<html>
-
-<head>
-
-<meta charset="UTF-8">
-<meta name=viewport content="width=device-width, initial-scale=1">
-
-
-<title>ANALYZE TABLE - Apache Drill</title>
-
-<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
-<link href='//fonts.googleapis.com/css?family=PT+Sans' rel='stylesheet' type='text/css'/>
-<link href="/css/site.css" rel="stylesheet" type="text/css"/>
-
-<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
-<link rel="icon" href="/favicon.ico" type="image/x-icon"/>
-
-<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js" language="javascript" type="text/javascript"></script>
-<script src="//cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js" language="javascript" type="text/javascript"></script>
-<script language="javascript" type="text/javascript" src="/js/modernizr.custom.js"></script>
-<script language="javascript" type="text/javascript" src="/js/script.js"></script>
-<script language="javascript" type="text/javascript" src="/js/drill.js"></script>
-
-</head>
-
-
-<body onResize="resized();">
-  <div class="page-wrap">
-    <div class="bui"></div>
-
-<div id="menu" class="mw">
-<ul>
-  <li class='toc-categories'>
-  <a class="expand-toc-icon" href="javascript:void(0);"><i class="fa fa-bars"></i></a>
-  </li>
-  <li class="logo"><a href="/"></a></li>
-  <li class='expand-menu'>
-  <a href="javascript:void(0);"><span class='menu-text'>Menu</span><span class='expand-icon'><i class="fa fa-bars"></i></span></a>
-  </li>
-  <li class='clear-float'></li>
-  <li class="apache-link">
-    <a href="/apacheASF/">Apache</a>
-  </li>
-  <li class="poweredby">
-    <a href="/poweredBy">Powered By</a>
-  </li>
-  <li class="documentation-menu">
-    <a href="/docs/">Documentation</a>
-    <ul>
-      
-        <li><a href="/docs/getting-started/">Getting Started</a></li>
-      
-        <li><a href="/docs/architecture/">Architecture</a></li>
-      
-        <li><a href="/docs/tutorials/">Tutorials</a></li>
-      
-        <li><a href="/docs/drill-on-yarn/">Drill-on-YARN</a></li>
-      
-        <li><a href="/docs/install-drill/">Install Drill</a></li>
-      
-        <li><a href="/docs/configure-drill/">Configure Drill</a></li>
-      
-        <li><a href="/docs/connect-a-data-source/">Connect a Data Source</a></li>
-      
-        <li><a href="/docs/odbc-jdbc-interfaces/">ODBC/JDBC Interfaces</a></li>
-      
-        <li><a href="/docs/query-data/">Query Data</a></li>
-      
-        <li><a href="/docs/performance-tuning/">Performance Tuning</a></li>
-      
-        <li><a href="/docs/log-and-debug/">Log and Debug</a></li>
-      
-        <li><a href="/docs/sql-reference/">SQL Reference</a></li>
-      
-        <li><a href="/docs/data-sources-and-file-formats/">Data Sources and File Formats</a></li>
-      
-        <li><a href="/docs/develop-custom-functions/">Develop Custom Functions</a></li>
-      
-        <li><a href="/docs/troubleshooting/">Troubleshooting</a></li>
-      
-        <li><a href="/docs/developer-information/">Developer Information</a></li>
-      
-        <li><a href="/docs/release-notes/">Release Notes</a></li>
-      
-        <li><a href="/docs/sample-datasets/">Sample Datasets</a></li>
-      
-        <li><a href="/docs/project-bylaws/">Project Bylaws</a></li>
-      
-        <li><a href="/docs/ecosystem/">Ecosystem</a></li>
-      
-    </ul>
-  </li>
-  <li class='nav'>
-    <a href="/community-resources/">Community</a>
-    <ul>
-      <li><a href="/team/">Team</a></li>
-      <li><a href="/mailinglists/">Mailing Lists</a></li>
-      <li><a href="/community-resources/">Community Resources</a></li>
-    </ul>
-  </li>
-  <li class='nav'><a href="/faq/">FAQ</a></li>
-  <li class='nav'><a href="/blog/">Blog</a></li>
-  <li id="twitter-menu-item"><a href="https://twitter.com/apachedrill" title="apachedrill on twitter" target="_blank"><img src="/images/twitter_32_26_white.png" alt="twitter logo" align="center"></a> </li>
-  <li class='search-bar'>
-    <form id="drill-search-form">
-      <input type="text" placeholder="Search Apache Drill" id="drill-search-term" />
-      <button type="submit">
-        <i class="fa fa-search"></i>
-      </button>
-    </form>
-  </li>
-  <li class="d">
-    <a href="/download/">
-      <i class="fa fa-cloud-download"></i> Download
-    </a>
-  </li>
-</ul>
-</div>
-
-    <link href="/css/content.css" rel="stylesheet" type="text/css">
-
-
-      
-
-
-
-
-<aside class="sidebar">
-  <div class="docsidebar">
-    <div class="docsidebarwrapper">
-      <ul style="display: block;">
-      
-        
-          <li class="toctree-l1"><a href="javascript: void(0);">Getting Started</a></li>
-          <ul style="display: none">
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/drill-introduction/">Drill Introduction</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/why-drill/">Why Drill</a></li>
-            
-          
-          </ul>
-        
-      
-        
-          <li class="toctree-l1"><a href="javascript: void(0);">Architecture</a></li>
-          <ul style="display: none">
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/architecture-introduction/">Architecture Introduction</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/drill-query-execution/">Drill Query Execution</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/core-modules/">Core Modules</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/performance/">Performance</a></li>
-            
-          
-          </ul>
-        
-      
-        
-          <li class="toctree-l1"><a href="javascript: void(0);">Tutorials</a></li>
-          <ul style="display: none">
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/tutorials-introduction/">Tutorials Introduction</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/drill-in-10-minutes/">Drill in 10 Minutes</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/analyzing-the-yelp-academic-dataset/">Analyzing the Yelp Academic Dataset</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a href="javascript: void(0);">Learn Drill with the MapR Sandbox</a></li>
-              <ul style="display: none">
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/about-the-mapr-sandbox/">About the MapR Sandbox</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/installing-the-apache-drill-sandbox/">Installing the Apache Drill Sandbox</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/getting-to-know-the-drill-sandbox/">Getting to Know the Drill Sandbox</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/lesson-1-learn-about-the-data-set/">Lesson 1: Learn about the Data Set</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/lesson-2-run-queries-with-ansi-sql/">Lesson 2: Run Queries with ANSI SQL</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/lesson-3-run-queries-on-complex-data-types/">Lesson 3: Run Queries on Complex Data Types</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/summary/">Summary</a></li>
-              
-            </ul>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/analyzing-highly-dynamic-datasets/">Analyzing Highly Dynamic Datasets</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/analyzing-social-media/">Analyzing Social Media</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/analyzing-data-using-window-functions/">Analyzing Data Using Window Functions</a></li>
-            
-          
-          </ul>
-        
-      
-        
-          <li class="toctree-l1"><a href="javascript: void(0);">Drill-on-YARN</a></li>
-          <ul style="display: none">
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/drill-on-yarn-introduction/">Drill-on-YARN Introduction</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/creating-a-basic-drill-cluster/">Creating a Basic Drill Cluster</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/launch-drill-under-yarn/">Launch Drill Under YARN</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/configuration-reference/">Configuration Reference</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/drill-on-yarn-command-line-tool/">Drill-on-YARN Command-Line Tool</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/using-the-drill-on-yarn-web-ui/">Using the Drill-on-YARN Web UI</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/multiple-drill-clusters/">Multiple Drill Clusters</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/enabling-web-ui-security/">Enabling Web UI Security</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/appendix-a-release-note-issues/">Appendix A: Release Note Issues</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/appendix-b-drill-env-sh-settings/">Appendix B: drill-env.sh Settings</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/appendix-c-troubleshooting/">Appendix C: Troubleshooting</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/appendix-d-recreate-the-drill-archive/">Appendix D: Recreate the Drill Archive</a></li>
-            
-          
-          </ul>
-        
-      
-        
-          <li class="toctree-l1"><a href="javascript: void(0);">Install Drill</a></li>
-          <ul style="display: none">
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/install-drill-introduction/">Install Drill Introduction</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/migrating-parquet-data/">Migrating Parquet Data</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a href="javascript: void(0);">Installing Drill in Embedded Mode</a></li>
-              <ul style="display: none">
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/embedded-mode-prerequisites/">Embedded Mode Prerequisites</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/running-drill-on-docker/">Running Drill on Docker</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/installing-drill-on-linux-and-mac-os-x/">Installing Drill on Linux and Mac OS X</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/starting-drill-on-linux-and-mac-os-x/">Starting Drill on Linux and Mac OS X</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/installing-drill-on-windows/">Installing Drill on Windows</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/starting-drill-on-windows/">Starting Drill on Windows</a></li>
-              
-            </ul>
-            
-          
-            
-              <li class="toctree-l2"><a href="javascript: void(0);">Installing Drill in Distributed Mode</a></li>
-              <ul style="display: none">
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/distributed-mode-prerequisites/">Distributed Mode Prerequisites</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/installing-drill-on-the-cluster/">Installing Drill on the Cluster</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/starting-drill-in-distributed-mode/">Starting Drill in Distributed Mode</a></li>
-              
-            </ul>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/starting-the-web-ui/">Starting the Web UI</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/stopping-drill/">Stopping Drill</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/identifying-multiple-drill-versions-in-a-cluster/">Identifying Multiple Drill Versions in a Cluster</a></li>
-            
-          
-          </ul>
-        
-      
-        
-          <li class="toctree-l1"><a href="javascript: void(0);">Configure Drill</a></li>
-          <ul style="display: none">
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/configure-drill-introduction/">Configure Drill Introduction</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/configuring-drill-memory/">Configuring Drill Memory</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a href="javascript: void(0);">Securing Drill</a></li>
-              <ul style="display: none">
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/securing-drill-introduction/">Securing Drill Introduction</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/secure-communication-paths/">Secure Communication Paths</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/roles-and-privileges/">Roles and Privileges</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/configuring-user-impersonation/">Configuring User Impersonation</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/configuring-inbound-impersonation/">Configuring Inbound Impersonation</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/configuring-user-impersonation-with-hive-authorization/">Configuring User Impersonation with Hive Authorization</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/configuring-plain-security/">Configuring Plain Security</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/configuring-ssl-tls-for-encryption/">Configuring SSL/TLS for Encryption</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/using-libpam4j-as-the-pam-authenticator/">Using libpam4j as the PAM Authenticator</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/using-jpam-as-the-pam-authenticator/">Using jpam as the PAM Authenticator</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/configuring-kerberos-security/">Configuring Kerberos Security</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/configuring-drill-to-use-spnego-for-http-authentication/">Configuring Drill to use SPNEGO for HTTP Authentication</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/configuring-web-ui-and-rest-api-security/">Configuring Web UI and REST API Security</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/configuring-custom-acls-to-secure-znodes/">Configuring Custom ACLs to Secure znodes</a></li>
-              
-            </ul>
-            
-          
-            
-              <li class="toctree-l2"><a href="javascript: void(0);">Configuring a Multitenant Cluster</a></li>
-              <ul style="display: none">
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/configuring-a-multitenant-cluster-introduction/">Configuring a Multitenant Cluster Introduction</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/configuring-multitenant-resources/">Configuring Multitenant Resources</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/configuring-resources-for-a-shared-drillbit/">Configuring Resources for a Shared Drillbit</a></li>
-              
-            </ul>
-            
-          
-            
-              <li class="toctree-l2"><a href="javascript: void(0);">Configuration Options</a></li>
-              <ul style="display: none">
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/configuration-options-introduction/">Configuration Options Introduction</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/start-up-options/">Start-Up Options</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/planning-and-execution-options/">Planning and Execution Options</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/persistent-configuration-storage/">Persistent Configuration Storage</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/global-query-list/">Global Query List</a></li>
-              
-            </ul>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/ports-used-by-drill/">Ports Used by Drill</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/configuring-the-drill-shell/">Configuring the Drill Shell</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/configuring-cgroups-to-control-cpu-usage/">Configuring cgroups to Control CPU Usage</a></li>
-            
-          
-          </ul>
-        
-      
-        
-          <li class="toctree-l1"><a href="javascript: void(0);">Connect a Data Source</a></li>
-          <ul style="display: none">
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/connect-a-data-source-introduction/">Connect a Data Source Introduction</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/storage-plugin-registration/">Storage Plugin Registration</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a href="javascript: void(0);">Storage Plugin Configuration</a></li>
-              <ul style="display: none">
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/plugin-configuration-basics/">Plugin Configuration Basics</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/configuring-storage-plugins/">Configuring Storage Plugins</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/workspaces/">Workspaces</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/drill-default-input-format/">Drill Default Input Format</a></li>
-              
-            </ul>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/file-system-storage-plugin/">File System Storage Plugin</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/logfile-plugin/">Logfile Plugin</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/hbase-storage-plugin/">HBase Storage Plugin</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/hive-storage-plugin/">Hive Storage Plugin</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/rdbms-storage-plugin/">RDBMS Storage Plugin</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/mongodb-storage-plugin/">MongoDB Storage Plugin</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/mapr-db-format/">MapR-DB Format</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/s3-storage-plugin/">S3 Storage Plugin</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/httpd-format-plugin/">HTTPD Format Plugin</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/opentsdb-storage-plugin/">OpenTSDB Storage Plugin</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/kafka-storage-plugin/">Kafka Storage Plugin</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/image-metadata-format-plugin/">Image Metadata Format Plugin</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/azure-blob-storage-plugin/">Azure Blob Storage Plugin</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/syslog-format-plugin/">Syslog Format Plugin</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/ltsv-format-plugin/">LTSV Format Plugin</a></li>
-            
-          
-          </ul>
-        
-      
-        
-          <li class="toctree-l1"><a href="javascript: void(0);">ODBC/JDBC Interfaces</a></li>
-          <ul style="display: none">
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/interfaces-introduction/">Interfaces Introduction</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/using-the-jdbc-driver/">Using the JDBC Driver</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/using-jdbc-with-squirrel-on-windows/">Using JDBC with SQuirreL on Windows</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a href="javascript: void(0);">Installing the ODBC Driver</a></li>
-              <ul style="display: none">
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/installing-the-driver-on-linux/">Installing the Driver on Linux</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/installing-the-driver-on-mac-os-x/">Installing the Driver on Mac OS X</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/installing-the-driver-on-windows/">Installing the Driver on Windows</a></li>
-              
-            </ul>
-            
-          
-            
-              <li class="toctree-l2"><a href="javascript: void(0);">Configuring ODBC</a></li>
-              <ul style="display: none">
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/odbc-configuration-reference/">ODBC Configuration Reference</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/logging-and-tracing/">Logging and Tracing</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/configuring-odbc-on-linux/">Configuring ODBC on Linux</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/configuring-odbc-on-mac-os-x/">Configuring ODBC on Mac OS X</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/configuring-odbc-on-windows/">Configuring ODBC on Windows</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/testing-the-odbc-connection/">Testing the ODBC Connection</a></li>
-              
-            </ul>
-            
-          
-            
-              <li class="toctree-l2"><a href="javascript: void(0);">Using Drill Explorer</a></li>
-              <ul style="display: none">
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/drill-explorer-introduction/">Drill Explorer Introduction</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/connecting-drill-explorer-to-data/">Connecting Drill Explorer to Data</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/browsing-data-and-defining-views/">Browsing Data and Defining Views</a></li>
-              
-            </ul>
-            
-          
-            
-              <li class="toctree-l2"><a href="javascript: void(0);">Using Drill with BI Tools</a></li>
-              <ul style="display: none">
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/using-drill-with-bi-tools-introduction/">Using Drill with BI Tools Introduction</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/tableau-examples/">Tableau Examples</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/using-microstrategy-analytics-with-apache-drill/">Using MicroStrategy Analytics with Apache Drill</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/using-tibco-spotfire-desktop-with-drill/">Using Tibco Spotfire Desktop with Drill</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/configuring-tibco-spotfire-server-with-drill/">Configuring Tibco Spotfire Server with Drill</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/using-qlik-sense-with-drill/">Using Qlik Sense with Drill</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/using-apache-drill-with-tableau-10-2/">Using Apache Drill with Tableau 10.2</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/using-apache-drill-with-tableau-9-desktop/">Using Apache Drill with Tableau 9 Desktop</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/using-apache-drill-with-tableau-9-server/">Using Apache Drill with Tableau 9 Server</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/using-information-builders-webfocus-with-apache-drill/">Using Information Builders’ WebFOCUS with Apache Drill</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/configuring-jreport-with-drill/">Configuring JReport with Drill</a></li>
-              
-            </ul>
-            
-          
-          </ul>
-        
-      
-        
-          <li class="toctree-l1"><a href="javascript: void(0);">Query Data</a></li>
-          <ul style="display: none">
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/query-data-introduction/">Query Data Introduction</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a href="javascript: void(0);">Querying a File System</a></li>
-              <ul style="display: none">
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/querying-a-file-system-introduction/">Querying a File System Introduction</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/querying-avro-files/">Querying Avro Files</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/querying-json-files/">Querying JSON Files</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/querying-parquet-files/">Querying Parquet Files</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/querying-plain-text-files/">Querying Plain Text Files</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/querying-directories/">Querying Directories</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/querying-sequence-files/">Querying Sequence Files</a></li>
-              
-            </ul>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/querying-hbase/">Querying HBase</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a href="javascript: void(0);">Querying Complex Data</a></li>
-              <ul style="display: none">
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/querying-complex-data-introduction/">Querying Complex Data Introduction</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/sample-data-donuts/">Sample Data: Donuts</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/selecting-flat-data/">Selecting Flat Data</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/using-sql-functions-clauses-and-joins/">Using SQL Functions, Clauses, and Joins</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/selecting-nested-data-for-a-column/">Selecting Nested Data for a Column</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/selecting-multiple-columns-within-nested-data/">Selecting Multiple Columns Within Nested Data</a></li>
-              
-            </ul>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/querying-hive/">Querying Hive</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/querying-the-information-schema/">Querying the INFORMATION SCHEMA</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a href="javascript: void(0);">Querying Indexes</a></li>
-              <ul style="display: none">
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/querying-indexes-introduction/">Querying Indexes Introduction</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/queries-that-qualify-for-index-based-query-plans/">Queries that Qualify for Index-Based Query Plans</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/types-of-indexes/">Types of Indexes</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/index-selection/">Index Selection</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/designing-indexes-for-your-queries/">Designing Indexes for Your Queries</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/configuring-index-planning/">Configuring Index Planning</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/verifying-index-use/">Verifying Index Use</a></li>
-              
-            </ul>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/querying-system-tables/">Querying System Tables</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/monitoring-and-canceling-queries-in-the-drill-web-ui/">Monitoring and Canceling Queries in the Drill Web UI</a></li>
-            
-          
-          </ul>
-        
-      
-        
-          <li class="toctree-l1"><a href="javascript: void(0);">Performance Tuning</a></li>
-          <ul style="display: none">
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/performance-tuning-introduction/">Performance Tuning Introduction</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a href="javascript: void(0);">Partition Pruning</a></li>
-              <ul style="display: none">
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/partition-pruning-introduction/">Partition Pruning Introduction</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/how-to-partition-data/">How to Partition Data</a></li>
-              
-            </ul>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/asynchronous-parquet-reader/">Asynchronous Parquet Reader</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/optimizing-parquet-metadata-reading/">Optimizing Parquet Metadata Reading</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/parquet-filter-pushdown/">Parquet Filter Pushdown</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/hive-metadata-caching/">Hive Metadata Caching</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/choosing-a-storage-format/">Choosing a Storage Format</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a href="javascript: void(0);">Query Plans and Tuning</a></li>
-              <ul style="display: none">
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/query-plans-and-tuning-introduction/">Query Plans and Tuning Introduction</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/join-planning-guidelines/">Join Planning Guidelines</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/guidelines-for-optimizing-aggregation/">Guidelines for Optimizing Aggregation</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/modifying-query-planning-options/">Modifying Query Planning Options</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/sort-based-and-hash-based-memory-constrained-operators/">Sort-Based and Hash-Based Memory-Constrained Operators</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/enabling-query-queuing/">Enabling Query Queuing</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/throttling/">Throttling</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/controlling-parallelization-to-balance-performance-with-multi-tenancy/">Controlling Parallelization to Balance Performance with Multi-Tenancy</a></li>
-              
-            </ul>
-            
-          
-            
-              <li class="toctree-l2"><a href="javascript: void(0);">Identifying Performance Issues</a></li>
-              <ul style="display: none">
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/query-plans/">Query Plans</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/query-profiles/">Query Profiles</a></li>
-              
-            </ul>
-            
-          
-            
-              <li class="toctree-l2"><a href="javascript: void(0);">Performance Tuning Reference</a></li>
-              <ul style="display: none">
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/query-profile-column-descriptions/">Query Profile Column Descriptions</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/physical-operators/">Physical Operators</a></li>
-              
-            </ul>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/monitoring-metrics/">Monitoring Metrics</a></li>
-            
-          
-          </ul>
-        
-      
-        
-          <li class="toctree-l1"><a href="javascript: void(0);">Log and Debug</a></li>
-          <ul style="display: none">
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/log-and-debug-introduction/">Log and Debug Introduction</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/error-messages/">Error Messages</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/modify-logback-xml/">Modify logback.xml</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/review-the-java-stack-trace/">Review the Java Stack Trace</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/query-audit-logging/">Query Audit Logging</a></li>
-            
-          
-          </ul>
-        
-      
-        
-          <li class="toctree-l1 current_section "><a href="javascript: void(0);">SQL Reference</a></li>
-          <ul class="current_section">
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/sql-reference-introduction/">SQL Reference Introduction</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a href="javascript: void(0);">Data Types</a></li>
-              <ul style="display: none">
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/supported-data-types/">Supported Data Types</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/date-time-and-timestamp/">Date, Time, and Timestamp</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/handling-different-data-types/">Handling Different Data Types</a></li>
-              
-            </ul>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/lexical-structure/">Lexical Structure</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/operators/">Operators</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a href="javascript: void(0);">SQL Functions</a></li>
-              <ul style="display: none">
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/about-sql-function-examples/">About SQL Function Examples</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/math-and-trig/">Math and Trig</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/data-type-conversion/">Data Type Conversion</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/data-type-functions/">Data Type Functions</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/date-time-functions-and-arithmetic/">Date/Time Functions and Arithmetic</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/string-manipulation/">String Manipulation</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/aggregate-and-aggregate-statistical/">Aggregate and Aggregate Statistical</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/functions-for-handling-nulls/">Functions for Handling Nulls</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/phonetic-functions/">Phonetic Functions</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/string-distance-functions/">String Distance Functions</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/cryptography-functions/">Cryptography Functions</a></li>
-              
-            </ul>
-            
-          
-            
-              <li class="toctree-l2"><a href="javascript: void(0);">SQL Window Functions</a></li>
-              <ul style="display: none">
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/sql-window-functions-introduction/">SQL Window Functions Introduction</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/aggregate-window-functions/">Aggregate Window Functions</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/ranking-window-functions/">Ranking Window Functions</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/value-window-functions/">Value Window Functions</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/sql-window-functions-examples/">SQL Window Functions Examples</a></li>
-              
-            </ul>
-            
-          
-            
-              <li class="toctree-l2"><a href="javascript: void(0);">Nested Data Functions</a></li>
-              <ul style="display: none">
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/nested-data-limitations/">Nested Data Limitations</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/flatten/">FLATTEN</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/kvgen/">KVGEN</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/repeated-count/">REPEATED_COUNT</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/repeated-contains/">REPEATED_CONTAINS</a></li>
-              
-            </ul>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/query-directory-functions/">Query Directory Functions</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a href="javascript: void(0);">SQL Commands</a></li>
-              <ul style="">
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/supported-sql-commands/">Supported SQL Commands</a></li>
-              
-                <li class="toctree-l3 current"><a class="reference internal" href="/docs/analyze-table/">ANALYZE TABLE</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/set/">SET</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/refresh-table-metadata/">REFRESH TABLE METADATA</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/reset/">RESET</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/alter-system/">ALTER SYSTEM</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/create-or-replace-schema/">CREATE OR REPLACE SCHEMA</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/create-table-as-ctas/">CREATE TABLE AS (CTAS)</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/create-temporary-table-as-cttas/">CREATE TEMPORARY TABLE AS (CTTAS)</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/create-function-using-jar/">CREATE FUNCTION USING JAR</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/partition-by-clause/">PARTITION BY Clause</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/create-view/">CREATE VIEW</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/describe/">DESCRIBE</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/drop-function-using-jar/">DROP FUNCTION USING JAR</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/drop-table/">DROP TABLE</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/drop-view/">DROP VIEW</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/explain/">EXPLAIN</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/lateral-join/">LATERAL Join</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/select/">SELECT</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/select-list/">SELECT List</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/from-clause/">FROM Clause</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/group-by-clause/">GROUP BY Clause</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/having-clause/">HAVING Clause</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/limit-clause/">LIMIT Clause</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/offset-clause/">OFFSET Clause</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/order-by-clause/">ORDER BY Clause</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/union-set-operator/">UNION Set Operator</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/where-clause/">WHERE Clause</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/with-clause/">WITH Clause</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/show-databases-and-show-schemas/">SHOW DATABASES and SHOW SCHEMAS</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/show-files/">SHOW FILES</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/show-tables/">SHOW TABLES</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/use/">USE</a></li>
-              
-            </ul>
-            
-          
-            
-              <li class="toctree-l2"><a href="javascript: void(0);">SQL Conditional Expressions</a></li>
-              <ul style="display: none">
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/case/">CASE</a></li>
-              
-            </ul>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/reserved-keywords/">Reserved Keywords</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/sql-extensions/">SQL Extensions</a></li>
-            
-          
-          </ul>
-        
-      
-        
-          <li class="toctree-l1"><a href="javascript: void(0);">Data Sources and File Formats</a></li>
-          <ul style="display: none">
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/data-sources-and-file-formats-introduction/">Data Sources and File Formats Introduction</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/hive-to-drill-data-type-mapping/">Hive-to-Drill Data Type Mapping</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/deploying-and-using-a-hive-udf/">Deploying and Using a Hive UDF</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/parquet-format/">Parquet Format</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/json-data-model/">JSON Data Model</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/text-files-csv-tsv-psv/">Text Files: CSV, TSV, PSV</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/sequence-files/">Sequence Files</a></li>
-            
-          
-          </ul>
-        
-      
-        
-          <li class="toctree-l1"><a href="javascript: void(0);">Develop Custom Functions</a></li>
-          <ul style="display: none">
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/develop-custom-functions-introduction/">Develop Custom Functions Introduction</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/developing-a-simple-function/">Developing a Simple Function</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/tutorial-develop-a-simple-function/">Tutorial: Develop a Simple Function</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/developing-an-aggregate-function/">Developing an Aggregate Function</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a href="javascript: void(0);">Adding Custom Functions to Drill</a></li>
-              <ul style="display: none">
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/adding-custom-functions-to-drill-introduction/">Adding Custom Functions to Drill Introduction</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/manually-adding-custom-functions-to-drill/">Manually Adding Custom Functions to Drill</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/creating-custom-authenticators/">Creating Custom Authenticators</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/dynamic-udfs/">Dynamic UDFs</a></li>
-              
-            </ul>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/using-custom-functions-in-queries/">Using Custom Functions in Queries</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/custom-function-interfaces/">Custom Function Interfaces</a></li>
-            
-          
-          </ul>
-        
-      
-        
-          <li class="toctree-l1"><a class="reference internal" href="/docs/troubleshooting/">Troubleshooting</a></li>
-        
-      
-        
-          <li class="toctree-l1"><a href="javascript: void(0);">Developer Information</a></li>
-          <ul style="display: none">
-          
-            
-              <li class="toctree-l2"><a href="javascript: void(0);">REST API</a></li>
-              <ul style="display: none">
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/rest-api-introduction/">REST API Introduction</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/submitting-queries-from-the-rest-api-when-impersonation-is-enabled-and-authentication-is-disabled/">Submitting Queries from the REST API when Impersonation is Enabled and Authentication is Disabled</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/use-postman-to-run-sql-queries-on-drill-data-sources/">Use Postman to Run SQL Queries on Drill Data Sources</a></li>
-              
-            </ul>
-            
-          
-            
-              <li class="toctree-l2"><a href="javascript: void(0);">Develop Drill</a></li>
-              <ul style="display: none">
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/compiling-drill-from-source/">Compiling Drill from Source</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/useful-information-for-drill-developers/">Useful Information for Drill Developers</a></li>
-              
-            </ul>
-            
-          
-            
-              <li class="toctree-l2"><a href="javascript: void(0);">Contribute to Drill</a></li>
-              <ul style="display: none">
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/apache-drill-contribution-guidelines/">Apache Drill Contribution Guidelines</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/apache-drill-contribution-ideas/">Apache Drill Contribution Ideas</a></li>
-              
-            </ul>
-            
-          
-            
-              <li class="toctree-l2"><a href="javascript: void(0);">Design Docs</a></li>
-              <ul style="display: none">
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/drill-plan-syntax/">Drill Plan Syntax</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/rpc-overview/">RPC Overview</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/query-stages/">Query Stages</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/useful-research/">Useful Research</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/value-vectors/">Value Vectors</a></li>
-              
-            </ul>
-            
-          
-          </ul>
-        
-      
-        
-          <li class="toctree-l1"><a href="javascript: void(0);">Release Notes</a></li>
-          <ul style="display: none">
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/apache-drill-1-17-0-release-notes/">Apache Drill 1.17.0 Release Notes</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/apache-drill-1-16-0-release-notes/">Apache Drill 1.16.0 Release Notes</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/apache-drill-1-15-0-release-notes/">Apache Drill 1.15.0 Release Notes</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/apache-drill-1-14-0-release-notes/">Apache Drill 1.14.0 Release Notes</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/apache-drill-1-13-0-release-notes/">Apache Drill 1.13.0 Release Notes</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/apache-drill-1-12-0-release-notes/">Apache Drill 1.12.0 Release Notes</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/apache-drill-1-11-0-release-notes/">Apache Drill 1.11.0 Release Notes</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/apache-drill-1-10-0-release-notes/">Apache Drill 1.10.0 Release Notes</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/apache-drill-1-9-0-release-notes/">Apache Drill 1.9.0 Release Notes</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/apache-drill-1-8-0-release-notes/">Apache Drill 1.8.0 Release Notes</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/apache-drill-1-7-0-release-notes/">Apache Drill 1.7.0 Release Notes</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/apache-drill-1-6-0-release-notes/">Apache Drill 1.6.0 Release Notes</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/apache-drill-1-5-0-release-notes/">Apache Drill 1.5.0 Release Notes</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/apache-drill-1-4-0-release-notes/">Apache Drill 1.4.0 Release Notes</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/apache-drill-1-3-0-release-notes/">Apache Drill 1.3.0 Release Notes</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/apache-drill-1-2-0-release-notes/">Apache Drill 1.2.0 Release Notes</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/apache-drill-1-1-0-release-notes/">Apache Drill 1.1.0 Release Notes</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/apache-drill-1-0-0-release-notes/">Apache Drill 1.0.0 Release Notes</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/apache-drill-0-9-0-release-notes/">Apache Drill 0.9.0 Release Notes</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/apache-drill-0-8-0-release-notes/">Apache Drill 0.8.0 Release Notes</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/apache-drill-0-7-0-release-notes/">Apache Drill 0.7.0 Release Notes</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/apache-drill-0-6-0-release-notes/">Apache Drill 0.6.0 Release Notes</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/apache-drill-0-5-0-release-notes/">Apache Drill 0.5.0 Release Notes</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/apache-drill-0-4-0-release-notes/">Apache Drill 0.4.0 Release Notes</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/apache-drill-m1-release-notes-apache-drill-alpha/">Apache Drill M1 Release Notes (Apache Drill Alpha)</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/apache-drill-m1-release-notes-apache-drill-alpha/">Apache Drill M1 Release Notes (Apache Drill Alpha)</a></li>
-            
-          
-          </ul>
-        
-      
-        
-          <li class="toctree-l1"><a href="javascript: void(0);">Sample Datasets</a></li>
-          <ul style="display: none">
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/enron-emails/">Enron Emails</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/wikipedia-edit-history/">Wikipedia Edit History</a></li>
-            
-          
-          </ul>
-        
-      
-        
-          <li class="toctree-l1"><a class="reference internal" href="/docs/project-bylaws/">Project Bylaws</a></li>
-        
-      
-        
-          <li class="toctree-l1"><a href="javascript: void(0);">Ecosystem</a></li>
-          <ul style="display: none">
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/using-saiku-analytics-with-apache-drill/">Using Saiku Analytics with Apache Drill</a></li>
-            
-          
-          </ul>
-        
-      
-      </ul>
-
-    </div>
-  </div>
-</aside>
-
-
-<nav class="breadcrumbs">
-  <li><a href="/docs/">Docs</a></li>
- 
-  
-    <li><a href="/docs/sql-reference/">SQL Reference</a></li>
-  
-    <li><a href="/docs/sql-commands/">SQL Commands</a></li>
-  
-  <li>ANALYZE TABLE</li>
-</nav>
-
-<div class="main-content-wrapper">
-  <div class="main-content">
-
-    
-      <a class="edit-link" href="https://github.com/apache/drill/blob/gh-pages/_docs/sql-reference/sql-commands/009-analyze-table.md" target="_blank"><i class="fa fa-pencil-square-o"></i></a>
-    
-
-    <div class="int_title left">
-      <h1>ANALYZE TABLE</h1>
-
-    </div>
-
-     May 31, 2019
-
-    <link href="/css/docpage.css" rel="stylesheet" type="text/css">
-
-    <div class="int_text" align="left">
-      
-        <p>Drill 1.16 and later supports the ANALYZE TABLE statement. The ANALYZE TABLE statement computes statistics on Parquet data stored in tables and directories. The optimizer in Drill uses statistics to estimate filter, aggregation, and join cardinalities and create an optimal query plan. 
-ANALYZE TABLE writes statistics to a JSON file in the <code>.stats.drill</code> directory, for example <code>/user/table1/.stats.drill/0_0.json</code>. </p>
-
-<p>Drill will not use the statistics for query planning unless you enable the <code>planner.statistics.use</code> option, as shown:</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">SET `planner.statistics.use` = true;
-</code></pre></div>
-<p>Alternatively, you can enable the option in the Drill Web UI at <code>http://&lt;drill-hostname-or-ip-address&gt;:8047/options</code>.</p>
-
-<h2 id="syntax">Syntax</h2>
-
-<p>The ANALYZE TABLE statement supports the following syntax:  </p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">ANALYZE TABLE [workspace.]table_name COMPUTE STATISTICS [(column1, column2,...)] [SAMPLE number PERCENT]
-</code></pre></div>
-<h2 id="parameters">Parameters</h2>
-
-<p><em>workspace</em><br>
-Optional. A configured storage plugin and workspace, like <code>dfs.samples</code>. For example, in <code>dfs.samples</code>, <code>dfs</code> is the file system storage plugin and samples is the <code>workspace</code> configured to point to a directory on the file system. </p>
-
-<p><em>table_name</em><br>
-The name of the table or directory for which Drill will generate statistics. </p>
-
-<p><em>COMPUTE STATISTICS</em><br>
-Generates statistics for the table, columns, or directory specified.   </p>
-
-<p><em>column</em><br>
-The name of the column(s) for which Drill will generate statistics.  </p>
-
-<p><em>SAMPLE</em><br>
-Optional. Indicates that compute statistics should run on a subset of the data.</p>
-
-<p><em>number PERCENT</em><br>
-An integer that specifies the percentage of data on which to compute statistics. For example, if a table has 100 rows, <code>SAMPLE 50 PERCENT</code> indicates that statistics should be computed on 50 rows. The optimizer selects the rows at random. </p>
-
-<h2 id="related-command">Related Command</h2>
-
-<p>If you drop a table that you have already run ANALYZE TABLE against, the statistics are automatically removed with the table:  </p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">DROP TABLE [IF EXISTS] [workspace.]name  
-</code></pre></div>
-<p>To remove statistics for a table you want to keep, you must remove the directory in which Drill stores the statistics:  </p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">DROP TABLE [IF EXISTS] [workspace.]name/.stats.drill  
-</code></pre></div>
-<p>If you have already issued the ANALYZE TABLE statement against specific columns, table, or directory, you must run the DROP TABLE statement with <code>/.stats.drill</code> before you can successfully run the ANALYZE TABLE statement against the data source again, for example:</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">DROP TABLE `table_stats/Tpch0.01/parquet/customer/.stats.drill`;
-</code></pre></div>
-<p>Note that <code>/.stats.drill</code> is the directory to which the JSON file with statistics is written.   </p>
-
-<h2 id="usage-notes">Usage Notes</h2>
-
-<ul>
-<li>The ANALYZE TABLE statement can compute statistics for Parquet data stored in tables, columns, and directories within dfs storage plugins only.<br></li>
-<li>The user running the ANALYZE TABLE statement must have read and write permissions on the data source.<br></li>
-<li><p>The optimizer in Drill computes the following types of statistics for each column:  </p>
-
-<ul>
-<li>Rowcount (total number of entries in the table)<br></li>
-<li>Nonnullrowcount (total number of non-null entries in the table)<br></li>
-<li>NDV (total distinct values in the table)<br></li>
-<li>Avgwidth (average width, in bytes, of a column)<br></li>
-<li>Majortype (data type and data mode (OPTIONAL, REQUIRED, REPEATED) of the column values)<br></li>
-<li>Histogram (represents the frequency distribution of values (numeric data) in a column) See <a href="/docs/analyze-table/#histograms">Histograms</a>.<br></li>
-<li><p>When you look at the statistics file, statistics for each column display in the following format (c_nationkey is used as an example column):  </p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">{&quot;column&quot;:&quot;`c_nationkey`&quot;,&quot;majortype&quot;:{&quot;type&quot;:&quot;INT&quot;,&quot;mode&quot;:&quot;REQUIRED&quot;},&quot;schema&quot;:1.0,&quot;rowcount&quot;:1500.0,&quot;nonnullrowcount&quot;:1500.0,&quot;ndv&quot;:25,&quot;avgwidth&quot;:4.0,&quot;histogram&quot;:{&quot;category&quot;:&quot;numeric-equi-depth&quot;,&quot;numRowsPerBucket&quot;:150,&quot;buckets&quot;:[0.0,2.0,4.0,7.0,9.0 [...]
-</code></pre></div></li>
-</ul></li>
-<li><p>ANALYZE TABLE can compute statistics on nested scalar columns; however, you must explicitly state the columns, for example:<br>
-     <code>ANALYZE TABLE employee_table COMPUTE STATISTICS (name.firstname, name.lastname);</code>  </p></li>
-<li><p>ANALYZE TABLE can compute statistics at the root directory level, but not at the partition level. 
-Drill does not compute statistics for complex types (maps, arrays).</p></li>
-</ul>
-
-<h2 id="related-options">Related Options</h2>
-
-<p>You can set the following options related to the ANALYZE TABLE statement at the system or session level with the SET (session level) or ALTER SYSTEM SET (system level) statements, or through the Drill Web UI at <code>http://&lt;drill-hostname-or-ip&gt;:8047/options</code>:  </p>
-
-<ul>
-<li><strong>planner.statistics.use</strong><br>
-Enables the query planner to use statistics. When disabled, ANALYZE TABLE generates statistics, but the query planner will not use the statistics unless this option is enabled. Disabled (false) by default. </li>
-<li><strong>exec.statistics.ndv_accuracy</strong><br>
-Controls the trade-off between NDV statistic computation memory cost and accuracy. Controls the amount of memory for estimates. More memory produces more accurate estimates. The default value should suffice for most scenarios. Default is 20. Range is 0- 30.<br></li>
-<li><strong>exec.statistics.ndv_extrapolation_bf_elements</strong><br>
-Controls the trade-off between NDV statistics computation memory cost and sampling extrapolation accuracy. Relates specifically to SAMPLE. The default value should suffice for most scenarios. Increasing the value requires additional memory. Default is 1000000.<br></li>
-<li><strong>exec.statistics.ndv_extrapolation_bf_fpprobability</strong><br>
-Controls the trade-off between NDV statistics computation memory cost and sampling extrapolation accuracy. Controls the overall accuracy of statistics when using sampling. Default is 10 percent. Range is 0-100.<br></li>
-<li><strong>exec.statistics.deterministic_sampling</strong><br>
-Turns deterministic sampling on and off. Relates specifically to SAMPLE. Default is false.<br></li>
-<li><strong>exec.statistics.tdigest_compression</strong><br>
-Controls the &#39;compression&#39; factor for the TDigest algorithm used for histogram statistics. Controls trade-off between t-digest quantile statistic storage cost and accuracy. Higher values use more groups (clusters) for the t-digest and improve accuracy at the expense of extra storage. Positive integer values in the range [1, 10000].  Default is 100.<br></li>
-</ul>
-
-<h2 id="reserved-keywords">Reserved Keywords</h2>
-
-<p>The ANALYZE TABLE statement introduces the following reserved keywords:  </p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">Analyze  
-Compute  
-Estimate  
-Statistics  
-Sample  
-</code></pre></div>
-<p>If you use any of these words in a Drill query, you must enclose the word in backticks. For example, if you query a table named “estimate,” you would enclose the word &quot;estimate&quot; in backticks, as shown:  </p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">SELECT * FROM `estimate`;
-</code></pre></div>
-<h2 id="analyze-table-performance">ANALYZE TABLE Performance</h2>
-
-<ul>
-<li>After you run the ANALYZE TABLE statement, you can view the profile for ANALYZE in the Drill Web UI. Go to <code>http://&lt;drill-hostname-or-ip&gt;:8047/profiles</code>, and click the ANALYZE TABLE statement for which you want to view the profile.<br></li>
-<li>Should you notice any performance issues, you may want to decrease the value of the <code>planner.slice_target</code> option.<br></li>
-<li>Generating statistics on large data sets can consume time and resources, such as memory and CPU. ANALYZE TABLE can compute statistics on a sample (subset of the data indicated as a percentage) to limit the amount of resources needed for computation. Drill still scans the entire data set, but only computes on the rows selected for sampling. Rows are randomly selected for the sample. Note that the quality of statistics increases with the sample size.<br></li>
-</ul>
-
-<h2 id="queries-that-benefit-from-statistics">Queries that Benefit from Statistics</h2>
-
-<p>Typically, the types of queries that benefit from statistics are those that include:</p>
-
-<ul>
-<li>Grouping<br></li>
-<li>Multi-table joins<br></li>
-<li>Equality predicates on scalar columns<br></li>
-<li>Range predicates (filters) on numeric columns</li>
-</ul>
-
-<h2 id="histograms">Histograms</h2>
-
-<p><strong>Note:</strong> Currently, histograms are supported for numeric columns only.  </p>
-
-<p>Histograms show the distribution of data to determine if data is skewed or normally distributed. Histogram statistics improve the selectivity estimates used by the optimizer to create the most efficient query plans possible. Histogram statistics are useful for range predicates to help determine how many rows belong to a particular range.   </p>
-
-<p>Running the ANALYZE TABLE statement generates equi-depth histogram statistics on each column in a table. Equi-depth histograms distribute distinct column values across buckets of varying widths, with all buckets having approximately the same number of rows. The fixed number of rows per bucket is predetermined by <code>ceil(number_rows/n)</code>, where <code>n</code> is the number of buckets. The number of distinct values in each bucket depends on the distribution of the values in a co [...]
-
-<p>The following diagram shows the column values on the horizontal axis and the individual frequencies (dark blue) and total frequency of a bucket (light blue). In this example, the total number of rows = 64, hence the number of rows per bucket = <code>ceil(64/4)  = 16</code>.  </p>
-
-<p><img src="https://i.imgur.com/imchEyg.png" alt="">  </p>
-
-<p>The following steps are used to determine bucket boundaries:<br>
-1. Determine the number of rows per bucket: ceil(N/m) where m = num buckets.<br>
-2. Sort the data on the column.<br>
-3. Determine bucket boundaries: The start of bucket 0  = min(column), then continue adding individual frequencies until the row limit is reached, which is the end point of the bucket. Continue to the next bucket and repeat the process. The same column value can potentially be at the end point of one bucket and the start point of the next bucket. Also, the last bucket could have slightly fewer values than other buckets.  </p>
-
-<p>For the predicate <code>&quot;WHERE a = 5&quot;</code>, in the example histogram above, you can see that 5 is in the first bucket, which has a range of [1, 7], Using the ‘continuous variable’ nature of histograms, and assuming a uniform distribution within a bucket, we get 16/7 = 2 (approximately).  This is closer to the actual value of 1.</p>
-
-<p>Next, consider the range predicate <code>&quot;WHERE a &gt; 5 AND a &lt;= 16&quot;</code>.  The range spans part of bucket [1, 7] and entire buckets [8, 9], [10, 11] and [12, 16].  The total estimate = (7-5)/7 * 16 + 16 + 16 + 16 = 53 (approximately).  The actual count is 59.</p>
-
-<p><strong>Viewing Histogram Statistics for a Column</strong><br>
-Histogram statistics are generated for each column, as shown:  </p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">qhistogram&quot;:{&quot;category&quot;:&quot;numeric-equi-depth&quot;,&quot;numRowsPerBucket&quot;:150,&quot;buckets&quot;:[0.0,2.0,4.0,7.0,9.0,12.0,15.199999999999978,17.0,19.0,22.0,24.0]
-</code></pre></div>
-<p>In this example, there are 10 buckets. Each bucket contains 150 rows, which is calculated as the number of rows (1500)/number of buckets (10). The list of numbers for the “buckets” property indicates bucket boundaries, with the first bucket starting at 0.0 and ending at 2.0. The end of the first bucket is the start point for the second bucket, such that the second bucket starts at 2.0 and ends at 4.0, and so on for the remainder of the buckets. </p>
-
-<h2 id="limitations">Limitations</h2>
-
-<ul>
-<li>Drill does not cache statistics. </li>
-<li>ANALYZE TABLE runs only on directory-based Parquet tables. </li>
-<li>ANALYZE TABLE cannot do the following:<br>
-
-<ul>
-<li>compute statistics on schema-less file formats, such as text and CSV</li>
-<li>provide up-to-date statistics for operational data due to potential mismatches that can occur between operational updates and manually running ANALYZE TABLE<br></li>
-</ul></li>
-<li><p>Running the ANALYZE TABLE statement against multiple files in which some of the files have null values and others have no null values may return the following generic Drill error, which is not specific to the ANALYZE command:  </p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">Error: SYSTEM ERROR: IllegalStateException: Failure while reading vector. 
- Expected vector class of org.apache.drill.exec.vector.NullableBigIntVector
-but was holding vector class org.apache.drill.exec.vector.IntVector, field= [`o_custkey` (INT:REQUIRED)] 
-
-//If you encounter this error, run the ANALYZE TABLE statement on each file with null values individually instead of running the statement against all the files at once.  
-</code></pre></div></li>
-<li><p>Running the ANALYZE TABLE statement creates the stats file, which changes the directory timestamp. The change of the timestamp automatically  triggers the REFRESH TABLE METADATA command, even when the underlying data has not changed.  </p></li>
-</ul>
-
-<h2 id="examples">EXAMPLES</h2>
-
-<p>These examples use a schema, <code>dfs.drilltestdir</code>, which points to the <code>/drill/testdata</code> directory in the MapR File System. The <code>/drill/testdata</code> directory has the following subdirectories: </p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">/drill/testdata/table_stats/Tpch0.01/parquet
-</code></pre></div>
-<p>The <code>/parquet</code>directory contains a table named “customer.”</p>
-
-<p>Switch schema to <code>dfs.drilltestdir</code>:</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">use dfs.drilltestdir;
-+------+----------------------------------------------+
-|  ok  |                summary                       |
-+------+----------------------------------------------+
-| true | Default schema changed to [dfs.drilltestdir] |
-+------+----------------------------------------------+
-</code></pre></div>
-<p>The following query shows the columns and types of data in the “customer” table:  </p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">apache drill (dfs.drilltestdir)&gt; select * from `table_stats/Tpch0.01/parquet/customer` limit 2;
-+-----------+--------------------+--------------------------------+-------------+-----------------+-----------+--------------+-----------------------------------------------------------------+
-| c_custkey |       c_name       |           c_address            | c_nationkey |     c_phone     | c_acctbal | c_mktsegment |                            c_comment                            |
-+-----------+--------------------+--------------------------------+-------------+-----------------+-----------+--------------+-----------------------------------------------------------------+
-| 1         | Customer#000000001 | IVhzIApeRb ot,c,E              | 15          | 25-989-741-2988 | 711.56    | BUILDING     | to the even, regular platelets. regular, ironic epitaphs nag e  |
-| 2         | Customer#000000002 | XSTf4,NCwDVaWNe6tEgvwfmRchLXak | 13          | 23-768-687-3665 | 121.65    | AUTOMOBILE   | l accounts. blithely ironic theodolites integrate boldly: caref |
-+-----------+--------------------+--------------------------------+-------------+-----------------+-----------+--------------+-----------------------------------------------------------------+
-</code></pre></div>
-<h3 id="enabling-statistics-for-query-planning">Enabling Statistics for Query Planning</h3>
-
-<p>You can run the ANALYZE TABLE statement at any time to compute statistics; however, you must enable the following option if you want Drill to use statistics during query planning:</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">set `planner.statistics.use`=true;
-+------+---------------------------------+
-|  ok  |             summary             |
-+------+---------------------------------+
-| true | planner.statistics.use updated. |
-+------+---------------------------------+
-</code></pre></div>
-<h3 id="computing-statistics">Computing Statistics</h3>
-
-<p>You can compute statistics on directories with Parquet data or on Parquet tables.</p>
-
-<p>You can run the ANALYZE TABLE statement on a subset of columns to generate statistics for those columns only, as shown:</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">analyze table `table_stats/Tpch0.01/parquet/customer` compute statistics (c_custkey, c_nationkey, c_acctbal);
-+----------+---------------------------+
-| Fragment | Number of records written |
-+----------+---------------------------+
-| 0_0      | 3                         |
-+----------+---------------------------+
-</code></pre></div>
-<p>Or, you can run the ANALYZE TABLE statement on the entire table/directory if you want statistics generated for all the columns:</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">analyze table `table_stats/Tpch0.01/parquet/customer` compute statistics;
-+----------+---------------------------+
-| Fragment | Number of records written |
-+----------+---------------------------+
-| 0_0      | 8                         |
-+----------+---------------------------+
-</code></pre></div>
-<h3 id="computing-statistics-on-a-sample">Computing Statistics on a SAMPLE</h3>
-
-<p>You can also run ANALYZE TABLE on a percentage of the data using the SAMPLE command, as shown:</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">ANALYZE TABLE `table_stats/Tpch0.01/parquet/customer` COMPUTE STATISTICS SAMPLE 50 PERCENT;
-+----------+---------------------------+
-| Fragment | Number of records written |
-+----------+---------------------------+
-| 0_0      | 8                         |
-+----------+---------------------------+
-</code></pre></div>
-<h3 id="storing-statistics">Storing Statistics</h3>
-
-<p>When you generate statistics, a statistics directory (<code>.stats.drill</code>) is created with a JSON file that contains the statistical data.</p>
-
-<p>For tables, the <code>.stats.drill</code> directory is nested within the table directory. For example, if you ran ANALYZE TABLE against a table named “customer,” you could access the statistic file in <code>/customer/.stats.drill</code>. The JSON file is stored in the <code>.stats.drill</code> directory.</p>
-
-<p>For directories, a new directory is written with the same name as the directory on which you ran ANALYZE TABLE, appended by <code>.stats.drill</code>. For example, if you ran ANALYZE TABLE against a directory named “customer,” you could access the JSON statistics file in the new <code>customer.stats.drill</code> directory.</p>
-
-<p>You can query the statistics file to see the statistics generated for each column, as shown in the following two examples:</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">select * from `table_stats/Tpch0.01/parquet/customer/.stats.drill`;
-+--------------------+----------------------------------------------------------------------------------+
-| statistics_version |                                   directories                                    |
-+--------------------+----------------------------------------------------------------------------------+
-| v1                 | [{&quot;computed&quot;:&quot;2019-04-30&quot;,&quot;columns&quot;:[{&quot;column&quot;:&quot;`c_custkey`&quot;,&quot;majortype&quot;:{&quot;type&quot;:&quot;INT&quot;,&quot;mode&quot;:&quot;REQUIRED&quot;},&quot;schema&quot;:1.0,&quot;rowcount&quot;:1500.0,&quot;nonnullrowcount&quot;:1500.0,&quot;ndv&quot;:1500,&quot;avgwidth&quot;:4.0,&quot;histogram&quot;:{&quot;category&quot;:&quot;numeric-equi-depth&quot;,&quot;numRowsPerBucket&quot;:150,&quot;buckets&quot;:[2. [...]
-+--------------------+--------------------------------------------------------------------------------------+  
-
-SELECT t.directories.columns[0].ndv as ndv, t.directories.columns[0].rowcount as rc, t.directories.columns[0].nonnullrowcount AS nnrc, t.directories.columns[0].histogram as histogram FROM `table_stats/Tpch0.01/parquet/customer/.stats.drill` t;
-+------+--------+--------+----------------------------------------------------------------------------------+
-| ndv  |   rc   |  nnrc  |                                    histogram                                     |
-+------+--------+--------+----------------------------------------------------------------------------------+
-| 1500 | 1500.0 | 1500.0 | {&quot;category&quot;:&quot;numeric-equi-depth&quot;,&quot;numRowsPerBucket&quot;:150,&quot;buckets&quot;:[2.0,149.0,299.0,450.99999999999994,599.0,749.0,900.9999999999999,1049.0,1199.0,1349.0,1500.0]}             |
-+------+--------+--------+----------------------------------------------------------------------------------+
-</code></pre></div>
-<h3 id="dropping-statistics">Dropping Statistics</h3>
-
-<p>If you want to compute statistics on a table or directory that you have already run the ANALYZE TABLE statement against, you must first drop the statistics before you can run ANALYZE TABLE statement on the table again.</p>
-
-<p>The following example demonstrates how to drop statistics on a table:</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">DROP TABLE `table_stats/Tpch0.01/parquet/customer/.stats.drill`;
-+------+--------------------------------------------------------------------+
-|  ok  |                              summary                               |
-+------+--------------------------------------------------------------------+
-| true | Table [table_stats/Tpch0.01/parquet/customer/.stats.drill] dropped |
-+------+--------------------------------------------------------------------+
-</code></pre></div>
-<p>The following example demonstrates how to drop statistics on a directory, assuming that “customer” is a directory that contains Parquet files:</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">DROP TABLE `table_stats/Tpch0.01/parquet/customer.stats.drill`;
-+-------+------------------------------------+
-|  ok   |            summary                 |
-+-------+------------------------------------+
-| true  | Table [customer.stats.drill] dropped|
-+-------+------------------------------------+
-</code></pre></div>
-<p>When you drop statistics, the statistics directory no longer exists for the table:</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">select * from `table_stats/Tpch0.01/parquet/customer/.stats.drill`;
-
-Error: VALIDATION ERROR: From line 1, column 15 to line 1, column 66: Object &#39;table_stats/Tpch0.01/parquet/customer/.stats.drill&#39; not found  
-[Error Id: 886003ca-c64f-4e7d-b4c5-26ee1ca617b8 ] (state=,code=0)
-</code></pre></div>
-<h2 id="troubleshooting">Troubleshooting</h2>
-
-<p>Typical errors you may get when running ANALYZE TABLE result from running the statement against an individual file or against a data source other than Parquet, as shown in the following examples:</p>
-
-<p><strong>Running ANALYZE TABLE on a file.</strong>  </p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">ANALYZE TABLE `/parquet/nation.parquet` COMPUTE STATISTICS;
-+--------+----------------------------------------------------------------------------------+
-|   ok   |                                     summary                                      |
-+--------+----------------------------------------------------------------------------------+
-| false  | Table /parquet/nation.parquet is not supported by ANALYZE. Support is currently limited to directory-based Parquet tables. |
-+--------+----------------------------------------------------------------------------------+
-</code></pre></div>
-<p><strong>Running ANALYZE TABLE on a data source other than Parquet.</strong></p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">ANALYZE TABLE nation1_json COMPUTE STATISTICS;
-+--------+----------------------------------------------------------------------------------+
-|   ok   |                                     summary                                      |
-+--------+----------------------------------------------------------------------------------+
-| false  | Table nation1_json is not supported by ANALYZE. Support is currently limited to directory-based Parquet tables. |
-+--------+----------------------------------------------------------------------------------+
-</code></pre></div>
-    
-      
-        <div class="doc-nav">
-  
-  <span class="previous-toc"><a href="/docs/supported-sql-commands/">← Supported SQL Commands</a></span><span class="next-toc"><a href="/docs/set/">SET →</a></span>
-</div>
-
-    
-    </div>
-  </div>
-</div>
-
-  </div>
-  <p class="push"></p>
-<div id="footer" class="mw">
-<div class="wrapper">
-Copyright © 2012-2014 The Apache Software Foundation, licensed under the Apache License, Version 2.0.<br>
-Apache and the Apache feather logo are trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.<br/><br/>
-</div>
-</div>
-
-  <script>
-(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
-(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
-m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
-})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
-
-ga('create', 'UA-53379651-1', 'auto');
-ga('send', 'pageview');
-</script>
-<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-548b2caa33765e8d" async="async"></script>
-</body>
-</html>
diff --git a/docs/configuring-drill-to-use-spnego-for-http-authentication/index.html b/docs/configuring-drill-to-use-spnego-for-http-authentication/index.html
index 8cbe2c4..999b745 100644
--- a/docs/configuring-drill-to-use-spnego-for-http-authentication/index.html
+++ b/docs/configuring-drill-to-use-spnego-for-http-authentication/index.html
@@ -1435,8 +1435,8 @@
 
 <p>1-Go to About &gt; Config, and accept the warnings.<br>
 2-Navigate to the network settings.<br>
-3-Set network.negotiate-auth.delegation-uris to “http://,<a href="https://%E2%80%9D">https://”</a>.<br>
-4-Set network.negotiate-auth.trusted-uris to “http://,<a href="https://%E2%80%9D">https://”</a>.  </p>
+3-Set network.negotiate-auth.delegation-uris to “http://,https://”.<br>
+4-Set network.negotiate-auth.trusted-uris to “http://,https://”.  </p>
 
 <h3 id="chrome">Chrome</h3>
 
diff --git a/docs/date-time-functions-and-arithmetic/index.html b/docs/date-time-functions-and-arithmetic/index.html
index 26f9b72..0a23a57 100644
--- a/docs/date-time-functions-and-arithmetic/index.html
+++ b/docs/date-time-functions-and-arithmetic/index.html
@@ -1747,15 +1747,15 @@ SELECT DATE_PART(&#39;hour&#39;, &#39;23:14:30.076&#39;) FROM (VALUES(1));
 
 <p><code>DATE_SUB(keyword literal, integer)</code><br>
 <code>DATE_SUB(keyword literal, interval expr)</code><br>
-<code>DATE_ADD(column, integer)</code><br>
+<code>DATE_SUB(column, integer)</code><br>
 <code>DATE_SUB(column, interval expr)</code>  </p>
 
 <p><em>keyword</em> is the word date, time, or timestamp.<br>
 <em>literal</em> is a date, time, or timestamp literal. For example, a date in yyyy-mm-dd format enclosed in single quotation marks.<br>
-<em>integer</em> is a number of days to subtract from the date, time, or timestamp.
+<em>integer</em> is a number of days to subtract from the date, time, or timestamp.<br>
 <em>column</em> is date, time, or timestamp data in the data source.<br>
 <em>interval</em> is the keyword interval.<br>
-<em>expr</em> is an interval expression, such as the name of a data source column containing interval data.</p>
+<em>expr</em> is an interval expression, such as the name of a data source column containing interval data.  </p>
 
 <h3 id="date_sub-examples">DATE_SUB Examples</h3>
 
diff --git a/docs/drill-iceberg-metastore/index.html b/docs/drill-iceberg-metastore/index.html
index f33cd1e..35a0674 100644
--- a/docs/drill-iceberg-metastore/index.html
+++ b/docs/drill-iceberg-metastore/index.html
@@ -1337,15 +1337,15 @@
 
     </div>
 
-     Jan 31, 2020
+     Mar 3, 2020
 
     <link href="/css/docpage.css" rel="stylesheet" type="text/css">
 
     <div class="int_text" align="left">
       
-        <p>Drill uses Iceberg Metastore implementation based on <a href="http://iceberg.incubator.apache.org">Iceberg tables</a>. For Drill 1.17,
- this is default Drill Metastore implementation. For details on how to configure Iceberg Metastore implementation and
- its option descriptions, please refer to <a href="https://github.com/apache/drill/blob/master/metastore/iceberg-metastore/README.md">Iceberg Metastore docs</a>.</p>
+        <p>Drill&#39;s Metastore allows a variety of storage engines. Drill ships with a storage engine based on
+ <a href="http://iceberg.incubator.apache.org">Iceberg tables</a>. For Drill 1.17, this is default Drill Metastore
+ implementation.</p>
 
 <div class="admonition note">
   <p class="first admonition-title">Note</p>
@@ -1358,21 +1358,23 @@ If the file system does not support atomic rename, it could lead to inconsistenc
 
 <h3 id="iceberg-tables-location">Iceberg Tables Location</h3>
 
-<p>Iceberg tables will reside on the file system in the location based on
-Iceberg Metastore base location <code>drill.metastore.iceberg.location.base_path</code> and component specific location.
-If Iceberg Metastore base location is <code>/drill/metastore/iceberg</code>
-and tables component location is <code>tables</code>. Iceberg table for tables component
-will be located in <code>/drill/metastore/iceberg/tables</code> folder.</p>
+<p>Iceberg is essentially a file system within a file. The Iceberg table is stored in a file system. In the tutorial we
+ stored the Metastore in your local file system. Drill is a distributed query engine, so production deployments MUST
+ store the Metastore on DFS such as HDFS.</p>
 
-<p>Metastore metadata will be stored inside Iceberg table location provided
-in the configuration file. Drill table metadata location will be constructed
-based on specific component storage keys. For example, for <code>tables</code> component,
-storage keys are storage plugin, workspace and table name: unique table identifier in Drill.</p>
+<p>Iceberg Metastore configuration can be set in <code>drill-metastore-distrib.conf</code> or <code>drill-metastore-override.conf</code> files.
+The default configuration is indicated in <code>drill-metastore-module.conf</code> file.</p>
 
-<p>Assume Iceberg table location is <code>/drill/metastore/iceberg/tables</code>, metadata for the table
-<code>dfs.tmp.nation</code> will be stored in the <code>/drill/metastore/iceberg/tables/dfs/tmp/nation</code> folder.</p>
+<p>Within the Metastore directory, the Metastore stores the data for each table as a set of records within a single Iceberg table.</p>
 
-<p>Example of base Metastore configuration file <code>drill-metastore-override.conf</code>, where Iceberg tables will be stored in
+<p>Iceberg tables will reside on the file system in the location based on Iceberg Metastore base location
+ <code>drill.metastore.iceberg.location.base_path</code> configuration property and component specific location.
+Table metadata resides in the <code>${drill.metastore.iceberg.location.base_path}/tables</code> directory.</p>
+
+<p>If you ran through the <a href="/docs/using-drill-metastore/#tutorial">Tutorial</a>, Metastore files are stored in <code>/home/username/drill/metastore/iceberg/tables</code>.
+If you inspect this directory you will see the following directories <code>my-dfs/tmp/lineitem/</code>.</p>
+
+<p>Example of base Metastore configuration file <code>drill-metastore-override.conf</code>, where Iceberg tables are stored in
  hdfs:</p>
 <div class="highlight"><pre><code class="language-text" data-lang="text">drill.metastore.iceberg: {
   config.properties: {
@@ -1385,19 +1387,6 @@ storage keys are storage plugin, workspace and table name: unique table identifi
   }
 }
 </code></pre></div>
-<h3 id="metadata-storage-format">Metadata Storage Format</h3>
-
-<p>Iceberg tables support data storage in three formats: Parquet, Avro, ORC. Drill metadata will be stored in Parquet files.
-This format was chosen over others since it is column oriented and efficient in terms of disk I/O when specific
-columns need to be queried.</p>
-
-<p>Each Parquet file will hold information for one partition. Partition keys will depend on Metastore
-component characteristics. For example, for tables component, partitions keys are storage plugin, workspace,
-table name and metadata key.</p>
-
-<p>Parquet files name will be based on UUID to ensure uniqueness. If somehow collision occurs, modify operation
-in Metastore will fail.</p>
-
 <h3 id="iceberg-metadata-expiration">Iceberg metadata expiration</h3>
 
 <p>Iceberg table generates metadata for each modification operation:
diff --git a/docs/drill-metastore/index.html b/docs/drill-metastore/index.html
index 53ffd53..e59a430 100644
--- a/docs/drill-metastore/index.html
+++ b/docs/drill-metastore/index.html
@@ -1335,7 +1335,7 @@
 
     </div>
 
-     
+     Mar 3, 2020
 
     <link href="/css/docpage.css" rel="stylesheet" type="text/css">
 
diff --git a/docs/img/1_vbImport.png b/docs/img/1_vbImport.png
old mode 100644
new mode 100755
diff --git a/docs/img/3_vbNetwork.png b/docs/img/3_vbNetwork.png
old mode 100644
new mode 100755
diff --git a/docs/img/4_vbMaprSetting.png b/docs/img/4_vbMaprSetting.png
old mode 100644
new mode 100755
diff --git a/docs/img/drill-bin.png b/docs/img/drill-bin.png
old mode 100644
new mode 100755
diff --git a/docs/img/drill-directory.png b/docs/img/drill-directory.png
old mode 100644
new mode 100755
diff --git a/docs/img/odbc-configure1.png b/docs/img/odbc-configure1.png
old mode 100644
new mode 100755
diff --git a/docs/img/odbc-configure2.png b/docs/img/odbc-configure2.png
old mode 100644
new mode 100755
diff --git a/docs/img/odbc-configure3.png b/docs/img/odbc-configure3.png
old mode 100644
new mode 100755
diff --git a/docs/img/odbc-drivers.png b/docs/img/odbc-drivers.png
old mode 100644
new mode 100755
diff --git a/docs/img/odbc-mapr-drill-apps.png b/docs/img/odbc-mapr-drill-apps.png
old mode 100644
new mode 100755
diff --git a/docs/img/odbc-test.png b/docs/img/odbc-test.png
old mode 100644
new mode 100755
diff --git a/docs/img/odbc-user-dsn.png b/docs/img/odbc-user-dsn.png
old mode 100644
new mode 100755
diff --git a/docs/img/sqlline1.png b/docs/img/sqlline1.png
old mode 100644
new mode 100755
diff --git a/docs/persistent-configuration-storage/index.html b/docs/persistent-configuration-storage/index.html
index f9ede0e..ae48ed1 100644
--- a/docs/persistent-configuration-storage/index.html
+++ b/docs/persistent-configuration-storage/index.html
@@ -1372,31 +1372,23 @@ modes:</p>
 
 <h2 id="configuring-zookeeper-pstore">Configuring ZooKeeper PStore</h2>
 
-<p>Drill uses ZooKeeper to
-store persistent configuration data. The ZooKeeper PStore provider stores all
-of the persistent configuration data in ZooKeeper except for query profile
-data. The ZooKeeper PStore provider offloads query profile data to the Drill log directory on Drill nodes. </p>
+<p>Drill uses ZooKeeper to store persistent configuration data. The ZooKeeper PStore provider stores all of the persistent configuration data in ZooKeeper except for query profile data. By default, Drill stores query profile data to the Drill log directory on Drill nodes. </p>
 
-<p>You need to configure the ZooKeeper PStore to use the Drill Web UI when running multiple Drillbits. </p>
+<p>If you are running multiple drillbits, it is likely that the log folder is not shared between them. In this case each drillbit will only have access to profiles for the queries where it was the foreman. To make query profiles visible globally, configure drill to use a shared location for query profiles by setting the <code>drill.exec.sys.store.provider.zk.blobroot</code> in <code>drill-override.conf</code>.</p>
 
-<h3 id="why-configure-the-zookeeper-pstore">Why Configure the ZooKeeper PStore</h3>
+<p><strong>Examples</strong></p>
 
-<p>When you run multiple DrillBits, configure a specific location for ZooKeeper to offload the query profile data instead of accepting the default temporary location. All Drillbits in the cluster cannot access the temporary location. Consequently, when you do not configure a location on the distributed file system, queries sent to some Drillbits do not appear in the Completed section of the Drill Web UI. Also, some Running links that you click to get information about running queries are [...]
-
-<h3 id="how-to-configure-the-zookeeper-pstore">How to Configure the ZooKeeper PStore</h3>
-
-<p>To configure the ZooKeeper PStore, set the <code>sys.store.provider.zk.blobroot</code> property in the <code>drill.exec</code>
-block in <code>&lt;drill_installation_directory&gt;/conf/drill-override.conf</code> on each
-Drill node and then restart the Drillbit service.</p>
-
-<p><strong>Example</strong></p>
+<p>Store query profiles on HDFS:</p>
+<div class="highlight"><pre><code class="language-text" data-lang="text">drill.exec: {
+  sys.store.provider.zk.blobroot: &quot;hdfs:///apps/drill/pstore/&quot;
+}
+</code></pre></div>
+<p>Store query profiles on Amazon S3:</p>
 <div class="highlight"><pre><code class="language-text" data-lang="text">drill.exec: {
- cluster-id: &quot;my_cluster_com-drillbits&quot;,
- zk.connect: &quot;&lt;zkhostname&gt;:&lt;port&gt;&quot;,
- sys.store.provider.zk.blobroot: &quot;hdfs:///apps/drill/pstore/&quot;
+  sys.store.provider.zk.blobroot: &quot;s3a://drill-query-profiles&quot;
 }
 </code></pre></div>
-<p><a href="/docs/starting-drill-in-distributed-mode/">Restart the Drillbit</a>.</p>
+<p>Changes will take effect when you <a href="/docs/starting-drill-in-distributed-mode/">Restart the Drillbit</a>.</p>
 
 <h2 id="configuring-hbase-for-persistent-configuration-storage">Configuring HBase for Persistent Configuration Storage</h2>
 
diff --git a/docs/rest-api-introduction/index.html b/docs/rest-api-introduction/index.html
index 0e9723e..db2cbd8 100644
--- a/docs/rest-api-introduction/index.html
+++ b/docs/rest-api-introduction/index.html
@@ -1343,7 +1343,7 @@
 
     <div class="int_text" align="left">
       
-        <p>The Drill REST API provides programmatic access to Drill through the <a href="/docs/starting-the-web-console/">Web UI</a>. Using HTTP requests, you can run queries, perform storage plugin tasks, such as creating a storage plugin, obtain profiles of queries, and get current memory metrics. </p>
+        <p>The Drill REST API provides programmatic access to Drill through the <a href="/docs/starting-the-web-ui/">Web UI</a>. Using HTTP requests, you can run queries, perform storage plugin tasks, such as creating a storage plugin, obtain profiles of queries, and get current memory metrics. </p>
 
 <p>AN HTTP request uses the familiar Web UI URI:</p>
 
@@ -1811,6 +1811,64 @@ Enclose option values of kind STRING in double quotation marks.
 
  -->
 
+<h2 id="authenticating-rest-api-requests">Authenticating REST API requests</h2>
+
+<p>If drill has authentication enabled, you will have to supply credentials when you use the REST API.</p>
+
+<h3 id="basic-authentication">Basic authentication</h3>
+
+<p>Apache Drill versions 1.18 and higher support HTTP&#39;s &quot;Basic&quot; authentication system, sending the username &amp; password in the <code>Authorization</code> header, encoded to base64 and joined using <code>:</code>.</p>
+
+<p>Basic authentication support is controlled using <code>drill-override.conf</code>.  Add the string <code>&quot;BASIC&quot;</code> to <code>http.auth.mechanisms</code>.  Note that if the field is not currently set, it defaults to having <code>&quot;FORM&quot;</code> in it, so you probably want to include <code>&quot;FORM&quot;</code> if you set this field, so that Web UI users can still use the login form.</p>
+
+<p>Example:</p>
+<div class="highlight"><pre><code class="language-text" data-lang="text">http: {
+    enabled: true,
+    auth: {
+        # Http Auth mechanisms to configure. If not provided but user.auth is enabled
+        # then default value is [&quot;FORM&quot;].
+        mechanisms: [&quot;BASIC&quot;, &quot;FORM&quot;]
+    }
+}
+</code></pre></div>
+<p>To authenticate requests using Basic authentication, send the appropriate <code>Authorization</code> header with each request using your HTTP client&#39;s options:</p>
+<div class="highlight"><pre><code class="language-text" data-lang="text">curl -kv \
+       -u drilluser:drillpassword  \
+       -X POST \
+       -H &quot;Content-Type: application/json&quot; \
+       -d &#39;{&quot;queryType&quot;:&quot;SQL&quot;, &quot;query&quot;: &quot;select * from sys.version&quot;}&#39; \
+       http://localhost:8047/query.json
+</code></pre></div>
+<h3 id="form-based-authentication">Form based authentication</h3>
+
+<p>Form based authentication is enabled or disabled using <code>drill-override.conf</code>.  Add the string <code>&quot;FORM&quot;</code> to <code>http.auth.mechanisms</code> if it is set.  If <code>http.auth.mechanisms</code> is not set, <code>&quot;FORM&quot;</code> is enabled by default.</p>
+
+<p>Example:</p>
+<div class="highlight"><pre><code class="language-text" data-lang="text">http: {
+    enabled: true,
+    auth: {
+        # Http Auth mechanisms to configure. If not provided but user.auth is enabled
+        # then default value is [&quot;FORM&quot;].
+        mechanisms: [&quot;BASIC&quot;, &quot;FORM&quot;]
+    }
+}
+</code></pre></div>
+<p>To authenticate requests using form-based authentication, you must use an HTTP client that saves cookies between requests.  Simulate a form submission to the same URL used in the Web UI / Console (<code>/j_security_check</code>)</p>
+<div class="highlight"><pre><code class="language-text" data-lang="text">curl -X POST \
+    -H &quot;Content-Type: application/x-www-form-urlencoded&quot; \
+    -k -c cookies.txt -s \
+    -d &quot;j_username=drilluser&quot; \
+    -d &quot;j_password=drillpassword&quot; \
+    http://localhost:8047/j_security_check
+</code></pre></div>
+<p>In subsequent requests, use the cookie returned from that request:</p>
+<div class="highlight"><pre><code class="language-text" data-lang="text">curl -kv \
+       -b cookies.txt  \
+       -X POST \
+       -H &quot;Content-Type: application/json&quot; \
+       -d &#39;{&quot;queryType&quot;:&quot;SQL&quot;, &quot;query&quot;: &quot;select * from sys.version&quot;}&#39; \
+       http://localhost:8047/query.json
+</code></pre></div>
     
       
         <div class="doc-nav">
diff --git a/docs/supported-sql-commands/index.html b/docs/supported-sql-commands/index.html
index 6e1aad6..ae87a2a 100644
--- a/docs/supported-sql-commands/index.html
+++ b/docs/supported-sql-commands/index.html
@@ -1361,7 +1361,7 @@ with their descriptions and example syntax:  </p>
 <tr>
 <td><a href="/docs/analyze-table-refresh-metadata">ANALYZE TABLE REFRESH METADATA</a></td>
 <td>Computes and stores the table schema and table statistics to the Drill Metastore.</td>
-<td>ANALYZE TABLE [table_name] [COLUMNS {(col1, col2, ...) &#124; NONE}] REFRESH METADATA [&#39;level&#39; LEVEL] [{COMPUTE &#124; ESTIMATE} &#124; STATISTICS [(column1, column2, ...)] [ SAMPLE number PERCENT ]]</td>
+<td>ANALYZE TABLE [table_name &#124; table({table function name}(parameters))] [COLUMNS {(col1, col2, ...) &#124; NONE}] REFRESH METADATA [&#39;level&#39; LEVEL] [{COMPUTE &#124; ESTIMATE} &#124; STATISTICS [(column1, column2, ...)] [ SAMPLE number PERCENT ]]</td>
 </tr>
 <tr>
 <td><a href="/docs/analyze-table-compute-statistics">ANALYZE TABLE COMPUTE STATISTICS</a></td>
diff --git a/docs/using-drill-metastore/index.html b/docs/using-drill-metastore/index.html
index 7672032..c034043 100644
--- a/docs/using-drill-metastore/index.html
+++ b/docs/using-drill-metastore/index.html
@@ -1337,7 +1337,7 @@
 
     </div>
 
-     Jan 31, 2020
+     Mar 3, 2020
 
     <link href="/css/docpage.css" rel="stylesheet" type="text/css">
 
@@ -1352,6 +1352,44 @@ Because the Metastore is in Beta, the SQL commands and Metastore formats may cha
   <p class="last">In Drill 1.17, this feature is supported for Parquet tables only and is disabled by default.  </p>
 </div></p>
 
+<h2 id="drill-metastore-introduction">Drill Metastore introduction</h2>
+
+<p>One of the main advantages of Drill is schema-on-read. But Drill can’t handle some cases with this approach, there
+ are the issues related to schema evolution or ambiguous schema.</p>
+
+<p>Significant benefits of schema-aware execution:</p>
+
+<ul>
+<li>At Planning time:
+
+<ul>
+<li>Better scope for planning optimizations.</li>
+<li>Proper estimation of column widths since types are known, hence more accurate costing.</li>
+<li>Graceful early exit if certain data type validations fail.</li>
+</ul></li>
+<li>At Runtime:
+
+<ul>
+<li><code>SchemaChange</code> exceptions avoidance. All minor fragments will have a common understanding of the schema.</li>
+</ul></li>
+</ul>
+
+<p>Reading the data along with its statistics metadata helps to build more efficient plans and optimize query execution:</p>
+
+<ul>
+<li>Crucial for optimal join planning, 2-phase aggregation vs 1-phase aggregation planning, selectivity estimation of filter conditions, parallelization decisions.</li>
+</ul>
+
+<p>Taking into account the above points, existing query processing can be improved by:</p>
+
+<ul>
+<li>storing table schema and reusing it;</li>
+<li>collecting, storing and reusing table statistics to improve query planning.</li>
+</ul>
+
+<p>One of the main steps to resolve all these goals is providing the framework for metadata management named hereafter
+ as Drill Metastore.</p>
+
 <h2 id="enabling-drill-metastore">Enabling Drill Metastore</h2>
 
 <p>To use the Drill Metastore, you must enable it at the session or system level with one of the following commands:</p>
@@ -1362,10 +1400,10 @@ ALTER SYSTEM SET `metastore.enabled` = true;
 
 <h2 id="computing-and-storing-table-metadata-to-drill-metastore">Computing and storing table metadata to Drill Metastore</h2>
 
-<p>Once you enable the Metastore, the next step is to populate it with data. Drill can query a table whether that table
- has a Metastore entry or not. (If you are familiar with Hive, then you know that Hive requires that all tables have
- Hive Metastore entries before you can query them.) In Drill, only add data to the Metastore when doing so improves
- query performance. In general, large tables benefit from statistics more than small tables do.</p>
+<p>Once you enable the Metastore, the next step is to populate it with data. Metastore entries are optional. If you
+ query a table without a Metastore entry, Drill works with that table just as if the Metastore was disabled. In Drill,
+ only add data to the Metastore when doing so improves query performance. In general, large tables benefit from
+ statistics more than small tables do.</p>
 
 <p>Unlike Hive, Drill does not require you to declare a schema. Instead, Drill infers the schema by scanning your table 
  in the same way as it is done during regular select and computes some metadata like <code>MIN</code> / <code>MAX</code> column values and
@@ -1375,54 +1413,79 @@ ALTER SYSTEM SET `metastore.enabled` = true;
 
 <h2 id="configuration">Configuration</h2>
 
-<p>Default Metastore configuration is defined in <code>drill-metastore-default.conf</code> file.
-It can be overridden in <code>drill-metastore-override.conf</code>. Distribution configuration can be
-indicated in <code>drill-metastore-distrib.conf</code>.</p>
+<p>To configure the Metastore, create <code>$DRILL_HOME/conf/drill-metastore-override.conf</code> file.
+ This is a HOCON-format file, just like <code>drill-override.conf</code>. All Metastore configuration properties should reside in
+ <code>drill.metastore</code> namespace.</p>
+
+<h3 id="metastore-implementations">Metastore Implementations</h3>
 
-<p>All configuration properties should reside in <code>drill.metastore</code> namespace.
-Metastore implementation based on class implementation config property <code>drill.metastore.implementation.class</code>.
+<p>Drill Metastore offers an API that allows for any number of implementations. See
+ <a href="https://github.com/apache/drill/blob/master/metastore/metastore-api/README.md">metastore-api module docs</a> for a description of the API.</p>
+
+<p>The default implementation is the <a href="/docs/drill-iceberg-metastore">Iceberg Metastore</a> based on
+ <a href="http://iceberg.incubator.apache.org">Iceberg tables</a> that provides support of transactions and concurrent writes. It
+ resides on the file system specified in Metastore configuration.</p>
+
+<p>To specify custom Metastore implementation, place the JAR which has the implementation of
+ <code>org.apache.drill.metastore.Metastore</code> interface into classpath and indicate custom class in the
+ <code>drill.metastore.implementation.class</code> config property.
 The default value is the following:</p>
 <div class="highlight"><pre><code class="language-text" data-lang="text">drill.metastore: {
   implementation.class: &quot;org.apache.drill.metastore.iceberg.IcebergMetastore&quot;
 }
 </code></pre></div>
-<p>Note, that currently out of box Iceberg Metastore is available and is the default one. Though any custom
- implementation can be added by placing the JAR into classpath which has the implementation of
- <code>org.apache.drill.metastore.Metastore</code> interface and indicating custom class in the <code>drill.metastore.implementation.class</code>.</p>
-
 <h3 id="metastore-components">Metastore Components</h3>
 
-<p>Metastore can store metadata for various components: tables, views, etc.
-Current implementation provides fully functioning support for tables component.
-Views component support is not implemented but contains stub methods to show
-how new Metastore components like UDFs, storage plugins, etc. can be added in the future.</p>
+<p>The Drill 1.17 version of the Metastore stores metadata about tables: the table schema and table statistics.
+The Metastore is an active subproject of Drill, See <a href="https://issues.apache.org/jira/browse/DRILL-6552">DRILL-6552</a> for more information.</p>
 
-<h3 id="metastore-tables">Metastore Tables</h3>
+<h3 id="table-metadata">Table Metadata</h3>
 
-<p>Metastore Tables component contains metadata about Drill tables, including general information, as well as
-information about table segments, files, row groups, partitions.</p>
+<p>Table Metadata includes the following info:</p>
 
-<p>Full table metadata consists of two major concepts: general information and top-level segments metadata.
-Table general information contains basic table information and corresponds to the <code>BaseTableMetadata</code> class.</p>
+<ul>
+<li>Table schema, column name, type, nullability, scale and precision if available, and other info. For details please
+refer to <a href="/docs/create-or-replace-schema/#usage-notes">Schema provisioning</a>.</li>
+<li>Table statistics are of two kinds:
 
-<p>A table can be non-partitioned and partitioned. Non-partitioned tables have only one top-level segment 
-which is called default (<code>MetadataInfo#DEFAULT_SEGMENT_KEY</code>). Partitioned tables may have several top-level segments.
-Each top-level segment can include metadata about inner segments, files, row groups, and partitions.</p>
+<ul>
+<li>Summary statistics: <code>MIN</code>, <code>MAX</code>, <code>NULL count</code>, etc.</li>
+<li>Detail statistics: histograms, <code>NDV</code>, etc.</li>
+</ul></li>
+</ul>
 
-<p>A unique table identifier in Metastore Tables is a combination of storage plugin, workspace, and table name.
-Table metadata inside is grouped by top-level segments, unique identifier of the top-level segment and its metadata
-is storage plugin, workspace, table name, and metadata key.</p>
+<p>Schema information and summary statistics also computed and stored for table segments, files, row groups and partitions.</p>
+
+<p>The detailed metadata schema is described <a href="https://github.com/apache/drill/tree/master/metastore/metastore-api#metastore-tables">here</a>.
+You can try out the metadata to get a sense of what is available, by using the
+ <a href="/docs/using-drill-metastore/#inspect-the-metastore-using-information_schema-tables">Inspect the Metastore using <code>INFORMATION_SCHEMA</code> tables</a> tutorial.</p>
+
+<p>Every table described by the Metastore may be a bare file or one or more files that reside in one or more directories.</p>
+
+<p>If a table consists of a single directory or file, then it is non-partitioned. The single directory can contain any number of files.
+Larger tables tend to have subdirectories. Each subdirectory is a partition and such a table are called &quot;partitioned&quot;.
+Please refer to <a href="/docs/using-drill-metastore/#exposing-drill-metastore-metadata-through-information_schema-tables">Exposing Drill Metastore metadata through <code>INFORMATION_SCHEMA</code> tables</a>
+ for information, how to query partitions and segments metadata.</p>
+
+<p>A traditional database divides tables into schemas and tables.
+Drill can connect to any number of data sources, each of which may have its own schema.
+As a result, the Metastore labels tables with a combination of (plugin configuration name, workspace name, table name).
+Note that if before renaming any of these items, you must delete table&#39;s Metadata entry and recreate it after renaming.</p>
 
 <h3 id="related-session-system-options">Related Session/System Options</h3>
 
-<p>The following options are set via <code>ALTER SYSTEM SET</code>, or <code>ALTER SESSION SET</code> or via the Drill Web console.</p>
+<p>The Metastore provides a number of options to fit your environment. The default options are fine in most cases.
+The options are set via <code>ALTER SYSTEM SET</code>, <code>SET</code> (it is an alias for <code>ALTER SESSION SET</code>) or the Drill Web console.</p>
+
+<p>In general, admin should set the options via <code>ALTER SYSTEM</code> so that they take effect for all users.
+Setting options at the session level is an advanced topic.</p>
 
 <ul>
 <li><strong>metastore.enabled</strong>
 Enables Drill Metastore usage to be able to store table metadata during ANALYZE TABLE commands execution and to be able
 to read table metadata during regular queries execution or when querying some INFORMATION_SCHEMA tables. Default is <code>false</code>.</li>
 <li><strong>metastore.metadata.store.depth_level</strong>
-Specifies the maximum level of depth for collecting metadata. Same options as the <em>level</em> option above. Default is <code>&#39;ALL&#39;</code>.</li>
+Specifies the most-specific metadata kind to be collected with more general metadata kinds. Same options as the <em>level</em> option above. Default is <code>&#39;ALL&#39;</code>.</li>
 <li><strong>metastore.retrieval.retry_attempts</strong>
 If you run the <code>ANALYZE TABLE</code> command at the same time as queries run, then the query can read incorrect or corrupt statistics.
 Drill will reload statistics and replan the query. This option specifies the maximum number of retry attempts. Default is <code>5</code>.</li>
@@ -1434,55 +1497,43 @@ The <code>ANALYZE TABLE</code> command infers table schema as it gathers statist
 Disable this option if Drill has inferred the schema incorrectly, or schema will be provided separately (see <a href="/docs/create-or-replace-schema">CREATE OR REPLACE SCHEMA</a>).
 Default is <code>true</code>.</li>
 <li><strong>metastore.metadata.use_statistics</strong>
-Enables obtaining table and column statistics, stored in the Metastore, at the planning stage. Default is <code>true</code>.
+Enables the Drill query planner to use table and column statistics stored in the Metastore. Default is <code>true</code>.
 Enable <code>planner.statistics.use</code> to be able to use statistics during query planning.</li>
-<li><strong>metastore.metadata.ctas.auto-collect</strong>
-Drill provides the <a href="/docs/create-or-replace-schema"><code>CREATE TABLE AS</code></a> commands to create new tables.
-This option causes Drill to gather schema and statistics for those tables automatically as they are written.
-This option is not implemented for now. Possible values: <code>&#39;ALL&#39;</code>, <code>&#39;SCHEMA&#39;</code>, <code>&#39;NONE&#39;</code>. Default is <code>&#39;NONE&#39;</code>.</li>
 <li><strong>drill.exec.storage.implicit.last_modified_time.column.label</strong>
 Sets the implicit column name for the last modified time (<code>lmt</code>) column. Used when producing Metastore analyze. You can
 set the last modified time column name to custom name when current column name clashes which column name present in the
 table. If your table contains a column name with the same name as an implicit column, the implicit column takes
-priority and shadows column from the table.</li>
+priority and shadows column from the table. Default is <code>lmt</code>.</li>
 <li><strong>drill.exec.storage.implicit.row_group_index.column.label</strong>
 Sets the implicit column name for the row group index (<code>rgi</code>) column. Used when producing Metastore analyze. You can
 set row group index column name to custom name when current column name clashes which column name present in the
 table. If your table contains a column name with the same name as an implicit column, the implicit column takes
-priority and shadows column from the table.</li>
+priority and shadows column from the table. Default is <code>rgi</code>.</li>
 <li><strong>drill.exec.storage.implicit.row_group_length.column.label</strong>
 Sets the implicit column name for the row group length (<code>rgl</code>) column. Used when producing Metastore analyze. You can
 set row group length column name to custom name when current column name clashes which column name present in the
 table. If your table contains a column name with the same name as an implicit column, the implicit column takes
-priority and shadows column from the table.</li>
+priority and shadows column from the table. Default is <code>rgl</code>.</li>
 <li><strong>drill.exec.storage.implicit.row_group_start.column.label</strong>
 Sets the implicit column name for the row group start (<code>rgs</code>) column. Used when producing Metastore analyze. You can
 set row group start column name to custom name when current column name clashes which column name present in the
 table. If your table contains a column name with the same name as an implicit column, the implicit column takes
-priority and shadows column from the table.</li>
+priority and shadows column from the table. Default is <code>rgs</code>.</li>
 </ul>
 
-<h2 id="incremental-analysis">Incremental analysis</h2>
-
-<p>If you have computed statistics for a table, and issue <code>ANALYZE TABLE</code> a second time, Drill will attempt to update
- statistics, called &quot;incremental analysis.&quot;
-Incremental analysis will compute metadata only for files and partitions changed since the last analysis and reuse
- actual metadata from the Metastore where possible.</p>
+<h2 id="analyzing-a-table">Analyzing a table</h2>
 
-<p>Drill performs incremental analysis only when the <code>ANALYZE TABLE command</code> is identical to the previous command:
-- The list of columns in the <code>COLUMNS</code> clause is a subset of interesting columns from the previous run.
-- The metadata level in the LEVEL clause must be the same as the previous run.</p>
+<p>You create Metastore metadata by running the <a href="/docs/analyze-table-refresh-metadata"><code>ANALYZE TABLE</code></a> command.
+The first time you run it, the Metastore will infer the schema and (depending on which options you have selected), populate statistics.</p>
 
-<p>If either of these two conditions is false, Drill will perform a full analysis over the entire table.</p>
+<p>Tables change over time. To keep the Metastore metadata up-to-date, you must periodically run <code>ANALYZE TABLE</code> again
+ on each changed table.
+When you do <code>ANALYZE TABLE</code> a second time, Drill will attempt to update statistics, called &quot;incremental analysis&quot;.</p>
 
-<h2 id="general-information">General Information</h2>
+<p>Incremental analysis will compute metadata only for files and partitions changed since the last analysis and reuse
+ actual metadata from the Metastore where possible.</p>
 
-<ul>
-<li>Drill 1.17 supports the Metastore and <code>ANALYZE TABLE</code> only for tables stored as Parquet files and only when stored in the <code>DFS</code> storage plugin.</li>
-<li>The first time you execute ANALYZE TABLE for a table, Drill will scan the entire table (all files.)
-When you issue the same command for the next time, Drill will scan only those files added since the previous run.
-The command will return the following message if table statistics are up-to-date:</li>
-</ul>
+<p>The command will return the following message if table statistics are up-to-date:</p>
 <div class="highlight"><pre><code class="language-text" data-lang="text">apache drill (dfs.tmp)&gt; analyze table lineitem refresh metadata;
 +-------+---------------------------------------------------------+
 |  ok   |                         summary                         |
@@ -1490,6 +1541,11 @@ The command will return the following message if table statistics are up-to-date
 | false | Table metadata is up to date, analyze wasn&#39;t performed. |
 +-------+---------------------------------------------------------+
 </code></pre></div>
+<p>Table schemas evolve over time. If your table adds (or removes) columns, run <code>ANALYZE TABLE</code> with the new set of
+ columns. Drill will perform a full table analysis.</p>
+
+<h2 id="general-information">General Information</h2>
+
 <h3 id="metadata-usage">Metadata usage</h3>
 
 <p>Drill uses the Metastore in several places. When you run a query with multiple directories, files or Parquet row groups,
@@ -1498,79 +1554,10 @@ The command will return the following message if table statistics are up-to-date
  then Drill will assume that existing metadata is invalid and wouldn&#39;t use it. Periodically rerun <code>ANALYZE TABLE</code> so
  that Drill can use table metadata when possible.</p>
 
-<h3 id="limitations">Limitations</h3>
-
-<p>This feature is currently in the beta phase (preview, experimental) for Drill 1.17 and only applies to Parquet
- tables in this release. You must enable this feature through the <code>metastore.enabled</code> system/session option.</p>
-
-<h2 id="examples">Examples</h2>
-
-<p>Examples throughout this topic use the files and directories described in the following section, Directory, and File Setup.</p>
-
-<h3 id="directory-and-file-setup">Directory and File Setup</h3>
-
-<p>Download <a href="https://s3-us-west-1.amazonaws.com/drill-public/tpch/sf1/tpch_sf1_parquet.tar.gz">TPC-H sf1 tables</a> and
- unpack archive.</p>
-
-<p>Create lineitem directory in <code>/tmp/</code> and two subdirectories under <code>/tmp/lineitem</code> named <code>s1</code> and <code>s2</code> and copy there table data:</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">mkdir /tmp/lineitem
-mkdir /tmp/lineitem/s1
-mkdir /tmp/lineitem/s2
-cp TPCH/lineitem /tmp/lineitem/s1
-cp TPCH/lineitem /tmp/lineitem/s2
-</code></pre></div>
-<p>Query the directory <code>/tmp/lineitem</code>:</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">SELECT count(*) FROM dfs.tmp.lineitem;
-+----------+
-|  EXPR$0  |
-+----------+
-| 12002430 |
-+----------+
-1 row selected (0.291 seconds)
-</code></pre></div>
-<p>Notice that the query plan contains a group scan with <code>usedMetastore = false</code>:</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">00-00    Screen : rowType = RecordType(BIGINT EXPR$0): rowcount = 1.0, cumulative cost = {2.1 rows, 2.1 cpu, 1.0 io, 0.0 network, 0.0 memory}, id = 8410
-00-01      Project(EXPR$0=[$0]) : rowType = RecordType(BIGINT EXPR$0): rowcount = 1.0, cumulative cost = {2.0 rows, 2.0 cpu, 1.0 io, 0.0 network, 0.0 memory}, id = 8409
-00-02        DirectScan(groupscan=[selectionRoot = file:/tmp/lineitem, numFiles = 12, usedMetadataSummaryFile = false, usedMetastore = false, ...
-</code></pre></div>
-<h3 id="computing-and-storing-table-metadata-to-drill-metastore">Computing and storing table metadata to Drill Metastore</h3>
-
-<p>Enable Drill Metastore:</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">SET `metastore.enabled` = true;
-</code></pre></div>
-<p>Run <a href="/docs/analyze-table-refresh-metadata">ANALYZE TABLE</a> command on the table, whose metadata should
- be computed and stored into the Drill Metastore:</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">apache drill&gt; ANALYZE TABLE dfs.tmp.lineitem REFRESH METADATA;
-+------+-------------------------------------------------------------+
-|  ok  |                           summary                           |
-+------+-------------------------------------------------------------+
-| true | Collected / refreshed metadata for table [dfs.tmp.lineitem] |
-+------+-------------------------------------------------------------+
-1 row selected (32.257 seconds)
-</code></pre></div>
-<p>The output of this command provides the status of the command execution and its summary.</p>
-
-<p>Once, table metadata is collected and stored in the Metastore, it will be used when querying the table. To ensure that it was used, its
- info was added to the group scan (<code>usedMetastore=true</code> entry in <code>ParquetGroupScan</code>):</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">00-00    Screen : rowType = RecordType(BIGINT EXPR$0): rowcount = 1.0, cumulative cost = {2.1 rows, 2.1 cpu, 1.0 io, 0.0 network, 0.0 memory}, id = 8560
-00-01      Project(EXPR$0=[$0]) : rowType = RecordType(BIGINT EXPR$0): rowcount = 1.0, cumulative cost = {2.0 rows, 2.0 cpu, 1.0 io, 0.0 network, 0.0 memory}, id = 8559
-00-02        DirectScan(groupscan=[selectionRoot = /tmp/lineitem, numFiles = 12, usedMetadataSummaryFile = false, usedMetastore = true, ...
-</code></pre></div>
-<h3 id="performing-incremental-analysis">Performing incremental analysis</h3>
-
-<p>Rerun <a href="/docs/analyze-table-refresh-metadata">ANALYZE TABLE</a> command on the table with previously collected metadata:</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">apache drill&gt; ANALYZE TABLE dfs.tmp.lineitem REFRESH METADATA;
-+-------+---------------------------------------------------------+
-|  ok   |                         summary                         |
-+-------+---------------------------------------------------------+
-| false | Table metadata is up to date, analyze wasn&#39;t performed. |
-+-------+---------------------------------------------------------+
-1 row selected (0.249 seconds)
-</code></pre></div>
 <h3 id="exposing-drill-metastore-metadata-through-information_schema-tables">Exposing Drill Metastore metadata through <code>INFORMATION_SCHEMA</code> tables</h3>
 
 <p>Drill exposes some Metastore tables metadata through <code>INFORMATION_SCHEMA</code> tables.
-Note, that Metastore metadata will be exposed to the info schema, only if Metastore is enabled. If it is disabled, info
+Note, that Metastore metadata will be exposed to the <code>INFORMATION_SCHEMA</code> only if Metastore is enabled. If it is disabled, info
  tables won&#39;t contain Metastore metadata.</p>
 
 <p><code>TABLES</code> table includes the set of tables on which you have run <code>ANALYZE TABLE</code>.
@@ -1600,7 +1587,7 @@ Description of Metastore-specific columns:</p>
 <td><code>NUM_ROWS</code></td>
 <td>BIGINT</td>
 <td>YES</td>
-<td>The total number of rows in all files of the table. Null if not known</td>
+<td>Total number of rows in all files of the table. Null if not known</td>
 </tr>
 <tr>
 <td><code>LAST_MODIFIED_TIME</code></td>
@@ -1610,15 +1597,6 @@ Description of Metastore-specific columns:</p>
 </tr>
 </tbody></table>
 
-<p>Example of its content:</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">apache drill&gt; SELECT * FROM INFORMATION_SCHEMA.`TABLES` WHERE TABLE_NAME=&#39;lineitem&#39;;
-+---------------+--------------+------------+------------+--------------+---------------+----------+-----------------------+
-| TABLE_CATALOG | TABLE_SCHEMA | TABLE_NAME | TABLE_TYPE | TABLE_SOURCE |   LOCATION    | NUM_ROWS |  LAST_MODIFIED_TIME   |
-+---------------+--------------+------------+------------+--------------+---------------+----------+-----------------------+
-| DRILL         | dfs.tmp      | lineitem   | TABLE      | PARQUET      | /tmp/lineitem | 12002430 | 2016-09-28 03:22:58.0 |
-+---------------+--------------+------------+------------+--------------+---------------+----------+-----------------------+
-1 row selected (0.157 seconds)
-</code></pre></div>
 <p>The <code>COLUMNS</code> table describes the columns within each table. Only those columns listed in the <code>COLUMNS</code> clause of the
  <code>ANALYZE TABLE</code> statement appear in this table.</p>
 
@@ -1646,31 +1624,31 @@ Description of Metastore-specific columns:</p>
 <td><code>NUM_NULLS</code></td>
 <td>BIGINT</td>
 <td>YES</td>
-<td>The number of rows which contain nulls for this column.</td>
+<td>Number of rows which contain nulls for this column.</td>
 </tr>
 <tr>
 <td><code>MIN_VAL</code></td>
 <td>VARCHAR</td>
 <td>YES</td>
-<td>The minimum value of the column expressed as a string. For example: <code>&#39;-273&#39;</code>.</td>
+<td>Minimum value of the column. For example: <code>&#39;-273&#39;</code>.</td>
 </tr>
 <tr>
 <td><code>MAX_VAL</code></td>
 <td>VARCHAR</td>
 <td>YES</td>
-<td>The maximum value of the column expressed as a string. For example: <code>&#39;100500&#39;</code>.</td>
+<td>Maximum value of the column. For example: <code>&#39;100500&#39;</code>.</td>
 </tr>
 <tr>
 <td><code>NDV</code></td>
 <td>FLOAT8</td>
 <td>YES</td>
-<td>Number of distinct values in column, expressed in Double.</td>
+<td>Number of distinct values in column.</td>
 </tr>
 <tr>
 <td><code>EST_NUM_NON_NULLS</code></td>
 <td>FLOAT8</td>
 <td>YES</td>
-<td>Estimated number of non null values, expressed in Double.</td>
+<td>Estimated number of non null values.</td>
 </tr>
 <tr>
 <td><code>IS_NESTED</code></td>
@@ -1680,31 +1658,6 @@ Description of Metastore-specific columns:</p>
 </tr>
 </tbody></table>
 
-<p>Example of its content:</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">apache drill&gt; SELECT * FROM INFORMATION_SCHEMA.`COLUMNS` WHERE TABLE_NAME=&#39;lineitem&#39;;
-+---------------+--------------+------------+-----------------+------------------+----------------+-------------+-------------------+--------------------------+------------------------+-------------------+-------------------------+---------------+--------------------+---------------+--------------------+-------------+---------------+-----------+--------------+---------------------------------------------+-----------+-------------------+-----------+
-| TABLE_CATALOG | TABLE_SCHEMA | TABLE_NAME |   COLUMN_NAME   | ORDINAL_POSITION | COLUMN_DEFAULT | IS_NULLABLE |     DATA_TYPE     | CHARACTER_MAXIMUM_LENGTH | CHARACTER_OCTET_LENGTH | NUMERIC_PRECISION | NUMERIC_PRECISION_RADIX | NUMERIC_SCALE | DATETIME_PRECISION | INTERVAL_TYPE | INTERVAL_PRECISION | COLUMN_SIZE | COLUMN_FORMAT | NUM_NULLS |   MIN_VAL    |                   MAX_VAL                   |    NDV    | EST_NUM_NON_NULLS | IS_NESTED |
-+---------------+--------------+------------+-----------------+------------------+----------------+-------------+-------------------+--------------------------+------------------------+-------------------+-------------------------+---------------+--------------------+---------------+--------------------+-------------+---------------+-----------+--------------+---------------------------------------------+-----------+-------------------+-----------+
-| DRILL         | dfs.tmp      | lineitem   | dir0            | 1                | null           | YES         | CHARACTER VARYING | 65535                    | 65535                  | null              | null                    | null          | null               | null          | null               | 65535       | null          | 0         | s1           | s2                                          | null      | null              | false     |
-| DRILL         | dfs.tmp      | lineitem   | l_orderkey      | 2                | null           | YES         | INTEGER           | null                     | null                   | 0                 | 2                       | 0             | null               | null          | null               | 11          | null          | 0         | 1            | 6000000                                     | 1499876.0 | 1.200243E7        | false     |
-| DRILL         | dfs.tmp      | lineitem   | l_partkey       | 3                | null           | YES         | INTEGER           | null                     | null                   | 0                 | 2                       | 0             | null               | null          | null               | 11          | null          | 0         | 1            | 200000                                      | 199857.0  | 1.200243E7        | false     |
-| DRILL         | dfs.tmp      | lineitem   | l_suppkey       | 4                | null           | YES         | INTEGER           | null                     | null                   | 0                 | 2                       | 0             | null               | null          | null               | 11          | null          | 0         | 1            | 10000                                       | 10001.0   | 1.200243E7        | false     |
-| DRILL         | dfs.tmp      | lineitem   | l_linenumber    | 5                | null           | YES         | INTEGER           | null                     | null                   | 0                 | 2                       | 0             | null               | null          | null               | 11          | null          | 0         | 1            | 7                                           | 7.0       | 1.200243E7        | false     |
-| DRILL         | dfs.tmp      | lineitem   | l_quantity      | 6                | null           | YES         | DOUBLE            | null                     | null                   | 0                 | 2                       | 0             | null               | null          | null               | 24          | null          | 0         | 1.0          | 50.0                                        | 50.0      | 1.200243E7        | false     |
-| DRILL         | dfs.tmp      | lineitem   | l_extendedprice | 7                | null           | YES         | DOUBLE            | null                     | null                   | 0                 | 2                       | 0             | null               | null          | null               | 24          | null          | 0         | 901.0        | 104949.5                                    | 933142.0  | 1.200243E7        | false     |
-| DRILL         | dfs.tmp      | lineitem   | l_discount      | 8                | null           | YES         | DOUBLE            | null                     | null                   | 0                 | 2                       | 0             | null               | null          | null               | 24          | null          | 0         | 0.0          | 0.1                                         | 11.0      | 1.200243E7        | false     |
-| DRILL         | dfs.tmp      | lineitem   | l_tax           | 9                | null           | YES         | DOUBLE            | null                     | null                   | 0                 | 2                       | 0             | null               | null          | null               | 24          | null          | 0         | 0.0          | 0.08                                        | 9.0       | 1.200243E7        | false     |
-| DRILL         | dfs.tmp      | lineitem   | l_returnflag    | 10               | null           | YES         | CHARACTER VARYING | 65535                    | 65535                  | null              | null                    | null          | null               | null          | null               | 65535       | null          | 0         | A            | R                                           | 3.0       | 1.200243E7        | false     |
-| DRILL         | dfs.tmp      | lineitem   | l_linestatus    | 11               | null           | YES         | CHARACTER VARYING | 65535                    | 65535                  | null              | null                    | null          | null               | null          | null               | 65535       | null          | 0         | F            | O                                           | 2.0       | 1.200243E7        | false     |
-| DRILL         | dfs.tmp      | lineitem   | l_shipdate      | 12               | null           | YES         | DATE              | null                     | null                   | null              | null                    | null          | 10                 | null          | null               | 10          | null          | 0         | 694310400000 | 912470400000                                | 2526.0    | 1.200243E7        | false     |
-| DRILL         | dfs.tmp      | lineitem   | l_commitdate    | 13               | null           | YES         | DATE              | null                     | null                   | null              | null                    | null          | 10                 | null          | null               | 10          | null          | 0         | 696816000000 | 909792000000                                | 2466.0    | 1.200243E7        | false     |
-| DRILL         | dfs.tmp      | lineitem   | l_receiptdate   | 14               | null           | YES         | DATE              | null                     | null                   | null              | null                    | null          | 10                 | null          | null               | 10          | null          | 0         | 694483200000 | 915062400000                                | 2554.0    | 1.200243E7        | false     |
-| DRILL         | dfs.tmp      | lineitem   | l_shipinstruct  | 15               | null           | YES         | CHARACTER VARYING | 65535                    | 65535                  | null              | null                    | null          | null               | null          | null               | 65535       | null          | 0         | COLLECT COD  | TAKE BACK RETURN                            | 4.0       | 1.200243E7        | false     |
-| DRILL         | dfs.tmp      | lineitem   | l_shipmode      | 16               | null           | YES         | CHARACTER VARYING | 65535                    | 65535                  | null              | null                    | null          | null               | null          | null               | 65535       | null          | 0         | AIR          | TRUCK                                       | 7.0       | 1.200243E7        | false     |
-| DRILL         | dfs.tmp      | lineitem   | l_comment       | 17               | null           | YES         | CHARACTER VARYING | 65535                    | 65535                  | null              | null                    | null          | null               | null          | null               | 65535       | null          | 0         |  Tiresias    | zzle? slyly final platelets sleep quickly.  | 4586320.0 | 1.200243E7        | false     |
-+---------------+--------------+------------+-----------------+------------------+----------------+-------------+-------------------+--------------------------+------------------------+-------------------+-------------------------+---------------+--------------------+---------------+--------------------+-------------+---------------+-----------+--------------+---------------------------------------------+-----------+-------------------+-----------+
-17 rows selected (0.187 seconds)
-</code></pre></div>
 <p>A table can be divided into directories, called &quot;partitions&quot;. The <code>PARTITIONS</code> table contains an entry for each directory.</p>
 
 <table><thead>
@@ -1777,7 +1730,119 @@ Description of Metastore-specific columns:</p>
 </tr>
 </tbody></table>
 
-<p>Example of its content:</p>
+<h3 id="limitations-of-the-1-17-release">Limitations of the 1.17 release</h3>
+
+<ul>
+<li>Applies to tables stored as Parquet files and only when stored in the <code>DFS</code> storage plugin.</li>
+<li>Disabled by default. You must enable this feature through the <code>metastore.enabled</code> system/session option.</li>
+</ul>
+
+<h3 id="cheat-sheet-of-analyze-table-commands">Cheat sheet of <code>ANALYZE TABLE</code> commands</h3>
+
+<ul>
+<li>Add a new table with <code>ANALYZE TABLE dfs.tmp.lineitem REFRESH METADATA</code> command.</li>
+<li>When table data (but not schema) changes, run <code>ANALYZE TABLE dfs.tmp.lineitem REFRESH METADATA</code> command.</li>
+<li>When the table schema changes, run <code>ANALYZE TABLE dfs.tmp.lineitem COLUMNS (col1, col2, ...) REFRESH METADATA</code> command.</li>
+<li>If partitions are added or removed, run <code>ANALYZE TABLE dfs.tmp.lineitem REFRESH METADATA</code> command.</li>
+<li>Remove table metadata by submitting <code>ANALYZE TABLE dfs.tmp.lineitem DROP METADATA</code> command.</li>
+</ul>
+
+<h2 id="tutorial">Tutorial</h2>
+
+<p>Examples throughout this topic use the files and directories described in the following section <code>Directory and File Setup</code>.</p>
+
+<h3 id="directory-and-file-setup">Directory and File Setup</h3>
+
+<p>The following examples are written for local file system, but Drill Metastore supports collecting metadata for tables
+ placed in any any of Drill&#39;s supported file systems. The examples work for both embedded and distributed Drill modes.</p>
+
+<p>Download <a href="https://s3-us-west-1.amazonaws.com/drill-public/tpch/sf1/tpch_sf1_parquet.tar.gz">TPC-H sf1 tables</a> and
+ unpack archive to desired file system.</p>
+
+<p>Set up storage plugin for desired file system, as described here:
+ <a href="/docs/file-system-storage-plugin/#connecting-drill-to-a-file-system">Connecting Drill to a File System</a>.</p>
+
+<p>Create lineitem directory in <code>/tmp/</code> and two subdirectories under <code>/tmp/lineitem</code> named <code>s1</code> and <code>s2</code> and copy there table data:</p>
+<div class="highlight"><pre><code class="language-text" data-lang="text">mkdir /tmp/lineitem
+mkdir /tmp/lineitem/s1
+mkdir /tmp/lineitem/s2
+cp TPCH/lineitem /tmp/lineitem/s1
+cp TPCH/lineitem /tmp/lineitem/s2
+</code></pre></div>
+<p>Query the directory <code>/tmp/lineitem</code>:</p>
+<div class="highlight"><pre><code class="language-text" data-lang="text">SELECT count(*) FROM dfs.tmp.lineitem;
++----------+
+|  EXPR$0  |
++----------+
+| 12002430 |
++----------+
+1 row selected (0.291 seconds)
+</code></pre></div>
+<p>Notice that the query plan contains a group scan with <code>usedMetastore = false</code>:</p>
+<div class="highlight"><pre><code class="language-text" data-lang="text">00-00    Screen : rowType = RecordType(BIGINT EXPR$0): rowcount = 1.0, cumulative cost = {2.1 rows, 2.1 cpu, 1.0 io, 0.0 network, 0.0 memory}, id = 8410
+00-01      Project(EXPR$0=[$0]) : rowType = RecordType(BIGINT EXPR$0): rowcount = 1.0, cumulative cost = {2.0 rows, 2.0 cpu, 1.0 io, 0.0 network, 0.0 memory}, id = 8409
+00-02        DirectScan(groupscan=[selectionRoot = file:/tmp/lineitem, numFiles = 12, usedMetadataSummaryFile = false, usedMetastore = false, ...
+</code></pre></div>
+<h3 id="compute-table-metadata-and-store-in-the-drill-metastore">Compute table metadata and store in the Drill Metastore</h3>
+
+<p>Enable Drill Metastore:</p>
+<div class="highlight"><pre><code class="language-text" data-lang="text">SET `metastore.enabled` = true;
+</code></pre></div>
+<p>The above command enables the Metastore for just this one session.</p>
+
+<p>Run the <a href="/docs/analyze-table-refresh-metadata">ANALYZE TABLE</a> command on the table, whose metadata should
+ be computed and stored into the Drill Metastore:</p>
+<div class="highlight"><pre><code class="language-text" data-lang="text">apache drill&gt; ANALYZE TABLE dfs.tmp.lineitem REFRESH METADATA;
++------+-------------------------------------------------------------+
+|  ok  |                           summary                           |
++------+-------------------------------------------------------------+
+| true | Collected / refreshed metadata for table [dfs.tmp.lineitem] |
++------+-------------------------------------------------------------+
+1 row selected (32.257 seconds)
+</code></pre></div>
+<p>The output of this command provides the status of the command execution and its summary.</p>
+
+<p>Now that we&#39;ve collected table metadata, we can use it when we query the table, by checking the <code>usedMetastore=true</code> entry in <code>ParquetGroupScan</code>:</p>
+<div class="highlight"><pre><code class="language-text" data-lang="text">00-00    Screen : rowType = RecordType(BIGINT EXPR$0): rowcount = 1.0, cumulative cost = {2.1 rows, 2.1 cpu, 1.0 io, 0.0 network, 0.0 memory}, id = 8560
+00-01      Project(EXPR$0=[$0]) : rowType = RecordType(BIGINT EXPR$0): rowcount = 1.0, cumulative cost = {2.0 rows, 2.0 cpu, 1.0 io, 0.0 network, 0.0 memory}, id = 8559
+00-02        DirectScan(groupscan=[selectionRoot = /tmp/lineitem, numFiles = 12, usedMetadataSummaryFile = false, usedMetastore = true, ...
+</code></pre></div>
+<h3 id="perform-incremental-analysis">Perform incremental analysis</h3>
+
+<p>Rerun <a href="/docs/analyze-table-refresh-metadata">ANALYZE TABLE</a> command on the <code>lineitem</code> table:</p>
+<div class="highlight"><pre><code class="language-text" data-lang="text">apache drill&gt; ANALYZE TABLE dfs.tmp.lineitem REFRESH METADATA;
++-------+---------------------------------------------------------+
+|  ok   |                         summary                         |
++-------+---------------------------------------------------------+
+| false | Table metadata is up to date, analyze wasn&#39;t performed. |
++-------+---------------------------------------------------------+
+1 row selected (0.249 seconds)
+</code></pre></div>
+<h3 id="inspect-the-metastore-using-information_schema-tables">Inspect the Metastore using INFORMATION_SCHEMA tables</h3>
+
+<p>Run the following query to inspect <code>lineitem</code> table metadata from <code>TABLES</code> table stored in the Metastore:</p>
+<div class="highlight"><pre><code class="language-text" data-lang="text">apache drill&gt; SELECT * FROM INFORMATION_SCHEMA.`TABLES` WHERE TABLE_NAME=&#39;lineitem&#39;;
++---------------+--------------+------------+------------+--------------+---------------+----------+-----------------------+
+| TABLE_CATALOG | TABLE_SCHEMA | TABLE_NAME | TABLE_TYPE | TABLE_SOURCE |   LOCATION    | NUM_ROWS |  LAST_MODIFIED_TIME   |
++---------------+--------------+------------+------------+--------------+---------------+----------+-----------------------+
+| DRILL         | dfs.tmp      | lineitem   | TABLE      | PARQUET      | /tmp/lineitem | 12002430 | 2016-09-28 03:22:58.0 |
++---------------+--------------+------------+------------+--------------+---------------+----------+-----------------------+
+1 row selected (0.157 seconds)
+</code></pre></div>
+<p>To obtain columns with their types and descriptions within the <code>lineitem</code> table, run the following query:</p>
+<div class="highlight"><pre><code class="language-text" data-lang="text">apache drill&gt; SELECT * FROM INFORMATION_SCHEMA.`COLUMNS` WHERE TABLE_NAME=&#39;lineitem&#39;;
++---------------+--------------+------------+-----------------+------------------+----------------+-------------+-------------------+--------------------------+------------------------+-------------------+-------------------------+---------------+--------------------+---------------+--------------------+-------------+---------------+-----------+--------------+---------------------------------------------+-----------+-------------------+-----------+
+| TABLE_CATALOG | TABLE_SCHEMA | TABLE_NAME |   COLUMN_NAME   | ORDINAL_POSITION | COLUMN_DEFAULT | IS_NULLABLE |     DATA_TYPE     | CHARACTER_MAXIMUM_LENGTH | CHARACTER_OCTET_LENGTH | NUMERIC_PRECISION | NUMERIC_PRECISION_RADIX | NUMERIC_SCALE | DATETIME_PRECISION | INTERVAL_TYPE | INTERVAL_PRECISION | COLUMN_SIZE | COLUMN_FORMAT | NUM_NULLS |   MIN_VAL    |                   MAX_VAL                   |    NDV    | EST_NUM_NON_NULLS | IS_NESTED |
++---------------+--------------+------------+-----------------+------------------+----------------+-------------+-------------------+--------------------------+------------------------+-------------------+-------------------------+---------------+--------------------+---------------+--------------------+-------------+---------------+-----------+--------------+---------------------------------------------+-----------+-------------------+-----------+
+| DRILL         | dfs.tmp      | lineitem   | dir0            | 1                | null           | YES         | CHARACTER VARYING | 65535                    | 65535                  | null              | null                    | null          | null               | null          | null               | 65535       | null          | 0         | s1           | s2                                          | null      | null              | false     |
+| DRILL         | dfs.tmp      | lineitem   | l_orderkey      | 2                | null           | YES         | INTEGER           | null                     | null                   | 0                 | 2                       | 0             | null               | null          | null               | 11          | null          | 0         | 1            | 6000000                                     | 1499876.0 | 1.200243E7        | false     |
+| DRILL         | dfs.tmp      | lineitem   | l_partkey       | 3                | null           | YES         | INTEGER           | null                     | null                   | 0                 | 2                       | 0             | null               | null          | null               | 11          | null          | 0         | 1            | 200000                                      | 199857.0  | 1.200243E7        | false     |
+...
+| DRILL         | dfs.tmp      | lineitem   | l_comment       | 17               | null           | YES         | CHARACTER VARYING | 65535                    | 65535                  | null              | null                    | null          | null               | null          | null               | 65535       | null          | 0         |  Tiresias    | zzle? slyly final platelets sleep quickly.  | 4586320.0 | 1.200243E7        | false     |
++---------------+--------------+------------+-----------------+------------------+----------------+-------------+-------------------+--------------------------+------------------------+-------------------+-------------------------+---------------+--------------------+---------------+--------------------+-------------+---------------+-----------+--------------+---------------------------------------------+-----------+-------------------+-----------+
+17 rows selected (0.187 seconds)
+</code></pre></div>
+<p>The sample <code>lineitem</code> table has two partitions. The <code>PARTITIONS</code> table contains an entry for each directory:</p>
 <div class="highlight"><pre><code class="language-text" data-lang="text">apache drill (information_schema)&gt; SELECT * FROM INFORMATION_SCHEMA.`PARTITIONS` WHERE TABLE_NAME=&#39;lineitem&#39;;
 +---------------+--------------+------------+--------------+---------------+---------------------+------------------+-----------------+------------------+-----------------------+
 | TABLE_CATALOG | TABLE_SCHEMA | TABLE_NAME | METADATA_KEY | METADATA_TYPE | METADATA_IDENTIFIER | PARTITION_COLUMN | PARTITION_VALUE |     LOCATION     |  LAST_MODIFIED_TIME   |
@@ -1787,7 +1852,9 @@ Description of Metastore-specific columns:</p>
 +---------------+--------------+------------+--------------+---------------+---------------------+------------------+-----------------+------------------+-----------------------+
 2 rows selected (0.149 seconds)
 </code></pre></div>
-<h3 id="dropping-table-metadata">Dropping table metadata</h3>
+<h3 id="drop-table-metadata">Drop table metadata</h3>
+
+<p>Once we are done exploring metadata we can drop the metadata for the <code>lineitem</code> table.</p>
 
 <p>Table metadata may be dropped using <code>ANALYZE TABLE DROP METADATA</code> command:</p>
 <div class="highlight"><pre><code class="language-text" data-lang="text">apache drill&gt; ANALYZE TABLE dfs.tmp.lineitem DROP METADATA;
@@ -1798,7 +1865,12 @@ Description of Metastore-specific columns:</p>
 +------+----------------------------------------+
 1 row selected (0.291 seconds)
 </code></pre></div>
-<h3 id="collecting-metadata-for-specific-set-of-columns">Collecting metadata for specific set of columns</h3>
+<h3 id="collect-metadata-for-specific-set-of-columns">Collect metadata for specific set of columns</h3>
+
+<p>Next let&#39;s gather metadata for a subset of the columns in the <code>lineitem</code> table. You would do this to allow
+ Drill to optimize <code>WHERE</code> conditions on certain columns. Also, if file size or the number of columns grows large, it
+ can take too long to gather all statistics. Instead you can speed up analysis by gathering statistics only for
+ selected columns: those actually used in the <code>WHERE</code> clause.</p>
 
 <p>For the case when metadata for several columns should be computed and stored into the Metastore, the following command may be used:</p>
 <div class="highlight"><pre><code class="language-text" data-lang="text">apache drill (information_schema)&gt; ANALYZE TABLE dfs.tmp.lineitem COLUMNS(l_orderkey, l_partkey) REFRESH METADATA;
@@ -1818,19 +1890,7 @@ Description of Metastore-specific columns:</p>
 | DRILL         | dfs.tmp      | lineitem   | dir0            | 1                | null           | YES         | CHARACTER VARYING | 65535                    | 65535                  | null              | null                    | null          | null               | null          | null               | 65535       | null          | 0         | s1      | s2      | null      | null              | false     |
 | DRILL         | dfs.tmp      | lineitem   | l_orderkey      | 2                | null           | YES         | INTEGER           | null                     | null                   | 0                 | 2                       | 0             | null               | null          | null               | 11          | null          | 0         | 1       | 6000000 | 1499876.0 | 1.200243E7        | false     |
 | DRILL         | dfs.tmp      | lineitem   | l_partkey       | 3                | null           | YES         | INTEGER           | null                     | null                   | 0                 | 2                       | 0             | null               | null          | null               | 11          | null          | 0         | 1       | 200000  | 199857.0  | 1.200243E7        | false     |
-| DRILL         | dfs.tmp      | lineitem   | l_suppkey       | 4                | null           | YES         | INTEGER           | null                     | null                   | 0                 | 2                       | 0             | null               | null          | null               | 11          | null          | null      | null    | null    | null      | null              | false     |
-| DRILL         | dfs.tmp      | lineitem   | l_linenumber    | 5                | null           | YES         | INTEGER           | null                     | null                   | 0                 | 2                       | 0             | null               | null          | null               | 11          | null          | null      | null    | null    | null      | null              | false     |
-| DRILL         | dfs.tmp      | lineitem   | l_quantity      | 6                | null           | YES         | DOUBLE            | null                     | null                   | 0                 | 2                       | 0             | null               | null          | null               | 24          | null          | null      | null    | null    | null      | null              | false     |
-| DRILL         | dfs.tmp      | lineitem   | l_extendedprice | 7                | null           | YES         | DOUBLE            | null                     | null                   | 0                 | 2                       | 0             | null               | null          | null               | 24          | null          | null      | null    | null    | null      | null              | false     |
-| DRILL         | dfs.tmp      | lineitem   | l_discount      | 8                | null           | YES         | DOUBLE            | null                     | null                   | 0                 | 2                       | 0             | null               | null          | null               | 24          | null          | null      | null    | null    | null      | null              | false     |
-| DRILL         | dfs.tmp      | lineitem   | l_tax           | 9                | null           | YES         | DOUBLE            | null                     | null                   | 0                 | 2                       | 0             | null               | null          | null               | 24          | null          | null      | null    | null    | null      | null              | false     |
-| DRILL         | dfs.tmp      | lineitem   | l_returnflag    | 10               | null           | YES         | CHARACTER VARYING | 65535                    | 65535                  | null              | null                    | null          | null               | null          | null               | 65535       | null          | null      | null    | null    | null      | null              | false     |
-| DRILL         | dfs.tmp      | lineitem   | l_linestatus    | 11               | null           | YES         | CHARACTER VARYING | 65535                    | 65535                  | null              | null                    | null          | null               | null          | null               | 65535       | null          | null      | null    | null    | null      | null              | false     |
-| DRILL         | dfs.tmp      | lineitem   | l_shipdate      | 12               | null           | YES         | DATE              | null                     | null                   | null              | null                    | null          | 10                 | null          | null               | 10          | null          | null      | null    | null    | null      | null              | false     |
-| DRILL         | dfs.tmp      | lineitem   | l_commitdate    | 13               | null           | YES         | DATE              | null                     | null                   | null              | null                    | null          | 10                 | null          | null               | 10          | null          | null      | null    | null    | null      | null              | false     |
-| DRILL         | dfs.tmp      | lineitem   | l_receiptdate   | 14               | null           | YES         | DATE              | null                     | null                   | null              | null                    | null          | 10                 | null          | null               | 10          | null          | null      | null    | null    | null      | null              | false     |
-| DRILL         | dfs.tmp      | lineitem   | l_shipinstruct  | 15               | null           | YES         | CHARACTER VARYING | 65535                    | 65535                  | null              | null                    | null          | null               | null          | null               | 65535       | null          | null      | null    | null    | null      | null              | false     |
-| DRILL         | dfs.tmp      | lineitem   | l_shipmode      | 16               | null           | YES         | CHARACTER VARYING | 65535                    | 65535                  | null              | null                    | null          | null               | null          | null               | 65535       | null          | null      | null    | null    | null      | null              | false     |
+...
 | DRILL         | dfs.tmp      | lineitem   | l_comment       | 17               | null           | YES         | CHARACTER VARYING | 65535                    | 65535                  | null              | null                    | null          | null               | null          | null               | 65535       | null          | null      | null    | null    | null      | null              | false     |
 +---------------+--------------+------------+-----------------+------------------+----------------+-------------+-------------------+--------------------------+------------------------+-------------------+-------------------------+---------------+--------------------+---------------+--------------------+-------------+---------------+-----------+---------+---------+-----------+-------------------+-----------+
 17 rows selected (0.183 seconds)
diff --git a/feed.xml b/feed.xml
index c42932b..847eaac 100644
--- a/feed.xml
+++ b/feed.xml
@@ -6,8 +6,8 @@
 </description>
     <link>/</link>
     <atom:link href="/feed.xml" rel="self" type="application/rss+xml"/>
-    <pubDate>Tue, 04 Feb 2020 12:04:28 -0800</pubDate>
-    <lastBuildDate>Tue, 04 Feb 2020 12:04:28 -0800</lastBuildDate>
+    <pubDate>Tue, 10 Mar 2020 12:34:25 +0200</pubDate>
+    <lastBuildDate>Tue, 10 Mar 2020 12:34:25 +0200</lastBuildDate>
     <generator>Jekyll v2.5.2</generator>
     
       <item>
@@ -45,7 +45,7 @@
 
 &lt;p&gt;You can find a complete list of improvements and JIRAs resolved in the 1.17.0 release &lt;a href=&quot;/docs/apache-drill-1-17-0-release-notes/&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;
 </description>
-        <pubDate>Thu, 26 Dec 2019 00:00:00 -0800</pubDate>
+        <pubDate>Thu, 26 Dec 2019 00:00:00 +0200</pubDate>
         <link>/blog/2019/12/26/drill-1.17-released/</link>
         <guid isPermaLink="true">/blog/2019/12/26/drill-1.17-released/</guid>
         
@@ -57,7 +57,7 @@
       <item>
         <title>Drill User Meetup 2019</title>
         <description></description>
-        <pubDate>Thu, 02 May 2019 00:00:00 -0700</pubDate>
+        <pubDate>Thu, 02 May 2019 00:00:00 +0300</pubDate>
         <link>/blog/2019/05/02/drill-user-meetup/</link>
         <guid isPermaLink="true">/blog/2019/05/02/drill-user-meetup/</guid>
         
@@ -96,7 +96,7 @@
 
 &lt;p&gt;You can find a complete list of improvements and JIRAs resolved in the 1.16.0 release &lt;a href=&quot;/docs/apache-drill-1-16-0-release-notes/&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;
 </description>
-        <pubDate>Thu, 02 May 2019 00:00:00 -0700</pubDate>
+        <pubDate>Thu, 02 May 2019 00:00:00 +0300</pubDate>
         <link>/blog/2019/05/02/drill-1.16-released/</link>
         <guid isPermaLink="true">/blog/2019/05/02/drill-1.16-released/</guid>
         
@@ -133,7 +133,7 @@
 
 &lt;p&gt;You can find a complete list of improvements and JIRAs resolved in the 1.15.0 release &lt;a href=&quot;/docs/apache-drill-1-15-0-release-notes/&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;
 </description>
-        <pubDate>Mon, 31 Dec 2018 00:00:00 -0800</pubDate>
+        <pubDate>Mon, 31 Dec 2018 00:00:00 +0200</pubDate>
         <link>/blog/2018/12/31/drill-1.15-released/</link>
         <guid isPermaLink="true">/blog/2018/12/31/drill-1.15-released/</guid>
         
@@ -195,7 +195,7 @@ See &lt;a href=&quot;/docs/image-metadata-format-plugin/&quot;&gt;Image Metadata
 
 &lt;p&gt;You can find a complete list of JIRAs resolved in the 1.14.0 release &lt;a href=&quot;/docs/apache-drill-1-14-0-release-notes/&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;
 </description>
-        <pubDate>Sun, 05 Aug 2018 00:00:00 -0700</pubDate>
+        <pubDate>Sun, 05 Aug 2018 00:00:00 +0300</pubDate>
         <link>/blog/2018/08/05/drill-1.14-released/</link>
         <guid isPermaLink="true">/blog/2018/08/05/drill-1.14-released/</guid>
         
@@ -236,7 +236,7 @@ See &lt;a href=&quot;/docs/image-metadata-format-plugin/&quot;&gt;Image Metadata
 
 &lt;p&gt;You can find a complete list of JIRAs resolved in the 1.13.0 release &lt;a href=&quot;/docs/apache-drill-1-13-0-release-notes/&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;
 </description>
-        <pubDate>Sun, 18 Mar 2018 00:00:00 -0700</pubDate>
+        <pubDate>Sun, 18 Mar 2018 00:00:00 +0200</pubDate>
         <link>/blog/2018/03/18/drill-1.13-released/</link>
         <guid isPermaLink="true">/blog/2018/03/18/drill-1.13-released/</guid>
         
@@ -394,7 +394,7 @@ cp jets3t-0.9.2/jars/jets3t-0.9.2.jar &lt;span class=&quot;nv&quot;&gt;$DRILL_HO
 
 &lt;p&gt;You can find a complete list of JIRAs resolved in the 1.12.0 release &lt;a href=&quot;https://issues.apache.org/jira/secure/ReleaseNote.jspa?version=12341087&amp;styleName=Html&amp;projectId=12313820&amp;Create=Create&amp;atl_token=A5KQ-2QAV-T4JA-FDED%7Cd194b12b906cd370f36d15e8af60a94592b89038%7Clin&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;
 </description>
-        <pubDate>Fri, 15 Dec 2017 00:00:00 -0800</pubDate>
+        <pubDate>Fri, 15 Dec 2017 00:00:00 +0200</pubDate>
         <link>/blog/2017/12/15/drill-1.12-released/</link>
         <guid isPermaLink="true">/blog/2017/12/15/drill-1.12-released/</guid>