drill-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bridg...@apache.org
Subject [30/51] [partial] drill-site git commit: Cleaning up deleted content.
Date Sat, 25 Feb 2017 00:15:39 GMT
http://git-wip-us.apache.org/repos/asf/drill-site/blob/d42f2cdd/docs/how-to-run-the-drill-demo/index.html
----------------------------------------------------------------------
diff --git a/docs/how-to-run-the-drill-demo/index.html b/docs/how-to-run-the-drill-demo/index.html
deleted file mode 100644
index 8250e82..0000000
--- a/docs/how-to-run-the-drill-demo/index.html
+++ /dev/null
@@ -1,1327 +0,0 @@
-<!DOCTYPE html>
-<html>
-
-<head>
-
-<meta charset="UTF-8">
-<meta name=viewport content="width=device-width, initial-scale=1">
-
-
-<title>How to Run the Drill Demo - 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="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/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/archived-pages/">Archived Pages</a></li>
-      
-        <li><a href="/docs/progress-reports/">Progress Reports</a></li>
-      
-        <li><a href="/docs/project-bylaws/">Project Bylaws</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>
-            
-          
-          </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 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/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>
-            
-          
-          </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);">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 class="reference internal" href="/docs/configuring-user-impersonation/">Configuring User Impersonation</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/configuring-user-authentication/">Configuring User Authentication</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/configuring-user-impersonation-with-hive-authorization/">Configuring User Impersonation with Hive Authorization</a></li>
-            
-          
-            
-              <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>
-              
-            </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>
-            
-          
-          </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/file-system-storage-plugin/">File System Storage Plugin</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/hbase-storage-plugin/">HBase Storage Plugin</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/hive-storage-plugin/">Hive Storage Plugin</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/mongodb-plugin-for-apache-drill/">MongoDB Plugin for Apache Drill</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/mapr-db-format/">MapR-DB Format</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>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/installing-the-tdc-file-on-windows/">Installing the TDC File 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/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-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/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-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>
-              
-            </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 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 class="reference internal" href="/docs/partition-pruning/">Partition Pruning</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/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>
-            
-          
-          </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"><a href="javascript: void(0);">SQL Reference</a></li>
-          <ul style="display: none">
-          
-            
-              <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/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>
-              
-            </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/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="display: none">
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/supported-sql-commands/">Supported SQL Commands</a></li>
-              
-                <li class="toctree-l3"><a class="reference internal" href="/docs/alter-session/">ALTER SESSION</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-table-as-ctas/">CREATE TABLE AS (CTAS)</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/drop-view/">DROP 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/explain/">EXPLAIN</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>
-            
-          
-          </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 class="reference internal" href="/docs/adding-custom-functions-to-drill/">Adding Custom Functions to Drill</a></li>
-            
-          
-            
-              <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);">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/drill-patch-review-tool/">Drill Patch Review Tool</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-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-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>
-            
-          
-            
-              <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>
-            
-          
-          </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/aol-search/">AOL Search</a></li>
-            
-          
-            
-              <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 current_section "><a href="javascript: void(0);">Archived Pages</a></li>
-          <ul class="current_section">
-          
-            
-              <li class="toctree-l2 current"><a class="reference internal" href="/docs/how-to-run-the-drill-demo/">How to Run the Drill Demo</a></li>
-            
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/what-is-apache-drill/">What is Apache Drill</a></li>
-            
-          
-          </ul>
-        
-      
-        
-          <li class="toctree-l1"><a href="javascript: void(0);">Progress Reports</a></li>
-          <ul style="display: none">
-          
-            
-              <li class="toctree-l2"><a class="reference internal" href="/docs/2014-q1-drill-report/">2014 Q1 Drill Report</a></li>
-            
-          
-          </ul>
-        
-      
-        
-          <li class="toctree-l1"><a class="reference internal" href="/docs/project-bylaws/">Project Bylaws</a></li>
-        
-      
-      </ul>
-
-    </div>
-  </div>
-</aside>
-
-
-<nav class="breadcrumbs">
-  <li><a href="/docs/">Docs</a></li>
- 
-  
-    <li><a href="/docs/archived-pages/">Archived Pages</a></li>
-  
-  <li>How to Run the Drill Demo</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/archived-pages/010-how-to-run-the-drill-demo.md" target="_blank"><i class="fa fa-pencil-square-o"></i></a>
-    
-
-    <div class="int_title left">
-      <h1>How to Run the Drill Demo</h1>
-
-    </div>
-
-    <link href="/css/docpage.css" rel="stylesheet" type="text/css">
-
-    <div class="int_text" align="left">
-      
-        <p>This section describes how to get started by running the Drill demo.</p>
-
-<h2 id="pre-requisites">Pre-requisites</h2>
-
-<ul>
-<li><p>Maven 2 or higher</p>
-
-<p>On Ubuntu, you can do this as root:</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">apt-get install maven2
-</code></pre></div>
-<p>On the Mac, maven is pre-installed.</p>
-
-<p>Note that installing maven can result in installing java 1.6 and setting that
-to your default version. Make sure you check java version before compiling or
-running.</p></li>
-<li><p>Java 1.7</p>
-
-<p>You will need java 1.7 to compile and run the Drill demo.</p>
-
-<p>On Ubuntu you can get the right version of Java by doing this as root:</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">apt-get install openjdk-7-jdk
-sudo update-alternatives --set java $(update-alternatives --list java | grep 7 | head -1)
-</code></pre></div>
-<p>On a Mac, go to <a href="http://www.oracle.com/technetwork/java/javase/downloads/java-se-%0Ajdk-7-download-432154.html">Oracle&#39;s web-
-site</a> to download and install java 7. You will also need
-to set JAVA_HOME in order to use the right version of java.</p>
-
-<p>Drill will not compile correctly using java 6. There is also a subtle problem
-that can occur if you have both<br>
-java 6 and java 7 with the default version set to 6. In that case, you may be
-able to compile, but execution may not work correctly.</p>
-
-<p>Send email to the dev list if this is a problem for you.</p></li>
-<li><p>Protobuf</p>
-
-<p>Drill requires Protobuf 2.5. Install this on Ubuntu using:</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">apt-get install protobuf-compiler
-</code></pre></div>
-<p>On Centos 6.4, OEL or RHEL you will need to compile protobuf-compiler:</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">wget http://protobuf.googlecode.com/files/protobuf-2.5.0.tar.bz2
-tar xfj protobuf-2.5.0.tar.bz2
-pushd protobuf-2.5.0
-./configure
-make
-sudo make install
-</code></pre></div></li>
-<li><p>git</p>
-
-<p>On Ubuntu you can install git by doing this as root:</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">apt-get install git-all
-</code></pre></div></li>
-</ul>
-
-<p>On the Mac or Windows, go to <a href="http://git-scm.com/downloads">this site</a> to
-download and install git.</p>
-
-<h2 id="check-your-installation-versions">Check your installation versions</h2>
-
-<p>Run</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">java -version
-mvn -version
-</code></pre></div>
-<p>Verify that your default java and maven versions are correct, and that maven
-runs the right version of java. On my Mac, you see something like this:</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">ted:apache-drill-1.0.0-m1$ java -version
-java version &quot;1.7.0_11&quot;
-Java(TM) SE Runtime Environment (build 1.7.0_11-b21)
-Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)
-ted:apache-drill-1.0.0-m1$ mvn -version
-Apache Maven 3.0.3 (r1075438; 2011-02-28 09:31:09-0800)
-Maven home: /usr/share/maven
-Java version: 1.7.0_11, vendor: Oracle Corporation
-Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_11.jdk/Contents/Home/jre
-Default locale: en_US, platform encoding: UTF-8
-OS name: &quot;mac os x&quot;, version: &quot;10.7.5&quot;, arch: &quot;x86_64&quot;, family: &quot;mac&quot;
-ted:apache-drill-1.0.0-m1$
-</code></pre></div>
-<h2 id="get-the-source">Get the Source</h2>
-<div class="highlight"><pre><code class="language-text" data-lang="text">git clone https://git-wip-us.apache.org/repos/asf/incubator-drill.git
-</code></pre></div>
-<h2 id="compile-the-code">Compile the Code</h2>
-<div class="highlight"><pre><code class="language-text" data-lang="text">cd incubator-drill/sandbox/prototype
-mvn clean install -DskipTests
-rm .classpath
-</code></pre></div>
-<p>This takes about a minute on a not-terribly-current MacBook.</p>
-
-<h2 id="run-the-interactive-drill-shell">Run the interactive Drill shell</h2>
-<div class="highlight"><pre><code class="language-text" data-lang="text">./sqlline -u jdbc:drill:schema=parquet-local -n admin -p admin
-</code></pre></div>
-<p>The first time you run this program, you will get reams of output. What is
-happening is that the program is running maven in order to build a
-(voluminous) class path for the actual program and stores this classpath into
-the file called <code>.classpath</code>. When you run this program again, it will note
-that this file already exists and avoid re-creating it. You should delete this
-file every time the dependencies of Drill are changed. If you start getting
-&quot;class not found&quot; errors, that is a good hint that <code>.classpath</code> is out of date
-and needs to be deleted and recreated.</p>
-
-<p>The <code>-u</code> argument to <a href="https://github.com/julianhyde/sqlline">sqlline</a> is a
-JDBC connection string that directs sqlline to connect to drill. The Drill
-JDBC driver currently includes enough smarts to run Drill in embedded mode so
-this command also effectively starts a local drill bit. The <code>schema=</code> part of
-the JDBC connection string causes Drill to consider the &quot;parquet-local&quot;
-storage engine to be default. Other storage engines can be specified. The list
-of supported storage engines can be found in the file
-<code>./sqlparser/src/main/resources/storage-engines.json</code>. Each storage engine
-specifies the format of the data and how to get the data. See the section
-below on &quot;Storage Engines&quot; for more detail.</p>
-
-<p>When you run sqlline, you should see something like this after quite a lot of
-log messages:</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">Connected to: Drill (version 1.0)
-Driver: Apache Drill JDBC Driver (version 1.0)
-Autocommit status: true
-Transaction isolation: TRANSACTION_REPEATABLE_READ
-sqlline version ??? by Marc Prud&#39;hommeaux
-0: jdbc:drill:schema=parquet-local&gt;
-</code></pre></div>
-<p><strong>Tip:</strong> To quit sqlline at any time, type &quot;!quit&quot; at the prompt.</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">0: jdbc:drill:schema=parquet-local&gt; !quit
-</code></pre></div>
-<h2 id="run-a-query">Run a Query</h2>
-
-<p>Once you have sqlline running you can now try out some queries:</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">select * from &quot;sample-data/region.parquet&quot;;
-</code></pre></div>
-<p>You should see a number of debug messages and then something like this:</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">+--------------------------------------------------------------------------------------------------------------------------------------------+
-|                                                                                  _MAP                                                      |
-+--------------------------------------------------------------------------------------------------------------------------------------------+
-| {&quot;R_REGIONKEY&quot;:0,&quot;R_NAME&quot;:&quot;AFRICA&quot;,&quot;R_COMMENT&quot;:&quot;lar deposits. blithely final packages cajole. regular waters are final requests. regular a |
-| {&quot;R_REGIONKEY&quot;:1,&quot;R_NAME&quot;:&quot;AMERICA&quot;,&quot;R_COMMENT&quot;:&quot;hs use ironic, even requests. s&quot;}                                                         |
-| {&quot;R_REGIONKEY&quot;:2,&quot;R_NAME&quot;:&quot;ASIA&quot;,&quot;R_COMMENT&quot;:&quot;ges. thinly even pinto beans ca&quot;}                                                            |
-| {&quot;R_REGIONKEY&quot;:3,&quot;R_NAME&quot;:&quot;EUROPE&quot;,&quot;R_COMMENT&quot;:&quot;ly final courts cajole furiously final excuse&quot;}                                            |
-| {&quot;R_REGIONKEY&quot;:4,&quot;R_NAME&quot;:&quot;MIDDLE EAST&quot;,&quot;R_COMMENT&quot;:&quot;uickly special accounts cajole carefully blithely close requests. carefully final asy |
-+--------------------------------------------------------------------------------------------------------------------------------------------+
-5 rows selected (1.103 seconds)
-</code></pre></div>
-<p>Drill has no idea what the structure of this
-file is in terms of what fields exist, but Drill does know that every record
-has a pseudo-field called <code>_MAP</code>. This field contains a map of all of the
-actual fields to values. When returned via JDBC, this fields is rendered as
-JSON since JDBC doesn&#39;t really understand maps.</p>
-
-<p>This can be made more readable by using a query like this:</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">select _MAP[&#39;R_REGIONKEY&#39;] as region_key, _MAP[&#39;R_NAME&#39;] as name, _MAP[&#39;R_COMMENT&#39;] as comment
-from &quot;sample-data/region.parquet&quot;;
-</code></pre></div>
-<p>The output will look something like this:</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">+-------------+--------------+---------------------------------------------------------------------------------------------------------------+
-| REGION_KEY  |     NAME     |                                                       COMMENT                                                 |
-+-------------+--------------+---------------------------------------------------------------------------------------------------------------+
-| 0           | AFRICA       | lar deposits. blithely final packages cajole. regular waters are final requests. regular accounts are accordi |
-| 1           | AMERICA      | hs use ironic, even requests. s                                                                               |
-| 2           | ASIA         | ges. thinly even pinto beans ca                                                                               |
-| 3           | EUROPE       | ly final courts cajole furiously final excuse                                                                 |
-| 4           | MIDDLE EAST  | uickly special accounts cajole carefully blithely close requests. carefully final asymptotes haggle furiousl  |
-+-------------+--------------+---------------------------------------------------------------------------------------------------------------+
-</code></pre></div>
-<p>In upcoming versions, Drill will insert the <code>_MAP[ ... ]</code> goo and will also
-unwrap the contents of <code>_MAP</code> in results so that things seem much more like
-ordinary SQL. The reason that things work this way now is that SQL itself
-requires considerable type information for queries to be parsed and that
-information doesn&#39;t necessarily exist for all kinds of files, especially those
-with very flexible schemas. To avoid all these problems, Drill adopts the
-convention of the _MAP fields for all kinds of input.</p>
-
-<h2 id="a-note-before-you-continue">A Note Before You Continue</h2>
-
-<p>Drill currently supports a wide variety of queries. It currently also has a
-fair number of deficiencies in terms of the number of operators that are
-actually supported and exactly which expressions are passed through to the
-execution engine in the correct form for execution.</p>
-
-<p>These problems fall into roughly three categories,</p>
-
-<ul>
-<li><p>missing operators. Many operators have been implemented for only a subset of the types available in Drill. This will cause queries to work for some types of data, but not for others. This is particularly true for operators with many possible type signatures such as comparisons. This lack is being remedied at a fast pace so check back in frequently if you suspect this might be a problem.</p>
-
-<p>Missing operators will result in error messages like this:</p>
-
-<p><code>UnsupportedOperationException:[ Missing function implementation: compare_to
-(BIT-OPTIONAL, BIT-OPTIONAL) ]</code></p></li>
-<li><p>missing casts. The SQL parser currently has trouble producing a valid logical plan without sufficient type information. Ironically, this type information is often not necessary to the execution engine because Drill generates the code on the fly based on the types of the data it encounters as data are processed. Currently, the work-around is to cast fields in certain situations to give the parser enough information to proceed. This problem will be remedied soon, but probably not quite as quickly as the missing operators.</p>
-
-<p>The typical error message that indicates you need an additional cast looks
-like</p>
-
-<p><code>Cannot apply &#39;&gt;&#39; to arguments of type &#39;&lt;ANY&gt; &gt; &lt;CHAR(1)&gt;&#39;. Supported
-form(s): &#39;&lt;COMPARABLE_TYPE&gt; &gt; &lt;COMPARABLE_TYPE&gt;&#39;</code></p>
-
-<ul>
-<li>weak optimizer. The current optimizer that transforms the logical plan into a physical plan is not the fully-featured cost based optimizer that Optiq normally uses. This is because some of the transformations that are needed for Drill are not yet fully supported by Optiq. In order to allow end-to-end execution of queries, a deterministic peep-hole optimizer has been used instead. This optimizer cannot handle large plan transformations and so some queries cannot be transformed correctly from logical to physical plan. We expect that the necessary changes to the cost-based optimizer will allow it to be used in an upcoming release, but didn&#39;t want to delay the current release waiting for that to happen.</li>
-</ul></li>
-</ul>
-
-<h2 id="try-fancier-queries">Try Fancier Queries</h2>
-
-<p>This query does a join between two files:</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">SELECT nations.name, regions.name FROM (
-  SELECT _MAP[&#39;N_REGIONKEY&#39;] as regionKey, _MAP[&#39;N_NAME&#39;] as name
-  FROM &quot;sample-data/nation.parquet&quot;) nations
-join (
-  SELECT _MAP[&#39;R_REGIONKEY&#39;] as regionKey, _MAP[&#39;R_NAME&#39;] as name
-  FROM &quot;sample-data/region.parquet&quot;) regions
-  on nations.regionKey = regions.regionKey
-  order by nations.name;
-</code></pre></div>
-<p>Notice the use of sub-queries to avoid the spread of the <code>_MAP</code> idiom.</p>
-
-<p>This query illustrates how a cast is currently necessary to make the parser
-happy:</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">SELECT
-  _MAP[&#39;N_REGIONKEY&#39;] as regionKey,
-  _MAP[&#39;N_NAME&#39;] as name
-FROM
-  &quot;sample-data/nation.parquet&quot;
-WHERE
-  cast(_MAP[&#39;N_NAME&#39;] as varchar) IN (&#39;MOROCCO&#39;, &#39;MOZAMBIQUE&#39;);
-</code></pre></div>
-<p>Here are more queries that you can try.</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">// count distinct
-SELECT count(distinct _MAP[&#39;N_REGIONKEY&#39;]) FROM &quot;sample-data/nation.parquet&quot;;
-
-// aliases
-SELECT
-  _MAP[&#39;N_REGIONKEY&#39;] as regionKey,
-  _MAP[&#39;N_NAME&#39;] as name
-FROM &quot;sample-data/nation.parquet&quot;;
-
-// order by
-SELECT
-  _MAP[&#39;N_REGIONKEY&#39;] as regionKey,
-  _MAP[&#39;N_NAME&#39;] as name
-FROM
-  &quot;sample-data/nation.parquet&quot;
-ORDER BY
-  _MAP[&#39;N_NAME&#39;] DESC;
-
-  // subquery order by
-select * from (
-SELECT
-  _MAP[&#39;N_REGIONKEY&#39;] as regionKey,
-  _MAP[&#39;N_NAME&#39;] as name
-FROM
-  &quot;sample-data/nation.parquet&quot;
-) as x
-ORDER BY
-  name DESC;
-
-  // String where
-SELECT
-  _MAP[&#39;N_REGIONKEY&#39;] as regionKey,
-  _MAP[&#39;N_NAME&#39;] as name
-FROM
-  &quot;sample-data/nation.parquet&quot;
-WHERE
-  cast(_MAP[&#39;N_NAME&#39;] as varchar) &gt; &#39;M&#39;;
-
-  // INNER Join + Order (parquet)
-SELECT n.name, r.name FROM
-(SELECT _MAP[&#39;N_REGIONKEY&#39;] as regionKey, _MAP[&#39;N_NAME&#39;] as name FROM &quot;sample-data/nation.parquet&quot;)n
-join (SELECT _MAP[&#39;R_REGIONKEY&#39;] as regionKey, _MAP[&#39;R_NAME&#39;] as name FROM &quot;sample-data/region.parquet&quot;)r
-using (regionKey);
-
-// INNER Join + Order (parquet)
-SELECT n.name, r.name FROM
-(SELECT _MAP[&#39;N_REGIONKEY&#39;] as regionKey, _MAP[&#39;N_NAME&#39;] as name FROM &quot;sample-data/nation.parquet&quot;)n
-join (SELECT _MAP[&#39;R_REGIONKEY&#39;] as regionKey, _MAP[&#39;R_NAME&#39;] as name FROM &quot;sample-data/region.parquet&quot;)r
-on n.regionKey = r.regionKey
-order by n.name;
-</code></pre></div>
-<h2 id="analyze-the-execution-of-queries">Analyze the Execution of Queries</h2>
-
-<p>Drill sends log events to a logback socket appender. This makes it easy to
-catch and filter these log events using a tool called Lilith. You can download
-<a href="http://www.huxhorn.de/">Lilith</a> and install it easily. A tutorial can be
-<a href="http://ekkescorner.wordpress.com/2009/09/05/osgi-logging-part-8%0A-viewing-log-events-lilith/">found here</a>. This is especially important if you find errors
-that you want to report back to the mailing list since Lilith will help you
-isolate the stack trace of interest.</p>
-
-<p>By default, Lilith uses a slightly lurid splash page based on a pre-Raphaelite
-image of the mythical Lilith. This is easily disabled if the image is not to
-your taste (or if your work-mates are not well-versed in Victorian views of
-Sumerian mythology).</p>
-
-    
-      
-        <div class="doc-nav">
-  
-  <span class="previous-toc"><a href="/docs/archived-pages/">← Archived Pages</a></span><span class="next-toc"><a href="/docs/what-is-apache-drill/">What is Apache Drill →</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>
-
-</body>
-</html>


Mime
View raw message