You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@drill.apache.org by ts...@apache.org on 2015/11/23 22:53:44 UTC

[01/30] drill git commit: correction from Andries

Repository: drill
Updated Branches:
  refs/heads/gh-pages ab18b18e6 -> 434de0bf3


correction from Andries


Project: http://git-wip-us.apache.org/repos/asf/drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/679a05ae
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/679a05ae
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/679a05ae

Branch: refs/heads/gh-pages
Commit: 679a05ae6faa5fce2ce0ddb50afd39f7c0d2d69c
Parents: ab18b18
Author: Kristine Hahn <kh...@maprtech.com>
Authored: Fri Nov 20 14:09:06 2015 -0800
Committer: Kristine Hahn <kh...@maprtech.com>
Committed: Fri Nov 20 14:09:06 2015 -0800

----------------------------------------------------------------------
 .../025-tutorial-develop-a-simple-function.md                  | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/679a05ae/_docs/develop-custom-functions/025-tutorial-develop-a-simple-function.md
----------------------------------------------------------------------
diff --git a/_docs/develop-custom-functions/025-tutorial-develop-a-simple-function.md b/_docs/develop-custom-functions/025-tutorial-develop-a-simple-function.md
index fd4261b..cae47d6 100644
--- a/_docs/develop-custom-functions/025-tutorial-develop-a-simple-function.md
+++ b/_docs/develop-custom-functions/025-tutorial-develop-a-simple-function.md
@@ -202,6 +202,9 @@ For simplicity, use maven to build your project in a pom.xml file as follows:
 </plugin>
 ```
 
+## Add a drill-module.conf File to Resources
+Add a `drill-module.conf` file in the resources folder of your project. The presence of this file tells Drill that your jar contains a custom function. If you have no specific configuration to set for your function, you can keep this file empty.
+
 ## Build and Deploy the Function
 Build the function using mvn package:
 
@@ -216,9 +219,6 @@ Copy the JAR files to the following location:
 
 `<Drill installation directory>/jars/3rdparty` 
 
-## Add a drill-module.conf File to Resources
-Add a `drill-module.conf` file in the resources folder of your project. The presence of this file tells Drill that your jar contains a custom function. If you have no specific configuration to set for your function, you can keep this file empty.
-
 ## Test the New Function
 
 Restart drill and run the following query on the [`employee.json`]({{site.baseurl}}/docs/querying-json-files/) file installed with Drill:


[29/30] drill git commit: Merge commit '38c3cb4f8051cd6896d2117a2edeb10e08200109' into gh-pages

Posted by ts...@apache.org.
Merge commit '38c3cb4f8051cd6896d2117a2edeb10e08200109' into gh-pages

Conflicts:
	_docs/connect-a-data-source/035-plugin-configuration-basics.md


Project: http://git-wip-us.apache.org/repos/asf/drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/471762cf
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/471762cf
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/471762cf

Branch: refs/heads/gh-pages
Commit: 471762cf75dd3ffb043cdf4676439e0f0c536102
Parents: 9ccc3bf 38c3cb4
Author: Tomer Shiran <ts...@gmail.com>
Authored: Mon Nov 23 10:46:30 2015 -0800
Committer: Tomer Shiran <ts...@gmail.com>
Committed: Mon Nov 23 10:46:30 2015 -0800

----------------------------------------------------------------------
 _data/docs.json                                 | 142 +++++-
 .../035-plugin-configuration-basics.md          |  10 +-
 .../025-tutorial-develop-a-simple-function.md   |   6 +-
 _docs/developer-information/009-rest-api.md     | 480 +++++++++++++++++++
 _docs/rn/008-1.3.0-rn.md                        | 159 ++++++
 5 files changed, 769 insertions(+), 28 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/471762cf/_data/docs.json
----------------------------------------------------------------------

http://git-wip-us.apache.org/repos/asf/drill/blob/471762cf/_docs/connect-a-data-source/035-plugin-configuration-basics.md
----------------------------------------------------------------------
diff --cc _docs/connect-a-data-source/035-plugin-configuration-basics.md
index 5788bc3,e8b5d22..f4cc268
--- a/_docs/connect-a-data-source/035-plugin-configuration-basics.md
+++ b/_docs/connect-a-data-source/035-plugin-configuration-basics.md
@@@ -84,8 -84,8 +84,8 @@@ The following table describes the attri
    </tr>
    <tr>
      <td>"formats"</td>
-     <td>"psv"<br>"csv"<br>"tsv"<br>"parquet"<br>"json"<br>"avro"<br>"maprdb"<br>"sequencefile" *</td>
-     <td>yes</td>
 -    <td>"psv"<br>"csv"<br>"tsv"<br>"parquet"<br>"json"<br>"avro"<br>"maprdb" *</td>
++<td>"psv"<br>"csv"<br>"tsv"<br>"parquet"<br>"json"<br>"avro"<br>"maprdb"<br>"sequencefile" *</td>
+     <td>yes if type is file</td>
      <td>One or more valid file formats for reading. Drill implicitly detects formats of some files based on extension or bits of data in the file; others require configuration.</td>
    </tr>
    <tr>
@@@ -159,7 -152,7 +159,7 @@@ For example, using uppercase letters i
  
  ## Storage Plugin REST API
  
- If you need to add a storage plugin configuration to Drill and do not want to use a web browser, Drill provides a REST API that you can use to create a storage plugin configuration. Use a POST and pass two properties:
 -If you need to add a storage plugin configuration to Drill and do not want to use a web browser, you can use the [Drill REST API]({{site.baseurl}}/docs/rest-api/#get-status-threads) to create a storage plugin configuration. Use a POST request and pass two properties:
++If you need to add a storage plugin configuration to Drill and do not want to use a web browser, you can use the [Drill REST API]({{site.baseurl}}/docs/rest-api/) to create a storage plugin configuration. Use a POST request and pass two properties:
  
  * name  
    The storage plugin configuration name. 


[30/30] drill git commit: Drill 1.3

Posted by ts...@apache.org.
Drill 1.3


Project: http://git-wip-us.apache.org/repos/asf/drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/434de0bf
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/434de0bf
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/434de0bf

Branch: refs/heads/gh-pages
Commit: 434de0bf31ba07a497fff5443ba85dffa9cde25f
Parents: 471762c
Author: Tomer Shiran <ts...@gmail.com>
Authored: Mon Nov 23 13:49:32 2015 -0800
Committer: Tomer Shiran <ts...@gmail.com>
Committed: Mon Nov 23 13:49:32 2015 -0800

----------------------------------------------------------------------
 _data/version.json                           | 10 +++++-----
 blog/_posts/2015-11-23-drill-1.3-released.md | 10 +++++++---
 2 files changed, 12 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/434de0bf/_data/version.json
----------------------------------------------------------------------
diff --git a/_data/version.json b/_data/version.json
index 04ec6ea..6880ebc 100644
--- a/_data/version.json
+++ b/_data/version.json
@@ -1,7 +1,7 @@
 {
-  "display_version": "1.2",
-  "full_version": "1.2.0",
-  "release_date": "October 16, 2015",
-  "blog_post": "/blog/2015/10/16/drill-1.2-released/",
-  "release_notes": "https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12313820&version=12329689"
+  "display_version": "1.3",
+  "full_version": "1.3.0",
+  "release_date": "November 23, 2015",
+  "blog_post": "/blog/2015/11/23/drill-1.3-released/",
+  "release_notes": "https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12313820&version=12332946"
 }

http://git-wip-us.apache.org/repos/asf/drill/blob/434de0bf/blog/_posts/2015-11-23-drill-1.3-released.md
----------------------------------------------------------------------
diff --git a/blog/_posts/2015-11-23-drill-1.3-released.md b/blog/_posts/2015-11-23-drill-1.3-released.md
index f299320..53cb356 100644
--- a/blog/_posts/2015-11-23-drill-1.3-released.md
+++ b/blog/_posts/2015-11-23-drill-1.3-released.md
@@ -11,15 +11,19 @@ Today I'm happy to announce the availability of the Drill 1.3 release. This rele
 
 Drill 1.3 utilizes a new library, called s3a, for reading data from S3. The s3a library includes improvements over the previous s3n library, such as higher performance and the ability to read large files (over 5GB).
 
-In addition to the new s3a library, Drill 1.3 makes it easier to set up your AWS credentials. Simply edit the file `conf/core-site.xml` in your Drill install directory. Check out the [step-by-step instructions in the documentation](/docs/s3-storage-plugin/).
+In addition to the new s3a library, Drill 1.3 makes it easier to set up your AWS credentials. Simply edit the file `conf/core-site.xml` in the Drill install directory. For more information, check out the [step-by-step instructions](/docs/s3-storage-plugin/) in the documentation.
 
 ## Heterogeneous Types
 
+Drill 1.3 includes support for mixed-type columns, often found in systems like MongoDB and file formats like JSON. For example, Drill can now columns that evolve from one data type to another over time.
 
+Drill 1.3 provides a collection of functions that enable you to test the data type of a value. For example, if you have a column that has both lists (arrays) and numbers, you can use the following query to extract the first element from the array values:
+
+`SELECT 1 + CASE WHEN is_list(a) THEN a[0] ELSE a END FROM table;`
 
 ## Text File Headers
 
-Drill is now able to parse the header row in text files (CSV, TSV, etc.). Prior to Drill 1.3, data had to be accessed through the `columns` array:
+Drill is now able to parse the header row in a text file (CSV, TSV, etc.). Prior to Drill 1.3, data had to be accessed through the `columns` array:
 
     SELECT columns[0], columns[1] FROM dfs.`/path/to/users.csv`
     
@@ -27,7 +31,7 @@ With Drill 1.3, you can use the actual column names in the CSV file:
 
     SELECT name, address FROM dfs.`/path/to/users.csv`
 
-Follow the [steps in the documentation](/docs/text-files-csv-tsv-psv/) to enable header parsing. You'll need to set the `extractHeader` parameter in the storage plugin configuration for the desired file extensions.
+Enabling header parsing is as simple as setting the `extractHeader` parameter in the storage plugin configuration for the desired file extensions. For more information, check out [the documentation](/docs/text-files-csv-tsv-psv/).
 
 ## Sequence Files
 


[03/30] drill git commit: add rest api docs

Posted by ts...@apache.org.
add rest api docs


Project: http://git-wip-us.apache.org/repos/asf/drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/295cd3ba
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/295cd3ba
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/295cd3ba

Branch: refs/heads/gh-pages
Commit: 295cd3ba76e8168815ef5a321e918ecd99bc69b9
Parents: b7feb0b
Author: Kristine Hahn <kh...@maprtech.com>
Authored: Fri Nov 20 14:14:08 2015 -0800
Committer: Kristine Hahn <kh...@maprtech.com>
Committed: Fri Nov 20 14:14:08 2015 -0800

----------------------------------------------------------------------
 _data/docs.json                             |  71 +++-
 _docs/developer-information/009-rest-api.md | 414 +++++++++++++++++++++++
 2 files changed, 475 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/295cd3ba/_data/docs.json
----------------------------------------------------------------------
diff --git a/_data/docs.json b/_data/docs.json
index 3f2fc11..4f0fd71 100644
--- a/_data/docs.json
+++ b/_data/docs.json
@@ -2671,8 +2671,8 @@
             "next_title": "Compiling Drill from Source", 
             "next_url": "/docs/compiling-drill-from-source/", 
             "parent": "Developer Information", 
-            "previous_title": "Developer Information", 
-            "previous_url": "/docs/developer-information/", 
+            "previous_title": "REST API", 
+            "previous_url": "/docs/rest-api/", 
             "relative_path": "_docs/developer-information/010-develop-drill.md", 
             "title": "Develop Drill", 
             "url": "/docs/develop-drill/"
@@ -2687,6 +2687,23 @@
                             "url": "/docs/developer-information/"
                         }
                     ], 
+                    "children": [], 
+                    "next_title": "Develop Drill", 
+                    "next_url": "/docs/develop-drill/", 
+                    "parent": "Developer Information", 
+                    "previous_title": "Developer Information", 
+                    "previous_url": "/docs/developer-information/", 
+                    "relative_path": "_docs/developer-information/009-rest-api.md", 
+                    "title": "REST API", 
+                    "url": "/docs/rest-api/"
+                }, 
+                {
+                    "breadcrumbs": [
+                        {
+                            "title": "Developer Information", 
+                            "url": "/docs/developer-information/"
+                        }
+                    ], 
                     "children": [
                         {
                             "breadcrumbs": [
@@ -2734,8 +2751,8 @@
                     "next_title": "Compiling Drill from Source", 
                     "next_url": "/docs/compiling-drill-from-source/", 
                     "parent": "Developer Information", 
-                    "previous_title": "Developer Information", 
-                    "previous_url": "/docs/developer-information/", 
+                    "previous_title": "REST API", 
+                    "previous_url": "/docs/rest-api/", 
                     "relative_path": "_docs/developer-information/010-develop-drill.md", 
                     "title": "Develop Drill", 
                     "url": "/docs/develop-drill/"
@@ -2924,8 +2941,8 @@
                     "url": "/docs/design-docs/"
                 }
             ], 
-            "next_title": "Develop Drill", 
-            "next_url": "/docs/develop-drill/", 
+            "next_title": "REST API", 
+            "next_url": "/docs/rest-api/", 
             "parent": "", 
             "previous_title": "Troubleshooting", 
             "previous_url": "/docs/troubleshooting/", 
@@ -7541,6 +7558,23 @@
             "title": "REPEATED_COUNT", 
             "url": "/docs/repeated-count/"
         }, 
+        "REST API": {
+            "breadcrumbs": [
+                {
+                    "title": "Developer Information", 
+                    "url": "/docs/developer-information/"
+                }
+            ], 
+            "children": [], 
+            "next_title": "Develop Drill", 
+            "next_url": "/docs/develop-drill/", 
+            "parent": "Developer Information", 
+            "previous_title": "Developer Information", 
+            "previous_url": "/docs/developer-information/", 
+            "relative_path": "_docs/developer-information/009-rest-api.md", 
+            "title": "REST API", 
+            "url": "/docs/rest-api/"
+        }, 
         "RPC Overview": {
             "breadcrumbs": [
                 {
@@ -15686,6 +15720,23 @@
                             "url": "/docs/developer-information/"
                         }
                     ], 
+                    "children": [], 
+                    "next_title": "Develop Drill", 
+                    "next_url": "/docs/develop-drill/", 
+                    "parent": "Developer Information", 
+                    "previous_title": "Developer Information", 
+                    "previous_url": "/docs/developer-information/", 
+                    "relative_path": "_docs/developer-information/009-rest-api.md", 
+                    "title": "REST API", 
+                    "url": "/docs/rest-api/"
+                }, 
+                {
+                    "breadcrumbs": [
+                        {
+                            "title": "Developer Information", 
+                            "url": "/docs/developer-information/"
+                        }
+                    ], 
                     "children": [
                         {
                             "breadcrumbs": [
@@ -15733,8 +15784,8 @@
                     "next_title": "Compiling Drill from Source", 
                     "next_url": "/docs/compiling-drill-from-source/", 
                     "parent": "Developer Information", 
-                    "previous_title": "Developer Information", 
-                    "previous_url": "/docs/developer-information/", 
+                    "previous_title": "REST API", 
+                    "previous_url": "/docs/rest-api/", 
                     "relative_path": "_docs/developer-information/010-develop-drill.md", 
                     "title": "Develop Drill", 
                     "url": "/docs/develop-drill/"
@@ -15923,8 +15974,8 @@
                     "url": "/docs/design-docs/"
                 }
             ], 
-            "next_title": "Develop Drill", 
-            "next_url": "/docs/develop-drill/", 
+            "next_title": "REST API", 
+            "next_url": "/docs/rest-api/", 
             "parent": "", 
             "previous_title": "Troubleshooting", 
             "previous_url": "/docs/troubleshooting/", 

http://git-wip-us.apache.org/repos/asf/drill/blob/295cd3ba/_docs/developer-information/009-rest-api.md
----------------------------------------------------------------------
diff --git a/_docs/developer-information/009-rest-api.md b/_docs/developer-information/009-rest-api.md
new file mode 100644
index 0000000..ed775f8
--- /dev/null
+++ b/_docs/developer-information/009-rest-api.md
@@ -0,0 +1,414 @@
+---
+title: "REST API"
+parent: "Developer Information"
+---
+
+You can use RESTful requests for programmatically performing the same set of operations as the [Drill Web Console](/starting-the-web-console/). For example, you can run queries, perform storage plugin task, such as creating a storage plugin, obtain profiles of queries, and get current memory metrics. 
+
+This document describes the Drill REST API commands. Commands having a .json suffix output return a JSON response body. Generally, these commands return HTML when used without the .json suffix.
+
+## Requests and Examples
+
+The REST requests connect to Drill using the familiar Web Console URI:
+
+http://<IP address or host name>:8047
+
+Examples using cURL are provided. Several examples use the donuts.json file. To download this file, go to [Drill test resources](https://github.com/apache/drill/blob/master/exec/java-exec/src/test/resources) page, locate donuts.json in the list of files, and download it. When using cURL, use unicode \u0027 for the single quotation mark as shown in the Query example.
+
+Before running REST requests, [start Drill]({{site.baseurl}}/docs/starting-drill-on-linux-and-mac-os-x).
+
+## Links to HTTP Methods
+
+The following short description of methods link to more information and examples:
+
+* Submit a query to Drill and return query results. 
+* 
+
+## Options
+These methods get and set system options.
+
+### GET /options.json
+
+List the name, default, and data type of the system and session options.
+
+**Example**
+
+     curl http://localhost:8047/options.json
+
+**Response Body**
+
+        [ {
+          "name" : "planner.broadcast_factor",
+          "value" : 1.0,
+          "type" : "SYSTEM",
+          "kind" : "DOUBLE"
+        }, 
+
+        . . .
+
+        {
+          "name" : "store.parquet.compression",
+          "value" : "snappy",
+          "type" : "SYSTEM",
+          "kind" : "STRING"
+        },
+
+        . . .
+
+        {
+          "name" : "exec.enable_union_type",
+          "value" : false,
+          "type" : "SYSTEM",
+          "kind" : "BOOLEAN"
+        } ]
+
+### POST /option/{optionName}
+
+Change the value or session/system type of the named option.
+
+**Parameter**
+optionName--The name of a [Drill system option]({{site.baseurl}}/docs/configuration-options-introduction/#system-options).
+
+**Request Body**
+Enclose option values of kind STRING in double quotation marks.
+
+        {
+          "name" : "<option name>",
+          "value" : ["]<new value>["],
+          "type" : "<SYSTEM or SESSION>",
+          "kind" : "<option data type>"
+        }
+
+**Example**
+        curl -X POST -H "Content-Type: application/json" -d '{"name" : "store.json.all_text_mode", "value" : true, "type" : "SYSTEM", "kind" : "BOOLEAN"}' http://localhost:8047/option/store.json.all_text_mode
+
+<!-- Not merged yet, need to test -->
+
+**Response Body**
+        {
+          "result" : "success"
+        }
+
+## Profile
+
+These methods get query profiles. 
+
+### GET /profiles.json
+
+Get the profiles of running and completed queries. 
+
+**Example**
+
+     curl http://localhost:8047/profiles.json
+
+**Response Body**
+
+        {
+          "runningQueries" : [ ],
+          "finishedQueries" : [ {
+            "queryId" : "29b2e988-35e7-4c85-3151-32c7d3347f15",
+            "time" : "11/18/2015 16:23:19",
+            "location" : "http://localhost:8047/profile/29b2e988-35e7-4c85-3151-32c7d3347f15.json",
+            "foreman" : "10.250.50.31",
+            "query" : "select * from dfs.`/Users/joe-user/apache-drill-1.3.0/sample-data/donuts.json` where name= 'Cake'",
+            "state" : "COMPLETED",
+            "user" : "anonymous"
+          }, 
+          . . .
+
+### GET /profiles/{queryid}.json
+
+Get the profile of given queryid.
+
+**Parameter**
+queryid--The UUID of the query in [standard UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format that Drill assigns to each query. 
+
+**Example**
+
+     curl http://localhost:8047/profiles/29b2e988-35e7-4c85-3151-32c7d3347f15.json
+
+**Response Body**
+
+        {"id":{"part1":3004720672638717061,"part2":3553677414795345685},"type":1,"start":1447892599827,"end":1447892599950,"query":"select * from dfs.`/Users/joe-user/drill/apache-drill-1.3.0/sample-data/donuts.json` where name= 'Cake'","plan":"00-00    Screen : rowType = RecordType(ANY *): 
+        . . ."lastUpdate":1447892599950,"lastProgress":1447892599950}]}],"user":"anonymous"}
+
+### GET /profiles/cancel/{queryid}
+
+Cancel the query having the given queryid.
+
+**Parameter**
+queryid--The UUID of the query in [standard UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format that Drill assigns to each query. 
+
+**Example**
+
+     curl http://localhost:8047/profiles/cancel/29b2e988-35e7-4c85-3151-32c7d3347f15
+
+**Response Body**
+
+        {
+          "result" : "success"
+        }
+
+## Query
+
+The query methods  
+
+### POST /query.json
+
+Submits a query, waits until the query completes, and then returns the results as single JSON object.
+
+**Parameters**
+
+* queryType--SQL, PHYSICAL, or LOGICAL are valid types. Use only "SQL". Other types are for internal use only.  
+* query--A SQL query that runs in Drill.
+
+**Request Body**
+        {
+          "queryType" : "SQL",
+          "query" : "<Drill query>"
+        }
+
+**Example**
+
+     curl -X POST -H "Content-Type: application/json" -d '{"queryType":"SQL", "query": "select * from dfs.`/Users/joe-user/apache-drill-1.3.0/sample-data/donuts.json` where name= \u0027Cake\u0027"}' http://localhost:8047/query.json
+
+**Response Body**
+
+     {
+       "columns" : [ "id", "type", "name", "ppu", "sales", "batters", "topping", "filling" ],
+       "rows" : [ {
+         "id" : "0001",
+         "sales" : "35",
+         "name" : "Cake",
+         "topping" : "[{\"id\":\"5001\",\"type\":\"None\"},{\"id\":\"5002\",\"type\":\"Glazed\"},{\"id\":\"5005\",\"type\":\"Sugar\"},{\"id\":\"5007\",\"type\":\"Powdered Sugar\"},{\"id\":\"5006\",\"type\":\"Chocolate with Sprinkles\"},{\"id\":\"5003\",\"type\":\"Chocolate\"},{\"id\":\"5004\",\"type\":\"Maple\"}]",
+         "ppu" : "0.55",
+         "type" : "donut",
+         "batters" : "{\"batter\":[{\"id\":\"1001\",\"type\":\"Regular\"},{\"id\":\"1002\",\"type\":\"Chocolate\"},{\"id\":\"1003\",\"type\":\"Blueberry\"},{\"id\":\"1004\",\"type\":\"Devil's Food\"}]}",
+         "filling" : "[]"
+       } ]
+     }
+
+## Storage
+
+The storage REST methods manage Drill storage plugin configurations.
+
+### GET /storage.json
+
+Get the list of storage plugin names and configurations.
+
+**Example**
+
+     curl http://localhost:8047/storage.json
+
+**Response Body**
+
+        [ {
+          "name" : "cp",
+          "config" : {
+            "type" : "file",
+            "enabled" : true,
+            "connection" : "classpath:///",
+            "workspaces" : null,
+            "formats" : {
+              "csv" : {
+                "type" : "text",
+                "extensions" : [ "csv" ],
+                "delimiter" : ","
+              },
+        . . .
+        {
+          "name" : "mongo",
+          "config" : {
+            "type" : "mongo",
+            "connection" : "mongodb://localhost:27017/",
+            "enabled" : false
+          }
+        } ]
+
+### GET /storage/{name}.json
+
+Get the named storage plugin name and configuration.
+
+**Parameter**
+name--The assigned name in the storage plugin definition.
+
+**Example**
+
+     curl http://localhost:8047/storage/mongo.json
+
+**Response Body**
+
+        {
+          "name" : "mongo",
+          "config" : {
+            "type" : "mongo",
+            "connection" : "mongodb://localhost:27017/",
+            "enabled" : false
+          }
+        }
+
+### Get /storage/{name}/enable/{val}
+
+Enable or disable the named storage plugin.
+
+**Parameters**
+* name--The assigned name in the storage plugin definition.
+* val--Either true (to enable) or false (to disable).
+
+**Example**
+
+     curl http://localhost:8047/storage/mongo/enable/true
+
+**Response Body**
+
+{
+  "result" : "success"
+}
+
+### POST /storage/{name}.json
+
+Create or update a storage plugin configuration.
+
+**Parameters**
+name--The name of the storage plugin configuration to create or update.
+
+**Request Body**
+
+     {
+        "name" : "<name of storage plugin configuration>",
+        "config" : {
+          "type" : "<type of storage plugin>",
+          "enabled" : <true or false>,
+            "connection" : "<type of distributed file system and address/path>",
+            "workspaces" : <null or unique workspace name>,
+            "formats" : <file format definitions> 
+        }
+     }
+
+Valid storage plugin types include file, hbase, hive, mongo, and jdbc. Construct the request body using storage plugin [attributes and definitions]({{site.baseurl}}/docs/plugin-configuration-basics/#list-of-attributes-and-definitions). The request body overwrites the existing configuration if there is any, and therefore, must include all required attributes and definitions.
+
+**Example**
+
+     curl -X POST -H "Content-Type: application/json" -d '{"name":"myplugin", "config": {"type": "file", "enabled": false, "connection": "file:///", "workspaces": { "root": { "location": "/", "writable": false, "defaultInputFormat": null}}, "formats": null}}' http://localhost:8047/storage/myplugin.json
+
+**Response Body**
+
+{
+  "result" : "success"
+}
+
+### DELETE /storage/{name}.json
+
+Delete a storage plugin configuration.
+
+**Parameter**
+name--The name of the storage plugin configuration to delete.
+
+**Example**
+
+     curl -X DELETE -H "Content-Type: application/json" http://localhost:8047/storage/myplugin.json
+
+**Response Body**
+
+        {
+          "result" : "success"
+        }
+
+## Metrics
+
+Gets metric information.
+
+### GET /stats.json
+
+Returns Drillbit stats such as ports and max direct memory.
+
+**Example**
+
+     curl http://localhost:8047/stats.json
+
+**Response Body**
+
+        [ {
+          "name" : "Number of Drill Bits",
+          "value" : 1
+        }, {
+          "name" : "Bit #0",
+          "value" : "10.250.50.31 initialized"
+        }, {
+          "name" : "Data Port Address",
+          "value" : "10.250.50.31:31012"
+        }, {
+          "name" : "User Port Address",
+          "value" : "10.250.50.31:31010"
+        }, {
+          "name" : "Control Port Address",
+          "value" : "10.250.50.31:31011"
+        }, {
+          "name" : "Maximum Direct Memory",
+          "value" : 8589934592
+        } ]
+
+### GET /status
+
+Get the status of Drill. 
+
+**Example**
+
+     curl http://localhost:8047/status
+
+**Response Body**
+
+          <!DOCTYPE html>
+          . . .
+
+            <div class="alert alert-success">
+              <strong>Running!</strong>
+          . . .
+
+          </html>
+
+
+### GET /status/metrics
+
+Get the current memory metrics.
+
+**Example**
+
+     curl http://localhost:8047/status/metrics
+
+**Response Body**
+
+        {"version":"3.0.0","gauges":{"PS-MarkSweep.count":{"value":0},"PS-MarkSweep.time":{"value":0},"PS-Scavenge.count":{"value":1},"PS-Scavenge.time":{"value":74},"blocked.
+         . . .
+        ,"drill.allocator.normal.hist":{"count":84,"max":1024,"mean":273.6666666666667,"min":12,"p50":256.0,"p75":448.0,"p95":896.0,"p98":1024.0,"p99":1024.0,"p999":1024.0,"stddev":248.17013855555368}},"meters":{},"timers":{}}
+
+### GET /status/threads
+
+Get status of threads.
+
+**Example**
+
+     curl http://localhost:8047/status/threads
+
+**Response Body**
+
+        main id=1 state=RUNNABLE (running in native)
+            at java.io.FileInputStream.read0(Native Method)
+            at java.io.FileInputStream.read(FileInputStream.java:210)
+        . . .
+
+        threadDeathWatcher-2-1 id=49 state=TIMED_WAITING
+            at java.lang.Thread.sleep(Native Method)
+            at io.netty.util.ThreadDeathWatcher$Watcher.run(ThreadDeathWatcher.java:137)
+            at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
+            at java.lang.Thread.run(Thread.java:745)
+
+        Scheduler-1174655113 id=50 state=TIMED_WAITING
+            - waiting on <0x738fda67> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
+            - locked <0x738fda67> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
+        . . .
+
+
+
+
+


[21/30] drill git commit: Update 060-text-files-csv-tsv-psv.md

Posted by ts...@apache.org.
Update 060-text-files-csv-tsv-psv.md


Project: http://git-wip-us.apache.org/repos/asf/drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/5bbf67ed
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/5bbf67ed
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/5bbf67ed

Branch: refs/heads/gh-pages
Commit: 5bbf67ed6633265da6b07ebd7877854e57c773aa
Parents: 204ad6f
Author: Abhi <ab...@users.noreply.github.com>
Authored: Sun Nov 22 16:05:11 2015 -0800
Committer: Tomer Shiran <ts...@gmail.com>
Committed: Mon Nov 23 10:10:29 2015 -0800

----------------------------------------------------------------------
 .../060-text-files-csv-tsv-psv.md               | 71 +++++++++++++++++---
 1 file changed, 63 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/5bbf67ed/_docs/data-sources-and-file-formats/060-text-files-csv-tsv-psv.md
----------------------------------------------------------------------
diff --git a/_docs/data-sources-and-file-formats/060-text-files-csv-tsv-psv.md b/_docs/data-sources-and-file-formats/060-text-files-csv-tsv-psv.md
index 03a5931..ccdfc54 100644
--- a/_docs/data-sources-and-file-formats/060-text-files-csv-tsv-psv.md
+++ b/_docs/data-sources-and-file-formats/060-text-files-csv-tsv-psv.md
@@ -11,15 +11,19 @@ Best practices for reading text files are:
 
 ### Select Data from Particular Columns
 
-Converting text files to another format, such as Parquet, using the CTAS command and a SELECT * statement is not recommended. Instead, select data from particular columns using the [COLUMN[n] syntax]({{site.baseurl}}/docs/querying-plain-text-files), and then assign meaningful column
-names using aliases. For example:
+Converting text files to another format, such as Parquet, using the CTAS command and a SELECT * statement is not recommended. Instead, you should select data from particular columns. If your text file have no headers, use the [COLUMN[n] syntax]({{site.baseurl}}/docs/querying-plain-text-files), and then assign meaningful column names using aliases. For example:
 
     CREATE TABLE parquet_users AS SELECT CAST(COLUMNS[0] AS INT) AS user_id,
     COLUMNS[1] AS username, CAST(COLUMNS[2] AS TIMESTAMP) AS registration_date
     FROM `users.csv1`;
 
-You need to select particular columns instead of using SELECT * for performance reasons. Drill reads CSV, TSV, and PSV files into a list of
-VARCHARS, rather than individual columns. While parquet supports and Drill reads lists, as of this release of Drill, the read path for complex data is not optimized. 
+You need to select particular columns instead of using SELECT * for performance reasons. Drill reads CSV, TSV, and PSV files into a list of VARCHARS, rather than individual columns. While parquet supports and Drill reads lists, as of this release of Drill, the read path for complex data is not optimized. 
+
+If your text file have headers, you can enable extractHeader and select particular columns by name. For example:
+
+    CREATE TABLE parquet_users AS SELECT CAST(user_id AS INT) AS user_id,
+    username, CAST(registration_date AS TIMESTAMP) AS registration_date
+    FROM `users.csv1`;
 
 ### Cast data
 
@@ -36,6 +40,7 @@ In the storage plugin configuration, you [set the attributes]({{site.baseurl}}/d
 * delimiter  
 * quote  
 * skipFirstLine
+* extractHeader
 
 Set the `sys.options` property setting `exec.storage.enable_new_text_reader` to true (the default) before attempting to use these attributes. 
 
@@ -58,8 +63,17 @@ As mentioned previously, set the `sys.options` property setting `exec.storage.en
 ## Examples of Querying Text Files
 The examples in this section show the results of querying CSV files that use and do not use a header, include comments, and use an escape character:
 
-### Using a Header in a File
+### Not Using a Header in a File
 
+    "csv": {
+      "type": "text",
+      "extensions": [
+        "csv2"
+      ],
+      "skipFirstLine": true,
+      "delimiter": ","
+    },
+    
 ![CSV with header]({{ site.baseurl }}/docs/img/csv_with_header.png)
 
     0: jdbc:drill:zk=local> SELECT * FROM dfs.`/tmp/csv_with_header.csv2`;
@@ -74,9 +88,48 @@ The examples in this section show the results of querying CSV files that use and
     | ["hello","1","2","3"]  |
     | ["hello","1","2","3"]  |
     +------------------------+
+    7 rows selected (0.112 seconds)
+    
+### Using a Header in a File
 
-### Not Using a Header in a File
+    "csv": {
+      "type": "text",
+      "extensions": [
+        "csv2"
+      ],
+      "skipFirstLine": false,
+      "extractHeader": true,
+      "delimiter": ","
+    },
+    
+![CSV with header]({{ site.baseurl }}/docs/img/csv_with_header.png)
+
+    0: jdbc:drill:zk=local> SELECT * FROM dfs.`/tmp/csv_with_header.csv2`;
+    +-------+------+------+------+
+    | name  | num1 | num2 | num3 |
+    +-------+------+------+------+
+    | hello |   1  |   2  |   3  |
+    | hello |   1  |   2  |   3  |
+    | hello |   1  |   2  |   3  |
+    | hello |   1  |   2  |   3  |
+    | hello |   1  |   2  |   3  |
+    | hello |   1  |   2  |   3  |
+    | hello |   1  |   2  |   3  |
+    +-------+------+------+------+
+    7 rows selected (0.12 seconds)
+
+### File with no Header
 
+    "csv": {
+      "type": "text",
+      "extensions": [
+        "csv"
+      ],
+      "skipFirstLine": false,
+      "extractHeader": false,
+      "delimiter": ","
+    },
+    
 ![CSV no header]({{ site.baseurl }}/docs/img/csv_no_header.png)
 
     0: jdbc:drill:zk=local> SELECT * FROM dfs.`/tmp/csv_no_header.csv`;
@@ -157,7 +210,8 @@ Storage Plugin B
         "csv"
       ],
       "comment": "&",
-      "skipFirstLine": true,
+      "skipFirstLine": false,
+      "extractHeader": true,
       "delimiter": ","
     },
 
@@ -177,7 +231,8 @@ You can use a different extension for files with and without a header, and use a
         "csv2"
       ],
       "comment": "&",
-      "skipFirstLine": true,
+      "skipFirstLine": false,
+      "extractHeader": true,
       "delimiter": ","
     },
 


[20/30] drill git commit: Update 035-plugin-configuration-basics.md

Posted by ts...@apache.org.
Update 035-plugin-configuration-basics.md


Project: http://git-wip-us.apache.org/repos/asf/drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/204ad6f3
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/204ad6f3
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/204ad6f3

Branch: refs/heads/gh-pages
Commit: 204ad6f310501673c8859360b9325cdffbe75642
Parents: fe75ca9
Author: Abhi <ab...@users.noreply.github.com>
Authored: Sun Nov 22 15:17:49 2015 -0800
Committer: Tomer Shiran <ts...@gmail.com>
Committed: Mon Nov 23 10:10:00 2015 -0800

----------------------------------------------------------------------
 .../connect-a-data-source/035-plugin-configuration-basics.md  | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/204ad6f3/_docs/connect-a-data-source/035-plugin-configuration-basics.md
----------------------------------------------------------------------
diff --git a/_docs/connect-a-data-source/035-plugin-configuration-basics.md b/_docs/connect-a-data-source/035-plugin-configuration-basics.md
index 743ca71..b460fb0 100644
--- a/_docs/connect-a-data-source/035-plugin-configuration-basics.md
+++ b/_docs/connect-a-data-source/035-plugin-configuration-basics.md
@@ -131,6 +131,13 @@ The following table describes the attributes you configure for storage plugins i
     <td>To include or omit the header when reading a delimited text file. Set to true to avoid reading headers as data.
     </td>
   </tr>
+    <tr>
+    <td>"formats" . . . "extractHeader"</td>
+    <td>true</td>
+    <td>no</td>
+    <td>Set to true to extract and use headers as column names when reading a delimited text file, false otherwise. Ensure skipFirstLine=false when extractHeader=true.
+    </td>
+  </tr>
 </table>
 
 \* Pertains only to distributed Drill installations using the mapr-drill package.  


[18/30] drill git commit: Add additional configuration information for specific databases

Posted by ts...@apache.org.
Add additional configuration information for specific databases


Project: http://git-wip-us.apache.org/repos/asf/drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/85f3a1bb
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/85f3a1bb
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/85f3a1bb

Branch: refs/heads/gh-pages
Commit: 85f3a1bbaa199754559a23c04e27f34ce32fe595
Parents: a5a7634
Author: Jacques Nadeau <ja...@gmail.com>
Authored: Sun Nov 22 10:33:34 2015 -0800
Committer: Tomer Shiran <ts...@gmail.com>
Committed: Mon Nov 23 10:08:48 2015 -0800

----------------------------------------------------------------------
 .../plugins/080-jdbc-storage-plugin.md          |  61 ----------
 .../plugins/080-rdbms-storage-plugin.md         | 116 +++++++++++++++++++
 2 files changed, 116 insertions(+), 61 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/85f3a1bb/_docs/connect-a-data-source/plugins/080-jdbc-storage-plugin.md
----------------------------------------------------------------------
diff --git a/_docs/connect-a-data-source/plugins/080-jdbc-storage-plugin.md b/_docs/connect-a-data-source/plugins/080-jdbc-storage-plugin.md
deleted file mode 100644
index c0b3093..0000000
--- a/_docs/connect-a-data-source/plugins/080-jdbc-storage-plugin.md
+++ /dev/null
@@ -1,61 +0,0 @@
----
-title: "JDBC Storage Plugin"
-parent: "Connect a Data Source"
----
-Drill 1.2 includes a JDBC storage plugin for connecting to data sources such as MySQL over JDBC. 
-
-## Example MySQL Setup
-To configure the JDBC storage plugin for MySQL, set up MySQL and the compatible MySQL driver:
-
-1. Download and install a current version MySQL.  
-2. Set up a MySQL password for the user account you plan to use.
-3. Download and unpack the compatible JDBC driver.  
-4. Put a copy of the driver JAR in the following location:  
-   `<drill_installation_directory>/jars/3rdparty`  
-
-## JDBC Storage Plugin Configuration
-
-Drill communicates with MySQL through the JDBC driver using the configuration that you specify in the Web Console or through the [REST API]({{site.baseurl}}/docs/plugin-configuration-basics/#storage-plugin-rest-api).  
-
-{% include startnote.html %}Verify that MySQL is running and the MySQL driver is in place before you configure the JDBC storage plugin.{% include endnote.html %}  
-
-To configure the JDBC storage plugin:
-
-1. To save your storage plugin configurations from one session to the next, set the following option in the `drill-override.conf` file if you are running Drill in embedded mode.
-
-    `drill.exec.sys.store.provider.local.path = "/mypath"`
-
-2. [Start the Drill shell]({{site.baseurl}}/docs/starting-drill-on-linux-and-mac-os-x/).  
-3. [Start the Web Console]({{site.baseurl}}/docs/starting-the-web-console/).  
-4. On the Storage tab, enter a name in **New Storage Plugin**. For example, enter myplugin.
-   Each configuration registered with Drill must have a distinct
-name. Names are case-sensitive.  
-
-    {% include startnote.html %}The URL differs depending on your installation and configuration.{% include endnote.html %}  
-5. Click **Create**.  
-6. In Configuration, set the required properties using JSON formatting as shown in the following example. Change the properties to match your environment.  
-
-        {
-          "type": "jdbc",
-          "driver": "com.mysql.jdbc.Driver",
-          "url": "jdbc:mysql://localhost:3306",
-          "username": "root",
-          "password": "mypassword",
-          "enabled": true
-        }  
-
-7. Click **Create**.  
-
-You can use the performance_schema database, which is installed with MySQL to query your MySQL performance_schema database. Include the names of the storage plugin configuration, the database, and table in dot notation the FROM clause as follows:
-
-      0: jdbc:drill:zk=local> select * from myplugin.performance_schema.accounts;
-      +--------+------------+----------------------+--------------------+
-      |  USER  |    HOST    | CURRENT_CONNECTIONS  | TOTAL_CONNECTIONS  |
-      +--------+------------+----------------------+--------------------+
-      | null   | null       | 18                   | 20                 |
-      | jdoe   | localhost  | 0                    | 813                |
-      | root   | localhost  | 3                    | 5                  |
-      +--------+------------+----------------------+--------------------+
-      3 rows selected (0.171 seconds)
-
-For information about related, unresolved issues in Drill 1.2, see the [release notes]({{site.baseurl}}/docs/apache-drill-1-2-0-release-notes/#important-unresolved-issues).
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/drill/blob/85f3a1bb/_docs/connect-a-data-source/plugins/080-rdbms-storage-plugin.md
----------------------------------------------------------------------
diff --git a/_docs/connect-a-data-source/plugins/080-rdbms-storage-plugin.md b/_docs/connect-a-data-source/plugins/080-rdbms-storage-plugin.md
new file mode 100644
index 0000000..570aaf1
--- /dev/null
+++ b/_docs/connect-a-data-source/plugins/080-rdbms-storage-plugin.md
@@ -0,0 +1,116 @@
+---
+title: "RDBMS Storage Plugin"
+parent: "Connect a Data Source"
+---
+Apache Drill supports querying a number of RDBMS instances. This allows you to connect your traditional databases to your Drill cluster so you can have a single view of both your relational and NoSQL datasources in a single system. 
+
+As with any source, Drill supports joins within and between all systems. Drill additionally has powerful pushdown capabilities with RDBMS sources. This includes support to push down join, where, group by, intersect and other SQL operations into a particular RDBMS source (as appropriate).
+
+### Using the RDBMS Storage Plugin
+
+Drill is designed to work with any relational datastore that provides a JDBC driver. Drill is actively tested with Postgres, MySQL, Oracle, MSSQL and Apache Derby. For each system, you will follow three basic steps for setup:
+
+  1. [Install Drill]({{ site.baseurl }}/docs/installing-drill-in-embedded-mode), if you do not already have it installed.
+  1. Copy your database's JDBC driver into the jars/3rdparty directory. (You'll need to do this on every node.)
+  1. Add a new storage configuration to Drill through the web ui. Example configurations for [Oracle](#Example-Oracle-Configuration), [SQL Server](#Example-SQL-Server-Configuration), [MySQL](#Example-MySQL-Configuration) and [Postgres](#Example-Postgres-Configuration) are provided below.
+  
+## Example: Working with MySQL
+
+Drill communicates with MySQL through the JDBC driver using the configuration that you specify in the Web Console or through the [REST API]({{site.baseurl}}/docs/plugin-configuration-basics/#storage-plugin-rest-api).  
+
+{% include startnote.html %}Verify that MySQL is running and the MySQL driver is in place before you configure the JDBC storage plugin.{% include endnote.html %}  
+
+To configure the JDBC storage plugin:
+
+1. [Start the Drill shell]({{site.baseurl}}/docs/starting-drill-on-linux-and-mac-os-x/).  
+1. [Start the Web Console]({{site.baseurl}}/docs/starting-the-web-console/).  
+1. On the Storage tab, enter a name in **New Storage Plugin**. For example, enter `myplugin`.
+   Each configuration registered with Drill must have a distinct name. Names are case-sensitive.  
+
+    {% include startnote.html %}The URL differs depending on your installation and configuration. See the [example configurations](#Example-Configurations) below for examples.{% include endnote.html %}  
+1. Click **Create**.  
+1. In Configuration, set the required properties using JSON formatting as shown in the following example. Change the properties to match your environment.  
+
+        {
+          "type": "jdbc",
+          "driver": "com.mysql.jdbc.Driver",
+          "url": "jdbc:mysql://localhost:3306",
+          "username": "root",
+          "password": "mypassword",
+          "enabled": true
+        }  
+
+7. Click **Create**.  
+
+You can use the performance_schema database, which is installed with MySQL to query your MySQL performance_schema database. Include the names of the storage plugin configuration, the database, and table in dot notation the FROM clause as follows:
+
+      0: jdbc:drill:zk=local> select * from myplugin.performance_schema.accounts;
+      +--------+------------+----------------------+--------------------+
+      |  USER  |    HOST    | CURRENT_CONNECTIONS  | TOTAL_CONNECTIONS  |
+      +--------+------------+----------------------+--------------------+
+      | null   | null       | 18                   | 20                 |
+      | jdoe   | localhost  | 0                    | 813                |
+      | root   | localhost  | 3                    | 5                  |
+      +--------+------------+----------------------+--------------------+
+      3 rows selected (0.171 seconds)
+
+
+
+
+## Example Configurations
+
+  
+### Example Oracle Configuration
+
+Download and install Oracle's Thin [ojdbc7.12.1.0.2.jar](http://www.oracle.com/technetwork/database/features/jdbc/default-2280470.html) driver and copy it to all nodes in your cluster.
+
+    {
+      type: "jdbc",
+      enabled: true,
+      driver: "oracle.jdbc.OracleDriver",
+      url:"jdbc:oracle:thin:user/password@1.2.3.4:1521/ORCL"
+    }
+
+### Example SQL Server Configuration
+
+For SQL Server, Drill has been tested with Microsoft's  [sqljdbc41.4.2.6420.100.jar](https://www.microsoft.com/en-US/download/details.aspx?id=11774) driver. Copy this jar file to all Drillbits. 
+
+{% include startnote.html %}You'll need to provide a database name as part of your JDBC connection string for Drill to correctly expose MSSQL schemas.{% include endnote.html %}
+
+    {
+      type: "jdbc",
+      enabled: true,
+      driver: "com.microsoft.sqlserver.jdbc.SQLServerDriver",
+      url:"jdbc:sqlserver://1.2.3.4:1433;databaseName=mydatabase",
+      username:"user",
+      password:"password"
+    }
+
+### Example MySQL Configuration
+
+For MySQL, Drill has been tested with MySQL's [mysql-connector-java-5.1.37-bin.jar](http://dev.mysql.com/downloads/connector/j/) driver. Copy this to all nodes.
+
+    {
+      type: "jdbc",
+      enabled: true,
+      driver: "com.mysql.jdbc.Driver",
+      url:"jdbc:mysql://1.2.3.4",
+      username:"user",
+      password:"password"
+    }
+
+### Example Postgres Configuration
+
+For Postgres, Drill has been tested with Postgres's [9.1-901-1.jdbc4](http://central.maven.org/maven2/org/postgresql/postgresql/) driver (any recent driver should work). Copy this driver file to all nodes.
+
+{% include startnote.html %}You'll need to provide a database name as part of your JDBC connection string for Drill to correctly expose Postgres tables.{% include endnote.html %}
+
+    {
+      type: "jdbc",
+      enabled: true,
+      driver: "org.postgresql.Driver",
+      url:"jdbc:postgresql://1.2.3.4/mydatabase",
+      username:"user",
+      password:"password"
+    }
+


[12/30] drill git commit: minor edits

Posted by ts...@apache.org.
minor edits


Project: http://git-wip-us.apache.org/repos/asf/drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/b6e5381f
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/b6e5381f
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/b6e5381f

Branch: refs/heads/gh-pages
Commit: b6e5381fc16329f9872978ff7d008a4e567f2776
Parents: 8139b71
Author: Kristine Hahn <kh...@maprtech.com>
Authored: Sat Nov 21 11:54:32 2015 -0800
Committer: Kristine Hahn <kh...@maprtech.com>
Committed: Sat Nov 21 11:54:32 2015 -0800

----------------------------------------------------------------------
 _docs/developer-information/009-rest-api.md | 30 ++++++++++++------------
 1 file changed, 15 insertions(+), 15 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/b6e5381f/_docs/developer-information/009-rest-api.md
----------------------------------------------------------------------
diff --git a/_docs/developer-information/009-rest-api.md b/_docs/developer-information/009-rest-api.md
index 34bd101..f81be89 100644
--- a/_docs/developer-information/009-rest-api.md
+++ b/_docs/developer-information/009-rest-api.md
@@ -23,28 +23,28 @@ Submit a query and return results.
 
 [**Profiles**](({{site.baseurl}}/docs/rest-api/#profiles))
 
-* Get the profiles of running and completed queries  
-* Get the profile of the query that has the given queryid  
-* Cancel the query that has the given queryid  
+* Get the profiles of running and completed queries.  
+* Get the profile of the query that has the given queryid.  
+* Cancel the query that has the given queryid.  
 
 [**Storage**]({{site.baseurl}}/docs/rest-api/#storage)
 
-* Get the list of storage plugin names and configurations  
-* Get the definition of the named storage plugin  
-* Enable or disable the named storage plugin  
-* Create or update a storage plugin configuration  
-* Delete a storage plugin configuration  
-* Get Drillbit information, such as ports numbers  
-* Get the current memory metrics  
+* Get the list of storage plugin names and configurations.  
+* Get the definition of the named storage plugin.  
+* Enable or disable the named storage plugin.  
+* Create or update a storage plugin configuration.  
+* Delete a storage plugin configuration.  
+* Get Drillbit information, such as ports numbers.  
+* Get the current memory metrics.  
 
 [**Threads**](({{site.baseurl}}/docs/rest-api/#threads))
 
-Get the status of threads  
+Get the status of threads.  
 
 [**Options**]({{site.baseurl}}/docs/rest-api/#options)
 
-* List information about system/session options  
-* Change the value or type of the named option  
+* List information about system/session options.  
+* Change the value or type of the named option.  
 
 
 ## Query
@@ -71,7 +71,7 @@ Submit a query and return results.
 
 **Example**
 
-     curl -X POST -H "Content-Type: application/json" -d '{"queryType":"SQL", "query": "select * from dfs.`/Users/joe-user/apache-drill-1.3.0/sample-data/donuts.json` where name= \u0027Cake\u0027"}' http://localhost:8047/query.json
+`curl -X POST -H "Content-Type: application/json" -d '{"queryType":"SQL", "query": "select * from dfs.`/Users/joe-user/apache-drill-1.3.0/sample-data/donuts.json` where name= \u0027Cake\u0027"}' http://localhost:8047/query.json`
 
 **Response Body**
 
@@ -447,7 +447,7 @@ List the name, default, and data type of the system and session options.
 
 ### POST /option/{optionName}
 
-Change the value or type of the named option.
+Change the value or type of the named option. <<Needs testing on 1.3>>
 
 **Parameter**
 


[06/30] drill git commit: line breaks

Posted by ts...@apache.org.
line breaks


Project: http://git-wip-us.apache.org/repos/asf/drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/e002364f
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/e002364f
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/e002364f

Branch: refs/heads/gh-pages
Commit: e002364f10f564ea61a85cc92947ceff728727e4
Parents: 376b787
Author: Kristine Hahn <kh...@maprtech.com>
Authored: Fri Nov 20 14:51:09 2015 -0800
Committer: Kristine Hahn <kh...@maprtech.com>
Committed: Fri Nov 20 14:51:09 2015 -0800

----------------------------------------------------------------------
 _docs/developer-information/009-rest-api.md | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/e002364f/_docs/developer-information/009-rest-api.md
----------------------------------------------------------------------
diff --git a/_docs/developer-information/009-rest-api.md b/_docs/developer-information/009-rest-api.md
index 266d7a8..7432b6e 100644
--- a/_docs/developer-information/009-rest-api.md
+++ b/_docs/developer-information/009-rest-api.md
@@ -22,7 +22,7 @@ Several examples in the document use the donuts.json file. To download this file
 The following short description of methods link to more information and examples:
 
 * [List information about system/session options]({{site.baseurl}}/docs/rest-api/#get-options-json).
-* [Change the value or type of the named option]().
+* [Change the value or type of the named option]({{site.baseurl}}/drill/docs/rest-api/#post-option-optionname).
 * [Submit a query to Drill and return query results](). 
 * 
 
@@ -73,9 +73,11 @@ List the name, default, and data type of the system and session options.
 Change the value or type of the named option.
 
 **Parameter**
+
 optionName--The name of a [Drill system option]({{site.baseurl}}/docs/configuration-options-introduction/#system-options).
 
 **Request Body**
+
 Enclose option values of kind STRING in double quotation marks.
 
         {
@@ -86,6 +88,7 @@ Enclose option values of kind STRING in double quotation marks.
         }
 
 **Example**
+
         curl -X POST -H "Content-Type: application/json" -d '{"name" : "store.json.all_text_mode", "value" : true, "type" : "SYSTEM", "kind" : "BOOLEAN"}' http://localhost:8047/option/store.json.all_text_mode
 
 <!-- Not merged yet, need to test -->
@@ -131,6 +134,7 @@ Get the profiles of running and completed queries.
 Get the profile of given queryid.
 
 **Parameter**
+
 queryid--The UUID of the query in [standard UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format that Drill assigns to each query. 
 
 **Example**
@@ -149,6 +153,7 @@ queryid--The UUID of the query in [standard UUID](https://en.wikipedia.org/wiki/
 Cancel the query having the given queryid.
 
 **Parameter**
+
 queryid--The UUID of the query in [standard UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format that Drill assigns to each query. 
 
 **Example**
@@ -177,6 +182,7 @@ Submits a query, waits until the query completes, and then returns the results a
 * query--A SQL query that runs in Drill.
 
 **Request Body**
+
         {
           "queryType" : "SQL",
           "query" : "<Drill query>"
@@ -248,6 +254,7 @@ Get the list of storage plugin names and configurations.
 Get the named storage plugin name and configuration.
 
 **Parameter**
+
 name--The assigned name in the storage plugin definition.
 
 **Example**
@@ -272,6 +279,7 @@ name--The assigned name in the storage plugin definition.
 Enable or disable the named storage plugin.
 
 **Parameters**
+
 * name--The assigned name in the storage plugin definition.
 * val--Either true (to enable) or false (to disable).
 
@@ -292,6 +300,7 @@ Enable or disable the named storage plugin.
 Create or update a storage plugin configuration.
 
 **Parameters**
+
 name--The name of the storage plugin configuration to create or update.
 
 **Request Body**
@@ -326,6 +335,7 @@ Valid storage plugin types include file, hbase, hive, mongo, and jdbc. Construct
 Delete a storage plugin configuration.
 
 **Parameter**
+
 name--The name of the storage plugin configuration to delete.
 
 **Example**


[04/30] drill git commit: minor edits

Posted by ts...@apache.org.
minor edits


Project: http://git-wip-us.apache.org/repos/asf/drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/a6111fb7
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/a6111fb7
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/a6111fb7

Branch: refs/heads/gh-pages
Commit: a6111fb7d04cf5539090f626de79d0de795dc234
Parents: 295cd3b
Author: Kristine Hahn <kh...@maprtech.com>
Authored: Fri Nov 20 14:37:31 2015 -0800
Committer: Kristine Hahn <kh...@maprtech.com>
Committed: Fri Nov 20 14:37:31 2015 -0800

----------------------------------------------------------------------
 _docs/developer-information/009-rest-api.md | 41 ++++++++++++------------
 1 file changed, 21 insertions(+), 20 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/a6111fb7/_docs/developer-information/009-rest-api.md
----------------------------------------------------------------------
diff --git a/_docs/developer-information/009-rest-api.md b/_docs/developer-information/009-rest-api.md
index ed775f8..c272c0e 100644
--- a/_docs/developer-information/009-rest-api.md
+++ b/_docs/developer-information/009-rest-api.md
@@ -3,24 +3,25 @@ title: "REST API"
 parent: "Developer Information"
 ---
 
-You can use RESTful requests for programmatically performing the same set of operations as the [Drill Web Console](/starting-the-web-console/). For example, you can run queries, perform storage plugin task, such as creating a storage plugin, obtain profiles of queries, and get current memory metrics. 
+The Drill REST API provides methods you can call to programmatically perform the same functions available in the [Drill Web Console](/starting-the-web-console/). For example, you can run queries, perform storage plugin tasks, such as creating a storage plugin, obtain profiles of queries, and get current memory metrics. 
 
-This document describes the Drill REST API commands. Commands having a .json suffix output return a JSON response body. Generally, these commands return HTML when used without the .json suffix.
+Drill REST API calls having a .json suffix output return a JSON response body. Generally, these commands return HTML when used without the .json suffix.
 
-## Requests and Examples
+A Drill REST request connects to Drill using the familiar Web Console URI:
 
-The REST requests connect to Drill using the familiar Web Console URI:
+`http://<IP address or host name>:8047`
 
-http://<IP address or host name>:8047
+## Getting Started with the Drill REST API
 
-Examples using cURL are provided. Several examples use the donuts.json file. To download this file, go to [Drill test resources](https://github.com/apache/drill/blob/master/exec/java-exec/src/test/resources) page, locate donuts.json in the list of files, and download it. When using cURL, use unicode \u0027 for the single quotation mark as shown in the Query example.
+Before making REST requests, [start Drill]({{site.baseurl}}/docs/starting-drill-on-linux-and-mac-os-x).
 
-Before running REST requests, [start Drill]({{site.baseurl}}/docs/starting-drill-on-linux-and-mac-os-x).
+Several examples in the document use the donuts.json file. To download this file, go to [Drill test resources](https://github.com/apache/drill/blob/master/exec/java-exec/src/test/resources) page, locate donuts.json in the list of files, and download it. When using cURL, use unicode \u0027 for the single quotation mark as shown in the Query example.
 
 ## Links to HTTP Methods
 
 The following short description of methods link to more information and examples:
 
+* [List information about system/session options]({{site.baseurl}}/docs/rest-api/#get-options-json).
 * Submit a query to Drill and return query results. 
 * 
 
@@ -33,7 +34,7 @@ List the name, default, and data type of the system and session options.
 
 **Example**
 
-     curl http://localhost:8047/options.json
+`curl http://localhost:8047/options.json`
 
 **Response Body**
 
@@ -99,7 +100,7 @@ Get the profiles of running and completed queries.
 
 **Example**
 
-     curl http://localhost:8047/profiles.json
+`curl http://localhost:8047/profiles.json`
 
 **Response Body**
 
@@ -125,7 +126,7 @@ queryid--The UUID of the query in [standard UUID](https://en.wikipedia.org/wiki/
 
 **Example**
 
-     curl http://localhost:8047/profiles/29b2e988-35e7-4c85-3151-32c7d3347f15.json
+`curl http://localhost:8047/profiles/29b2e988-35e7-4c85-3151-32c7d3347f15.json`
 
 **Response Body**
 
@@ -141,7 +142,7 @@ queryid--The UUID of the query in [standard UUID](https://en.wikipedia.org/wiki/
 
 **Example**
 
-     curl http://localhost:8047/profiles/cancel/29b2e988-35e7-4c85-3151-32c7d3347f15
+`curl http://localhost:8047/profiles/cancel/29b2e988-35e7-4c85-3151-32c7d3347f15`
 
 **Response Body**
 
@@ -151,7 +152,7 @@ queryid--The UUID of the query in [standard UUID](https://en.wikipedia.org/wiki/
 
 ## Query
 
-The query methods  
+Using the query method, you can programmatically run queries. 
 
 ### POST /query.json
 
@@ -198,7 +199,7 @@ Get the list of storage plugin names and configurations.
 
 **Example**
 
-     curl http://localhost:8047/storage.json
+`curl http://localhost:8047/storage.json`
 
 **Response Body**
 
@@ -234,7 +235,7 @@ name--The assigned name in the storage plugin definition.
 
 **Example**
 
-     curl http://localhost:8047/storage/mongo.json
+`curl http://localhost:8047/storage/mongo.json`
 
 **Response Body**
 
@@ -257,7 +258,7 @@ Enable or disable the named storage plugin.
 
 **Example**
 
-     curl http://localhost:8047/storage/mongo/enable/true
+`curl http://localhost:8047/storage/mongo/enable/true`
 
 **Response Body**
 
@@ -306,7 +307,7 @@ name--The name of the storage plugin configuration to delete.
 
 **Example**
 
-     curl -X DELETE -H "Content-Type: application/json" http://localhost:8047/storage/myplugin.json
+`curl -X DELETE -H "Content-Type: application/json" http://localhost:8047/storage/myplugin.json`
 
 **Response Body**
 
@@ -324,7 +325,7 @@ Returns Drillbit stats such as ports and max direct memory.
 
 **Example**
 
-     curl http://localhost:8047/stats.json
+`curl http://localhost:8047/stats.json`
 
 **Response Body**
 
@@ -354,7 +355,7 @@ Get the status of Drill.
 
 **Example**
 
-     curl http://localhost:8047/status
+`curl http://localhost:8047/status`
 
 **Response Body**
 
@@ -374,7 +375,7 @@ Get the current memory metrics.
 
 **Example**
 
-     curl http://localhost:8047/status/metrics
+`curl http://localhost:8047/status/metrics`
 
 **Response Body**
 
@@ -388,7 +389,7 @@ Get status of threads.
 
 **Example**
 
-     curl http://localhost:8047/status/threads
+`curl http://localhost:8047/status/threads`
 
 **Response Body**
 


[05/30] drill git commit: add horizontal lines

Posted by ts...@apache.org.
add horizontal lines


Project: http://git-wip-us.apache.org/repos/asf/drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/376b7878
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/376b7878
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/376b7878

Branch: refs/heads/gh-pages
Commit: 376b7878bc8c115eec8d7680dfd7e91bb0450725
Parents: a6111fb
Author: Kristine Hahn <kh...@maprtech.com>
Authored: Fri Nov 20 14:47:15 2015 -0800
Committer: Kristine Hahn <kh...@maprtech.com>
Committed: Fri Nov 20 14:47:15 2015 -0800

----------------------------------------------------------------------
 _docs/developer-information/009-rest-api.md | 34 ++++++++++++++++++++++--
 1 file changed, 32 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/376b7878/_docs/developer-information/009-rest-api.md
----------------------------------------------------------------------
diff --git a/_docs/developer-information/009-rest-api.md b/_docs/developer-information/009-rest-api.md
index c272c0e..266d7a8 100644
--- a/_docs/developer-information/009-rest-api.md
+++ b/_docs/developer-information/009-rest-api.md
@@ -22,12 +22,15 @@ Several examples in the document use the donuts.json file. To download this file
 The following short description of methods link to more information and examples:
 
 * [List information about system/session options]({{site.baseurl}}/docs/rest-api/#get-options-json).
-* Submit a query to Drill and return query results. 
+* [Change the value or type of the named option]().
+* [Submit a query to Drill and return query results](). 
 * 
 
 ## Options
 These methods get and set system options.
 
+----------
+
 ### GET /options.json
 
 List the name, default, and data type of the system and session options.
@@ -63,9 +66,11 @@ List the name, default, and data type of the system and session options.
           "kind" : "BOOLEAN"
         } ]
 
+----------
+
 ### POST /option/{optionName}
 
-Change the value or session/system type of the named option.
+Change the value or type of the named option.
 
 **Parameter**
 optionName--The name of a [Drill system option]({{site.baseurl}}/docs/configuration-options-introduction/#system-options).
@@ -94,6 +99,8 @@ Enclose option values of kind STRING in double quotation marks.
 
 These methods get query profiles. 
 
+----------
+
 ### GET /profiles.json
 
 Get the profiles of running and completed queries. 
@@ -117,6 +124,8 @@ Get the profiles of running and completed queries.
           }, 
           . . .
 
+----------
+
 ### GET /profiles/{queryid}.json
 
 Get the profile of given queryid.
@@ -133,6 +142,8 @@ queryid--The UUID of the query in [standard UUID](https://en.wikipedia.org/wiki/
         {"id":{"part1":3004720672638717061,"part2":3553677414795345685},"type":1,"start":1447892599827,"end":1447892599950,"query":"select * from dfs.`/Users/joe-user/drill/apache-drill-1.3.0/sample-data/donuts.json` where name= 'Cake'","plan":"00-00    Screen : rowType = RecordType(ANY *): 
         . . ."lastUpdate":1447892599950,"lastProgress":1447892599950}]}],"user":"anonymous"}
 
+----------
+
 ### GET /profiles/cancel/{queryid}
 
 Cancel the query having the given queryid.
@@ -154,6 +165,8 @@ queryid--The UUID of the query in [standard UUID](https://en.wikipedia.org/wiki/
 
 Using the query method, you can programmatically run queries. 
 
+----------
+
 ### POST /query.json
 
 Submits a query, waits until the query completes, and then returns the results as single JSON object.
@@ -193,6 +206,8 @@ Submits a query, waits until the query completes, and then returns the results a
 
 The storage REST methods manage Drill storage plugin configurations.
 
+----------
+
 ### GET /storage.json
 
 Get the list of storage plugin names and configurations.
@@ -226,6 +241,8 @@ Get the list of storage plugin names and configurations.
           }
         } ]
 
+----------
+
 ### GET /storage/{name}.json
 
 Get the named storage plugin name and configuration.
@@ -248,6 +265,8 @@ name--The assigned name in the storage plugin definition.
           }
         }
 
+----------
+
 ### Get /storage/{name}/enable/{val}
 
 Enable or disable the named storage plugin.
@@ -266,6 +285,8 @@ Enable or disable the named storage plugin.
   "result" : "success"
 }
 
+----------
+
 ### POST /storage/{name}.json
 
 Create or update a storage plugin configuration.
@@ -298,6 +319,8 @@ Valid storage plugin types include file, hbase, hive, mongo, and jdbc. Construct
   "result" : "success"
 }
 
+----------
+
 ### DELETE /storage/{name}.json
 
 Delete a storage plugin configuration.
@@ -319,6 +342,8 @@ name--The name of the storage plugin configuration to delete.
 
 Gets metric information.
 
+----------
+
 ### GET /stats.json
 
 Returns Drillbit stats such as ports and max direct memory.
@@ -349,6 +374,8 @@ Returns Drillbit stats such as ports and max direct memory.
           "value" : 8589934592
         } ]
 
+----------
+
 ### GET /status
 
 Get the status of Drill. 
@@ -368,6 +395,7 @@ Get the status of Drill.
 
           </html>
 
+----------
 
 ### GET /status/metrics
 
@@ -383,6 +411,8 @@ Get the current memory metrics.
          . . .
         ,"drill.allocator.normal.hist":{"count":84,"max":1024,"mean":273.6666666666667,"min":12,"p50":256.0,"p75":448.0,"p95":896.0,"p98":1024.0,"p99":1024.0,"p999":1024.0,"stddev":248.17013855555368}},"meters":{},"timers":{}}
 
+----------
+
 ### GET /status/threads
 
 Get status of threads.


[14/30] drill git commit: add rn, remove rest-api

Posted by ts...@apache.org.
add rn, remove rest-api


Project: http://git-wip-us.apache.org/repos/asf/drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/b5bd18e8
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/b5bd18e8
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/b5bd18e8

Branch: refs/heads/gh-pages
Commit: b5bd18e8dfc300da6b0809c65656b727a477442a
Parents: 363a72a
Author: Kristine Hahn <kh...@maprtech.com>
Authored: Sun Nov 22 19:44:05 2015 -0800
Committer: Kristine Hahn <kh...@maprtech.com>
Committed: Sun Nov 22 19:44:05 2015 -0800

----------------------------------------------------------------------
 _data/docs.json                             | 142 +++----
 _docs/developer-information/009-rest-api.md | 481 -----------------------
 _docs/rn/008-1.3.0-rn.md                    | 159 ++++++++
 3 files changed, 230 insertions(+), 552 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/b5bd18e8/_data/docs.json
----------------------------------------------------------------------
diff --git a/_data/docs.json b/_data/docs.json
index 4f0fd71..a65407e 100644
--- a/_data/docs.json
+++ b/_data/docs.json
@@ -375,12 +375,29 @@
             "next_title": "Apache Drill 1.1.0 Release Notes", 
             "next_url": "/docs/apache-drill-1-1-0-release-notes/", 
             "parent": "Release Notes", 
-            "previous_title": "Release Notes", 
-            "previous_url": "/docs/release-notes/", 
+            "previous_title": "Apache Drill 1.3.0 Release Notes", 
+            "previous_url": "/docs/apache-drill-1-3-0-release-notes/", 
             "relative_path": "_docs/rn/009-1.2.0-rn.md", 
             "title": "Apache Drill 1.2.0 Release Notes", 
             "url": "/docs/apache-drill-1-2-0-release-notes/"
         }, 
+        "Apache Drill 1.3.0 Release Notes": {
+            "breadcrumbs": [
+                {
+                    "title": "Release Notes", 
+                    "url": "/docs/release-notes/"
+                }
+            ], 
+            "children": [], 
+            "next_title": "Apache Drill 1.2.0 Release Notes", 
+            "next_url": "/docs/apache-drill-1-2-0-release-notes/", 
+            "parent": "Release Notes", 
+            "previous_title": "Release Notes", 
+            "previous_url": "/docs/release-notes/", 
+            "relative_path": "_docs/rn/008-1.3.0-rn.md", 
+            "title": "Apache Drill 1.3.0 Release Notes", 
+            "url": "/docs/apache-drill-1-3-0-release-notes/"
+        }, 
         "Apache Drill Contribution Guidelines": {
             "breadcrumbs": [
                 {
@@ -2671,8 +2688,8 @@
             "next_title": "Compiling Drill from Source", 
             "next_url": "/docs/compiling-drill-from-source/", 
             "parent": "Developer Information", 
-            "previous_title": "REST API", 
-            "previous_url": "/docs/rest-api/", 
+            "previous_title": "Developer Information", 
+            "previous_url": "/docs/developer-information/", 
             "relative_path": "_docs/developer-information/010-develop-drill.md", 
             "title": "Develop Drill", 
             "url": "/docs/develop-drill/"
@@ -2687,23 +2704,6 @@
                             "url": "/docs/developer-information/"
                         }
                     ], 
-                    "children": [], 
-                    "next_title": "Develop Drill", 
-                    "next_url": "/docs/develop-drill/", 
-                    "parent": "Developer Information", 
-                    "previous_title": "Developer Information", 
-                    "previous_url": "/docs/developer-information/", 
-                    "relative_path": "_docs/developer-information/009-rest-api.md", 
-                    "title": "REST API", 
-                    "url": "/docs/rest-api/"
-                }, 
-                {
-                    "breadcrumbs": [
-                        {
-                            "title": "Developer Information", 
-                            "url": "/docs/developer-information/"
-                        }
-                    ], 
                     "children": [
                         {
                             "breadcrumbs": [
@@ -2751,8 +2751,8 @@
                     "next_title": "Compiling Drill from Source", 
                     "next_url": "/docs/compiling-drill-from-source/", 
                     "parent": "Developer Information", 
-                    "previous_title": "REST API", 
-                    "previous_url": "/docs/rest-api/", 
+                    "previous_title": "Developer Information", 
+                    "previous_url": "/docs/developer-information/", 
                     "relative_path": "_docs/developer-information/010-develop-drill.md", 
                     "title": "Develop Drill", 
                     "url": "/docs/develop-drill/"
@@ -2941,8 +2941,8 @@
                     "url": "/docs/design-docs/"
                 }
             ], 
-            "next_title": "REST API", 
-            "next_url": "/docs/rest-api/", 
+            "next_title": "Develop Drill", 
+            "next_url": "/docs/develop-drill/", 
             "parent": "", 
             "previous_title": "Troubleshooting", 
             "previous_url": "/docs/troubleshooting/", 
@@ -7558,23 +7558,6 @@
             "title": "REPEATED_COUNT", 
             "url": "/docs/repeated-count/"
         }, 
-        "REST API": {
-            "breadcrumbs": [
-                {
-                    "title": "Developer Information", 
-                    "url": "/docs/developer-information/"
-                }
-            ], 
-            "children": [], 
-            "next_title": "Develop Drill", 
-            "next_url": "/docs/develop-drill/", 
-            "parent": "Developer Information", 
-            "previous_title": "Developer Information", 
-            "previous_url": "/docs/developer-information/", 
-            "relative_path": "_docs/developer-information/009-rest-api.md", 
-            "title": "REST API", 
-            "url": "/docs/rest-api/"
-        }, 
         "RPC Overview": {
             "breadcrumbs": [
                 {
@@ -7628,11 +7611,28 @@
                         }
                     ], 
                     "children": [], 
-                    "next_title": "Apache Drill 1.1.0 Release Notes", 
-                    "next_url": "/docs/apache-drill-1-1-0-release-notes/", 
+                    "next_title": "Apache Drill 1.2.0 Release Notes", 
+                    "next_url": "/docs/apache-drill-1-2-0-release-notes/", 
                     "parent": "Release Notes", 
                     "previous_title": "Release Notes", 
                     "previous_url": "/docs/release-notes/", 
+                    "relative_path": "_docs/rn/008-1.3.0-rn.md", 
+                    "title": "Apache Drill 1.3.0 Release Notes", 
+                    "url": "/docs/apache-drill-1-3-0-release-notes/"
+                }, 
+                {
+                    "breadcrumbs": [
+                        {
+                            "title": "Release Notes", 
+                            "url": "/docs/release-notes/"
+                        }
+                    ], 
+                    "children": [], 
+                    "next_title": "Apache Drill 1.1.0 Release Notes", 
+                    "next_url": "/docs/apache-drill-1-1-0-release-notes/", 
+                    "parent": "Release Notes", 
+                    "previous_title": "Apache Drill 1.3.0 Release Notes", 
+                    "previous_url": "/docs/apache-drill-1-3-0-release-notes/", 
                     "relative_path": "_docs/rn/009-1.2.0-rn.md", 
                     "title": "Apache Drill 1.2.0 Release Notes", 
                     "url": "/docs/apache-drill-1-2-0-release-notes/"
@@ -7808,8 +7808,8 @@
                     "url": "/docs/apache-drill-0-4-0-release-notes/"
                 }
             ], 
-            "next_title": "Apache Drill 1.2.0 Release Notes", 
-            "next_url": "/docs/apache-drill-1-2-0-release-notes/", 
+            "next_title": "Apache Drill 1.3.0 Release Notes", 
+            "next_url": "/docs/apache-drill-1-3-0-release-notes/", 
             "parent": "", 
             "previous_title": "Value Vectors", 
             "previous_url": "/docs/value-vectors/", 
@@ -15720,23 +15720,6 @@
                             "url": "/docs/developer-information/"
                         }
                     ], 
-                    "children": [], 
-                    "next_title": "Develop Drill", 
-                    "next_url": "/docs/develop-drill/", 
-                    "parent": "Developer Information", 
-                    "previous_title": "Developer Information", 
-                    "previous_url": "/docs/developer-information/", 
-                    "relative_path": "_docs/developer-information/009-rest-api.md", 
-                    "title": "REST API", 
-                    "url": "/docs/rest-api/"
-                }, 
-                {
-                    "breadcrumbs": [
-                        {
-                            "title": "Developer Information", 
-                            "url": "/docs/developer-information/"
-                        }
-                    ], 
                     "children": [
                         {
                             "breadcrumbs": [
@@ -15784,8 +15767,8 @@
                     "next_title": "Compiling Drill from Source", 
                     "next_url": "/docs/compiling-drill-from-source/", 
                     "parent": "Developer Information", 
-                    "previous_title": "REST API", 
-                    "previous_url": "/docs/rest-api/", 
+                    "previous_title": "Developer Information", 
+                    "previous_url": "/docs/developer-information/", 
                     "relative_path": "_docs/developer-information/010-develop-drill.md", 
                     "title": "Develop Drill", 
                     "url": "/docs/develop-drill/"
@@ -15974,8 +15957,8 @@
                     "url": "/docs/design-docs/"
                 }
             ], 
-            "next_title": "REST API", 
-            "next_url": "/docs/rest-api/", 
+            "next_title": "Develop Drill", 
+            "next_url": "/docs/develop-drill/", 
             "parent": "", 
             "previous_title": "Troubleshooting", 
             "previous_url": "/docs/troubleshooting/", 
@@ -15994,11 +15977,28 @@
                         }
                     ], 
                     "children": [], 
-                    "next_title": "Apache Drill 1.1.0 Release Notes", 
-                    "next_url": "/docs/apache-drill-1-1-0-release-notes/", 
+                    "next_title": "Apache Drill 1.2.0 Release Notes", 
+                    "next_url": "/docs/apache-drill-1-2-0-release-notes/", 
                     "parent": "Release Notes", 
                     "previous_title": "Release Notes", 
                     "previous_url": "/docs/release-notes/", 
+                    "relative_path": "_docs/rn/008-1.3.0-rn.md", 
+                    "title": "Apache Drill 1.3.0 Release Notes", 
+                    "url": "/docs/apache-drill-1-3-0-release-notes/"
+                }, 
+                {
+                    "breadcrumbs": [
+                        {
+                            "title": "Release Notes", 
+                            "url": "/docs/release-notes/"
+                        }
+                    ], 
+                    "children": [], 
+                    "next_title": "Apache Drill 1.1.0 Release Notes", 
+                    "next_url": "/docs/apache-drill-1-1-0-release-notes/", 
+                    "parent": "Release Notes", 
+                    "previous_title": "Apache Drill 1.3.0 Release Notes", 
+                    "previous_url": "/docs/apache-drill-1-3-0-release-notes/", 
                     "relative_path": "_docs/rn/009-1.2.0-rn.md", 
                     "title": "Apache Drill 1.2.0 Release Notes", 
                     "url": "/docs/apache-drill-1-2-0-release-notes/"
@@ -16174,8 +16174,8 @@
                     "url": "/docs/apache-drill-0-4-0-release-notes/"
                 }
             ], 
-            "next_title": "Apache Drill 1.2.0 Release Notes", 
-            "next_url": "/docs/apache-drill-1-2-0-release-notes/", 
+            "next_title": "Apache Drill 1.3.0 Release Notes", 
+            "next_url": "/docs/apache-drill-1-3-0-release-notes/", 
             "parent": "", 
             "previous_title": "Value Vectors", 
             "previous_url": "/docs/value-vectors/", 

http://git-wip-us.apache.org/repos/asf/drill/blob/b5bd18e8/_docs/developer-information/009-rest-api.md
----------------------------------------------------------------------
diff --git a/_docs/developer-information/009-rest-api.md b/_docs/developer-information/009-rest-api.md
deleted file mode 100644
index d21abad..0000000
--- a/_docs/developer-information/009-rest-api.md
+++ /dev/null
@@ -1,481 +0,0 @@
----
-title: "REST API"
-parent: "Developer Information"
----
-
-The Drill REST API provides programmatic access to Drill through the [Web Console](/starting-the-web-console/). 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. 
-
-AN HTTP request uses the familiar Web Console URI:
-
-`http://<IP address or host name>:8047`
-
-## Getting Started
-
-Before making HTTP requests, [start Drill]({{site.baseurl}}/docs/starting-drill-on-linux-and-mac-os-x).
-
-Several examples in the document use the donuts.json file. To download this file, go to [Drill test resources](https://github.com/apache/drill/blob/master/exec/java-exec/src/test/resources) page, locate donuts.json in the list of files, and download it. When using cURL, use unicode \u0027 for the single quotation mark as shown in the Query example.
-
-This documentation presents HTTP methods in the same order as functions appear in the Web Console:
-
-[**Query**]({{site.baseurl}}/docs/rest-api/#query)
-
-Submit a query and return results.
-
-[**Profiles**](({{site.baseurl}}/docs/rest-api/#profiles))
-
-* Get the profiles of running and completed queries.  
-* Get the profile of the query that has the given queryid.  
-* Cancel the query that has the given queryid.  
-
-[**Storage**]({{site.baseurl}}/docs/rest-api/#storage)
-
-* Get the list of storage plugin names and configurations.  
-* Get the definition of the named storage plugin.  
-* Enable or disable the named storage plugin.  
-* Create or update a storage plugin configuration.  
-* Delete a storage plugin configuration.  
-* Get Drillbit information, such as ports numbers.  
-* Get the current memory metrics.  
-
-[**Threads**](({{site.baseurl}}/docs/rest-api/#threads))
-
-Get the status of threads.  
-
-[**Options**]({{site.baseurl}}/docs/rest-api/#options)
-
-* List information about system/session options.  
-* Change the value or type of the named option.  
-
-
-## Query
-
-Using the query method, you can programmatically run queries. 
-
-----------
-
-### POST /query.json
-
-Submit a query and return results.
-
-**Parameters**
-
-* queryType--SQL, PHYSICAL, or LOGICAL are valid types. Use only "SQL". Other types are for internal use only.  
-* query--A SQL query that runs in Drill.
-
-**Request Body**
-
-        {
-          "queryType" : "SQL",
-          "query" : "<Drill query>"
-        }
-
-**Example**
-
-     curl -X POST -H "Content-Type: application/json" -d '{"queryType":"SQL", "query": "select * from dfs.`/Users/joe-user/apache-drill-1.3.0/sample-data/donuts.json` where name= \u0027Cake\u0027"}' http://localhost:8047/query.json
-
-**Response Body**
-
-     {
-       "columns" : [ "id", "type", "name", "ppu", "sales", "batters", "topping", "filling" ],
-       "rows" : [ {
-         "id" : "0001",
-         "sales" : "35",
-         "name" : "Cake",
-         "topping" : "[{\"id\":\"5001\",\"type\":\"None\"},{\"id\":\"5002\",\"type\":\"Glazed\"},{\"id\":\"5005\",\"type\":\"Sugar\"},{\"id\":\"5007\",\"type\":\"Powdered Sugar\"},{\"id\":\"5006\",\"type\":\"Chocolate with Sprinkles\"},{\"id\":\"5003\",\"type\":\"Chocolate\"},{\"id\":\"5004\",\"type\":\"Maple\"}]",
-         "ppu" : "0.55",
-         "type" : "donut",
-         "batters" : "{\"batter\":[{\"id\":\"1001\",\"type\":\"Regular\"},{\"id\":\"1002\",\"type\":\"Chocolate\"},{\"id\":\"1003\",\"type\":\"Blueberry\"},{\"id\":\"1004\",\"type\":\"Devil's Food\"}]}",
-         "filling" : "[]"
-       } ]
-     }
-
-## Profiles
-
-These methods get query profiles. 
-
-----------
-
-### GET /profiles.json
-
-Get the profiles of running and completed queries. 
-
-**Example**
-
-`curl http://localhost:8047/profiles.json`
-
-**Response Body**
-
-        {
-          "runningQueries" : [ ],
-          "finishedQueries" : [ {
-            "queryId" : "29b2e988-35e7-4c85-3151-32c7d3347f15",
-            "time" : "11/18/2015 16:23:19",
-            "location" : "http://localhost:8047/profile/29b2e988-35e7-4c85-3151-32c7d3347f15.json",
-            "foreman" : "10.250.50.31",
-            "query" : "select * from dfs.`/Users/joe-user/apache-drill-1.3.0/sample-data/donuts.json` where name= 'Cake'",
-            "state" : "COMPLETED",
-            "user" : "anonymous"
-          }, 
-          . . .
-
-----------
-
-### GET /profiles/{queryid}.json
-
-Get the profile of the query that has the given queryid.
-
-**Parameter**
-
-queryid--The UUID of the query in [standard UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format that Drill assigns to each query. 
-
-**Example**
-
-`curl http://localhost:8047/profiles/29b2e988-35e7-4c85-3151-32c7d3347f15.json`
-
-**Response Body**
-
-        {"id":{"part1":3004720672638717061,"part2":3553677414795345685},"type":1,"start":1447892599827,"end":1447892599950,"query":"select * from dfs.`/Users/joe-user/drill/apache-drill-1.3.0/sample-data/donuts.json` where name= 'Cake'","plan":"00-00    Screen : rowType = RecordType(ANY *): 
-        . . ."lastUpdate":1447892599950,"lastProgress":1447892599950}]}],"user":"anonymous"}
-
-----------
-
-### GET /profiles/cancel/{queryid}
-
-Cancel the query that has the given queryid.
-
-**Parameter**
-
-queryid--The UUID of the query in [standard UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format that Drill assigns to each query. 
-
-**Example**
-
-`curl http://localhost:8047/profiles/cancel/29b2e988-35e7-4c85-3151-32c7d3347f15`
-
-**Response Body**
-
-        {
-          "result" : "success"
-        }
-
-
-## Storage
-
-The storage REST methods manage Drill storage plugin configurations.
-
-----------
-
-### GET /storage.json
-
-Get the list of storage plugin names and configurations.
-
-**Example**
-
-`curl http://localhost:8047/storage.json`
-
-**Response Body**
-
-        [ {
-          "name" : "cp",
-          "config" : {
-            "type" : "file",
-            "enabled" : true,
-            "connection" : "classpath:///",
-            "workspaces" : null,
-            "formats" : {
-              "csv" : {
-                "type" : "text",
-                "extensions" : [ "csv" ],
-                "delimiter" : ","
-              },
-        . . .
-        {
-          "name" : "mongo",
-          "config" : {
-            "type" : "mongo",
-            "connection" : "mongodb://localhost:27017/",
-            "enabled" : false
-          }
-        } ]
-
-----------
-
-### GET /storage/{name}.json
-
-Get the definition of the named storage plugin.
-
-**Parameter**
-
-name--The assigned name in the storage plugin definition.
-
-**Example**
-
-`curl http://localhost:8047/storage/mongo.json`
-
-**Response Body**
-
-        {
-          "name" : "mongo",
-          "config" : {
-            "type" : "mongo",
-            "connection" : "mongodb://localhost:27017/",
-            "enabled" : false
-          }
-        }
-
-----------
-
-### Get /storage/{name}/enable/{val}
-
-Enable or disable the named storage plugin.
-
-**Parameters**
-
-* name--The assigned name in the storage plugin definition.
-* val--Either true (to enable) or false (to disable).
-
-**Example**
-
-`curl http://localhost:8047/storage/mongo/enable/true`
-
-**Response Body**
-
-{
-  "result" : "success"
-}
-
-----------
-
-### POST /storage/{name}.json
-
-Create or update a storage plugin configuration.
-
-**Parameters**
-
-name--The name of the storage plugin configuration to create or update.
-
-**Request Body**
-
-     {
-        "name" : "<name of storage plugin configuration>",
-        "config" : {
-          "type" : "<type of storage plugin>",
-          "enabled" : <true or false>,
-            "connection" : "<type of distributed file system and address/path>",
-            "workspaces" : <null or unique workspace name>,
-            "formats" : <file format definitions> 
-        }
-     }
-
-Valid storage plugin types include file, hbase, hive, mongo, and jdbc. Construct the request body using storage plugin [attributes and definitions]({{site.baseurl}}/docs/plugin-configuration-basics/#list-of-attributes-and-definitions). The request body overwrites the existing configuration if there is any, and therefore, must include all required attributes and definitions.
-
-**Example**
-
-     curl -X POST -H "Content-Type: application/json" -d '{"name":"myplugin", "config": {"type": "file", "enabled": false, "connection": "file:///", "workspaces": { "root": { "location": "/", "writable": false, "defaultInputFormat": null}}, "formats": null}}' http://localhost:8047/storage/myplugin.json
-
-**Response Body**
-
-{
-  "result" : "success"
-}
-
-----------
-
-### DELETE /storage/{name}.json
-
-Delete a storage plugin configuration.
-
-**Parameter**
-
-name--The name of the storage plugin configuration to delete.
-
-**Example**
-
-`curl -X DELETE -H "Content-Type: application/json" http://localhost:8047/storage/myplugin.json`
-
-**Response Body**
-
-        {
-          "result" : "success"
-        }
-
-## Metrics
-
-Gets metric information.
-
-----------
-
-### GET /stats.json
-
-Get Drillbit information, such as ports numbers.
-
-**Example**
-
-`curl http://localhost:8047/stats.json`
-
-**Response Body**
-
-        [ {
-          "name" : "Number of Drill Bits",
-          "value" : 1
-        }, {
-          "name" : "Bit #0",
-          "value" : "10.250.50.31 initialized"
-        }, {
-          "name" : "Data Port Address",
-          "value" : "10.250.50.31:31012"
-        }, {
-          "name" : "User Port Address",
-          "value" : "10.250.50.31:31010"
-        }, {
-          "name" : "Control Port Address",
-          "value" : "10.250.50.31:31011"
-        }, {
-          "name" : "Maximum Direct Memory",
-          "value" : 8589934592
-        } ]
-
-----------
-
-### GET /status
-
-Get the status of Drill. 
-
-**Example**
-
-`curl http://localhost:8047/status`
-
-**Response Body**
-
-          <!DOCTYPE html>
-          . . .
-
-            <div class="alert alert-success">
-              <strong>Running!</strong>
-          . . .
-
-          </html>
-
-----------
-
-### GET /status/metrics
-
-Get the current memory metrics.
-
-**Example**
-
-`curl http://localhost:8047/status/metrics`
-
-**Response Body**
-
-        {"version":"3.0.0","gauges":{"PS-MarkSweep.count":{"value":0},"PS-MarkSweep.time":{"value":0},"PS-Scavenge.count":{"value":1},"PS-Scavenge.time":{"value":74},"blocked.
-         . . .
-        ,"drill.allocator.normal.hist":{"count":84,"max":1024,"mean":273.6666666666667,"min":12,"p50":256.0,"p75":448.0,"p95":896.0,"p98":1024.0,"p99":1024.0,"p999":1024.0,"stddev":248.17013855555368}},"meters":{},"timers":{}}
-
-## Threads
-
-Get information about threads.
-
-----------
-
-### GET /status/threads
-
-Get the status of threads.
-
-**Example**
-
-`curl http://localhost:8047/status/threads`
-
-**Response Body**
-
-        main id=1 state=RUNNABLE (running in native)
-            at java.io.FileInputStream.read0(Native Method)
-            at java.io.FileInputStream.read(FileInputStream.java:210)
-        . . .
-
-        threadDeathWatcher-2-1 id=49 state=TIMED_WAITING
-            at java.lang.Thread.sleep(Native Method)
-            at io.netty.util.ThreadDeathWatcher$Watcher.run(ThreadDeathWatcher.java:137)
-            at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
-            at java.lang.Thread.run(Thread.java:745)
-
-        Scheduler-1174655113 id=50 state=TIMED_WAITING
-            - waiting on <0x738fda67> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
-            - locked <0x738fda67> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
-        . . .
-
-## Options
-These methods get and set system options.
-
-----------
-
-### GET /options.json
-
-List the name, default, and data type of the system and session options.
-
-**Example**
-
-`curl http://localhost:8047/options.json`
-
-**Response Body**
-
-        [ {
-          "name" : "planner.broadcast_factor",
-          "value" : 1.0,
-          "type" : "SYSTEM",
-          "kind" : "DOUBLE"
-        }, 
-
-        . . .
-
-        {
-          "name" : "store.parquet.compression",
-          "value" : "snappy",
-          "type" : "SYSTEM",
-          "kind" : "STRING"
-        },
-
-        . . .
-
-        {
-          "name" : "exec.enable_union_type",
-          "value" : false,
-          "type" : "SYSTEM",
-          "kind" : "BOOLEAN"
-        } ]
-
-----------
-
-### POST /option/{optionName}
-
-Change the value or type of the named option. Doc Note: Test on 1.3.
-
-**Parameter**
-
-optionName--The name of a [Drill system option]({{site.baseurl}}/docs/configuration-options-introduction/#system-options).
-
-**Request Body**
-
-Enclose option values of kind STRING in double quotation marks.
-
-        {
-          "name" : "<option name>",
-          "value" : ["]<new value>["],
-          "type" : "<SYSTEM or SESSION>",
-          "kind" : "<option data type>"
-        }
-
-**Example**
-
-        curl -X POST -H "Content-Type: application/json" -d '{"name" : "store.json.all_text_mode", "value" : true, "type" : "SYSTEM", "kind" : "BOOLEAN"}' http://localhost:8047/option/store.json.all_text_mode
-
-<!-- Not merged yet, need to test -->
-
-**Response Body**
-
-        {
-          "result" : "success"
-        }
-
-
-
-

http://git-wip-us.apache.org/repos/asf/drill/blob/b5bd18e8/_docs/rn/008-1.3.0-rn.md
----------------------------------------------------------------------
diff --git a/_docs/rn/008-1.3.0-rn.md b/_docs/rn/008-1.3.0-rn.md
new file mode 100644
index 0000000..fae390d
--- /dev/null
+++ b/_docs/rn/008-1.3.0-rn.md
@@ -0,0 +1,159 @@
+---
+title: "Apache Drill 1.3.0 Release Notes"
+parent: "Release Notes"
+---
+
+**Release date:**  November 22, 2015
+
+Today, we're happy to announce the availability of Drill 1.3.0, providing bug fixes and enhancements. 
+
+## Enhancements and Bug Fixes
+
+    
+<h2>Sub-task
+</h2>
+<ul>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-1721'>DRILL-1721</a>] - Configure fmpp-maven-plugin for incremental build
+</li>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-3313'>DRILL-3313</a>] - Eliminate redundant #load methods and unit-test loading &amp; exporting of vectors
+</li>
+</ul>
+    
+<h2>Bug
+</h2>
+<ul>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-1752'>DRILL-1752</a>] - Drill cluster returns error when querying Mongo shards on an unsharded collection
+</li>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-2161'>DRILL-2161</a>] - Flatten on a list within a list on a large data set results in an IOB Exception
+</li>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-2583'>DRILL-2583</a>] - Querying a non-existent table from hbase should throw a proper error message
+</li>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-2626'>DRILL-2626</a>] - org.apache.drill.common.StackTrace seems to have duplicate code; should we re-use Throwable&#39;s code?
+</li>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-2967'>DRILL-2967</a>] - Incompatible types error reported in a &quot;not in&quot; query with compatible data types 
+</li>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-3336'>DRILL-3336</a>] - to_date(to_timestamp) with group-by in hbase/maprdb table fails with &quot;java.lang.UnsupportedOperationException&quot;
+</li>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-3428'>DRILL-3428</a>] - Errors during text filereading should provide the file name in the error messge
+</li>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-3429'>DRILL-3429</a>] - DrillAvgVarianceConvertlet may produce wrong results while rewriting stddev, variance
+</li>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-3485'>DRILL-3485</a>] - Doc. site JDBC page(s) should at least point to JDBC Javadoc in source
+</li>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-3486'>DRILL-3486</a>] - Doc. site JDBC page(s) should link to JDBC driver Javadoc doc. once it&#39;s available
+</li>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-3505'>DRILL-3505</a>] - MongoDB _id is returned as null when  t.*, t._id is used in the projection
+</li>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-3538'>DRILL-3538</a>] - We do not prune partitions when we count over partitioning key and filter over partitioning key
+</li>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-3578'>DRILL-3578</a>] - UnsupportedOperationException: Unable to get value vector class for minor type [FIXEDBINARY] and mode [OPTIONAL]
+</li>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-3634'>DRILL-3634</a>] - Hive Scan : Add fileCount (no of files scanned) or no of partitions scanned to the text plan
+</li>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-3770'>DRILL-3770</a>] - Query with window function having just ORDER BY clause runs out of memory on large datasets
+</li>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-3871'>DRILL-3871</a>] - Off by one error while reading binary fields with one terminal null in parquet
+</li>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-3921'>DRILL-3921</a>] - Hive LIMIT 1 queries take too long
+</li>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-3937'>DRILL-3937</a>] - We are not pruning when we have a metadata cache and auto partitioned data in some cases
+</li>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-3941'>DRILL-3941</a>] - Add timing instrumentation around Partition Pruning
+</li>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-3943'>DRILL-3943</a>] - CannotPlanException caused by ExpressionReductionRule
+</li>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-3947'>DRILL-3947</a>] - IndexOutOfBoundsException for pruning on date column (at large scale)
+</li>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-3952'>DRILL-3952</a>] - Improve Window Functions performance when not all batches are required to process the current batch
+</li>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-3956'>DRILL-3956</a>] - TEXT MySQL type unsupported
+</li>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-3975'>DRILL-3975</a>] - Partition Planning rule causes query failure due to IndexOutOfBoundsException on HDFS
+</li>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-3980'>DRILL-3980</a>] - Build failure in -Pmapr profile (due to DRILL-3749)
+</li>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-3992'>DRILL-3992</a>] - Unable to query Oracle DB using JDBC Storage Plug-In
+</li>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-3994'>DRILL-3994</a>] - Build Fails on Windows after DRILL-3742
+</li>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-4000'>DRILL-4000</a>] - In all non-root fragments, Drill recreates storage plugin instances for every minor fragment
+</li>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-4025'>DRILL-4025</a>] - Reduce getFileStatus() invocation for Parquet by 1
+</li>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-4028'>DRILL-4028</a>] - Merge Drill parquet modifications back into the mainline project
+</li>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-4040'>DRILL-4040</a>] - Build failure on master
+</li>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-4042'>DRILL-4042</a>] - Unable to run sqlline in embedded mode on Windows
+</li>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-4046'>DRILL-4046</a>] - Performance regression in some tpch queries with 1.3rc0 build
+</li>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-4056'>DRILL-4056</a>] - Avro deserialization corrupts data
+</li>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-4065'>DRILL-4065</a>] - ImpersonationUtil always creates new UserGroupInformation (thus new FileSystem objects), causing excessive number of threads
+</li>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-4070'>DRILL-4070</a>] - Files written with versions of Drill before v1.3 record metadata that is indistinguishable from bad metadata from other Parquet creators
+</li>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-4071'>DRILL-4071</a>] - Partition pruning fails when a Coalesce() function appears with partition filter
+</li>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-4080'>DRILL-4080</a>] - doc file deleted from gh-pages appears when obsolete url is used
+</li>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-4085'>DRILL-4085</a>] - Disable RPC Offload until concurrency bugs are tracked down
+</li>
+</ul>
+        
+<h2>Improvement
+</h2>
+<ul>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-1065'>DRILL-1065</a>] - Provide a reset command to reset an option to its default value
+</li>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-2726'>DRILL-2726</a>] - Display Drill version in sys.version
+</li>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-3242'>DRILL-3242</a>] - Enhance RPC layer to offload all request work onto a separate thread.
+</li>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-3340'>DRILL-3340</a>] - Add named metrics and named operators in OperatorProfile
+</li>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-3742'>DRILL-3742</a>] - Improve classpath scanning to reduce the time it takes
+</li>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-3793'>DRILL-3793</a>] - Rewrite MergeJoinBatch using record batch iterator.
+</li>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-3810'>DRILL-3810</a>] - Filesystem plugin&#39;s support for file format&#39;s schema
+</li>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-3911'>DRILL-3911</a>] - Upgrade Hadoop from 2.4.1 to latest stable
+</li>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-3912'>DRILL-3912</a>] - Common subexpression elimination in code generation
+</li>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-3914'>DRILL-3914</a>] - Support geospatial queries
+</li>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-4031'>DRILL-4031</a>] - JDBC Plugin Queries fail if columns return JDBC OTHER type
+</li>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-4103'>DRILL-4103</a>] - Add additional metadata to Parquet files generated by Drill
+</li>
+</ul>
+    
+<h2>New Feature
+</h2>
+<ul>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-951'>DRILL-951</a>] - CSV header row should be parsed
+</li>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-3749'>DRILL-3749</a>] - Upgrade Hadoop dependency to latest version (2.7.1)
+</li>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-3802'>DRILL-3802</a>] - Throw unsupported error for ROLLUP/GROUPING
+</li>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-3963'>DRILL-3963</a>] - Read raw key value bytes from sequence files
+</li>
+</ul>
+        
+<h2>Test
+</h2>
+<ul>
+<li>[<a href='https://issues.apache.org/jira/browse/DRILL-3983'>DRILL-3983</a>] - Small test improvements
+</li>
+</ul>
+
+
+
+
+
+
+


[28/30] drill git commit: Doc data

Posted by ts...@apache.org.
Doc data


Project: http://git-wip-us.apache.org/repos/asf/drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/9ccc3bf6
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/9ccc3bf6
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/9ccc3bf6

Branch: refs/heads/gh-pages
Commit: 9ccc3bf6f1186364b64f09ac821883b05e66851c
Parents: 58f83b7
Author: Tomer Shiran <ts...@gmail.com>
Authored: Mon Nov 23 10:41:30 2015 -0800
Committer: Tomer Shiran <ts...@gmail.com>
Committed: Mon Nov 23 10:41:30 2015 -0800

----------------------------------------------------------------------
 _data/docs.json | 324 ++++++++++++++++++++++++++++++++++++++++-----------
 1 file changed, 255 insertions(+), 69 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/9ccc3bf6/_data/docs.json
----------------------------------------------------------------------
diff --git a/_data/docs.json b/_data/docs.json
index 3f2fc11..509ca90 100644
--- a/_data/docs.json
+++ b/_data/docs.json
@@ -1766,8 +1766,8 @@
                         }
                     ], 
                     "children": [], 
-                    "next_title": "JDBC Storage Plugin", 
-                    "next_url": "/docs/jdbc-storage-plugin/", 
+                    "next_title": "RDBMS Storage Plugin", 
+                    "next_url": "/docs/rdbms-storage-plugin/", 
                     "parent": "Connect a Data Source", 
                     "previous_title": "HBase Storage Plugin", 
                     "previous_url": "/docs/hbase-storage-plugin/", 
@@ -1788,9 +1788,9 @@
                     "parent": "Connect a Data Source", 
                     "previous_title": "Hive Storage Plugin", 
                     "previous_url": "/docs/hive-storage-plugin/", 
-                    "relative_path": "_docs/connect-a-data-source/plugins/080-jdbc-storage-plugin.md", 
-                    "title": "JDBC Storage Plugin", 
-                    "url": "/docs/jdbc-storage-plugin/"
+                    "relative_path": "_docs/connect-a-data-source/plugins/080-rdbms-storage-plugin.md", 
+                    "title": "RDBMS Storage Plugin", 
+                    "url": "/docs/rdbms-storage-plugin/"
                 }, 
                 {
                     "breadcrumbs": [
@@ -1803,8 +1803,8 @@
                     "next_title": "MapR-DB Format", 
                     "next_url": "/docs/mapr-db-format/", 
                     "parent": "Connect a Data Source", 
-                    "previous_title": "JDBC Storage Plugin", 
-                    "previous_url": "/docs/jdbc-storage-plugin/", 
+                    "previous_title": "RDBMS Storage Plugin", 
+                    "previous_url": "/docs/rdbms-storage-plugin/", 
                     "relative_path": "_docs/connect-a-data-source/plugins/090-mongodb-storage-plugin.md", 
                     "title": "MongoDB Storage Plugin", 
                     "url": "/docs/mongodb-storage-plugin/"
@@ -1817,14 +1817,31 @@
                         }
                     ], 
                     "children": [], 
-                    "next_title": "ODBC/JDBC Interfaces", 
-                    "next_url": "/docs/odbc-jdbc-interfaces/", 
+                    "next_title": "S3 Storage Plugin", 
+                    "next_url": "/docs/s3-storage-plugin/", 
                     "parent": "Connect a Data Source", 
                     "previous_title": "MongoDB Storage Plugin", 
                     "previous_url": "/docs/mongodb-storage-plugin/", 
                     "relative_path": "_docs/connect-a-data-source/plugins/100-mapr-db-format.md", 
                     "title": "MapR-DB Format", 
                     "url": "/docs/mapr-db-format/"
+                }, 
+                {
+                    "breadcrumbs": [
+                        {
+                            "title": "Connect a Data Source", 
+                            "url": "/docs/connect-a-data-source/"
+                        }
+                    ], 
+                    "children": [], 
+                    "next_title": "ODBC/JDBC Interfaces", 
+                    "next_url": "/docs/odbc-jdbc-interfaces/", 
+                    "parent": "Connect a Data Source", 
+                    "previous_title": "MapR-DB Format", 
+                    "previous_url": "/docs/mapr-db-format/", 
+                    "relative_path": "_docs/connect-a-data-source/plugins/110-s3-storage-plugin.md", 
+                    "title": "S3 Storage Plugin", 
+                    "url": "/docs/s3-storage-plugin/"
                 }
             ], 
             "next_title": "Connect a Data Source Introduction", 
@@ -2148,14 +2165,31 @@
                         }
                     ], 
                     "children": [], 
-                    "next_title": "Develop Custom Functions", 
-                    "next_url": "/docs/develop-custom-functions/", 
+                    "next_title": "Sequence Files", 
+                    "next_url": "/docs/sequence-files/", 
                     "parent": "Data Sources and File Formats", 
                     "previous_title": "JSON Data Model", 
                     "previous_url": "/docs/json-data-model/", 
                     "relative_path": "_docs/data-sources-and-file-formats/060-text-files-csv-tsv-psv.md", 
                     "title": "Text Files: CSV, TSV, PSV", 
                     "url": "/docs/text-files-csv-tsv-psv/"
+                }, 
+                {
+                    "breadcrumbs": [
+                        {
+                            "title": "Data Sources and File Formats", 
+                            "url": "/docs/data-sources-and-file-formats/"
+                        }
+                    ], 
+                    "children": [], 
+                    "next_title": "Develop Custom Functions", 
+                    "next_url": "/docs/develop-custom-functions/", 
+                    "parent": "Data Sources and File Formats", 
+                    "previous_title": "Text Files: CSV, TSV, PSV", 
+                    "previous_url": "/docs/text-files-csv-tsv-psv/", 
+                    "relative_path": "_docs/data-sources-and-file-formats/070-sequencefile-format.md", 
+                    "title": "Sequence Files", 
+                    "url": "/docs/sequence-files/"
                 }
             ], 
             "next_title": "Data Sources and File Formats Introduction", 
@@ -2594,8 +2628,8 @@
             "next_title": "Develop Custom Functions Introduction", 
             "next_url": "/docs/develop-custom-functions-introduction/", 
             "parent": "", 
-            "previous_title": "Text Files: CSV, TSV, PSV", 
-            "previous_url": "/docs/text-files-csv-tsv-psv/", 
+            "previous_title": "Sequence Files", 
+            "previous_url": "/docs/sequence-files/", 
             "relative_path": "_docs/100-develop-custom-functions.md", 
             "title": "Develop Custom Functions", 
             "url": "/docs/develop-custom-functions/"
@@ -3477,8 +3511,8 @@
                 }
             ], 
             "children": [], 
-            "next_title": "JDBC Storage Plugin", 
-            "next_url": "/docs/jdbc-storage-plugin/", 
+            "next_title": "RDBMS Storage Plugin", 
+            "next_url": "/docs/rdbms-storage-plugin/", 
             "parent": "Connect a Data Source", 
             "previous_title": "HBase Storage Plugin", 
             "previous_url": "/docs/hbase-storage-plugin/", 
@@ -4322,23 +4356,6 @@
             "title": "Interfaces Introduction", 
             "url": "/docs/interfaces-introduction/"
         }, 
-        "JDBC Storage Plugin": {
-            "breadcrumbs": [
-                {
-                    "title": "Connect a Data Source", 
-                    "url": "/docs/connect-a-data-source/"
-                }
-            ], 
-            "children": [], 
-            "next_title": "MongoDB Storage Plugin", 
-            "next_url": "/docs/mongodb-storage-plugin/", 
-            "parent": "Connect a Data Source", 
-            "previous_title": "Hive Storage Plugin", 
-            "previous_url": "/docs/hive-storage-plugin/", 
-            "relative_path": "_docs/connect-a-data-source/plugins/080-jdbc-storage-plugin.md", 
-            "title": "JDBC Storage Plugin", 
-            "url": "/docs/jdbc-storage-plugin/"
-        }, 
         "JSON Data Model": {
             "breadcrumbs": [
                 {
@@ -4787,8 +4804,8 @@
                 }
             ], 
             "children": [], 
-            "next_title": "ODBC/JDBC Interfaces", 
-            "next_url": "/docs/odbc-jdbc-interfaces/", 
+            "next_title": "S3 Storage Plugin", 
+            "next_url": "/docs/s3-storage-plugin/", 
             "parent": "Connect a Data Source", 
             "previous_title": "MongoDB Storage Plugin", 
             "previous_url": "/docs/mongodb-storage-plugin/", 
@@ -4866,8 +4883,8 @@
             "next_title": "MapR-DB Format", 
             "next_url": "/docs/mapr-db-format/", 
             "parent": "Connect a Data Source", 
-            "previous_title": "JDBC Storage Plugin", 
-            "previous_url": "/docs/jdbc-storage-plugin/", 
+            "previous_title": "RDBMS Storage Plugin", 
+            "previous_url": "/docs/rdbms-storage-plugin/", 
             "relative_path": "_docs/connect-a-data-source/plugins/090-mongodb-storage-plugin.md", 
             "title": "MongoDB Storage Plugin", 
             "url": "/docs/mongodb-storage-plugin/"
@@ -5625,8 +5642,8 @@
             "next_title": "Interfaces Introduction", 
             "next_url": "/docs/interfaces-introduction/", 
             "parent": "", 
-            "previous_title": "MapR-DB Format", 
-            "previous_url": "/docs/mapr-db-format/", 
+            "previous_title": "S3 Storage Plugin", 
+            "previous_url": "/docs/s3-storage-plugin/", 
             "relative_path": "_docs/060-odbc-jdbc-interfaces.md", 
             "title": "ODBC/JDBC Interfaces", 
             "url": "/docs/odbc-jdbc-interfaces/"
@@ -6476,14 +6493,35 @@
                                 }
                             ], 
                             "children": [], 
-                            "next_title": "Querying HBase", 
-                            "next_url": "/docs/querying-hbase/", 
+                            "next_title": "Querying Sequence Files", 
+                            "next_url": "/docs/querying-sequence-files/", 
                             "parent": "Querying a File System", 
                             "previous_title": "Querying Plain Text Files", 
                             "previous_url": "/docs/querying-plain-text-files/", 
                             "relative_path": "_docs/query-data/query-a-file-system/040-querying-directories.md", 
                             "title": "Querying Directories", 
                             "url": "/docs/querying-directories/"
+                        }, 
+                        {
+                            "breadcrumbs": [
+                                {
+                                    "title": "Querying a File System", 
+                                    "url": "/docs/querying-a-file-system/"
+                                }, 
+                                {
+                                    "title": "Query Data", 
+                                    "url": "/docs/query-data/"
+                                }
+                            ], 
+                            "children": [], 
+                            "next_title": "Querying HBase", 
+                            "next_url": "/docs/querying-hbase/", 
+                            "parent": "Querying a File System", 
+                            "previous_title": "Querying Directories", 
+                            "previous_url": "/docs/querying-directories/", 
+                            "relative_path": "_docs/query-data/query-a-file-system/050-querying-sequence-files.md", 
+                            "title": "Querying Sequence Files", 
+                            "url": "/docs/querying-sequence-files/"
                         }
                     ], 
                     "next_title": "Querying a File System Introduction", 
@@ -6506,8 +6544,8 @@
                     "next_title": "Querying Complex Data", 
                     "next_url": "/docs/querying-complex-data/", 
                     "parent": "Query Data", 
-                    "previous_title": "Querying Directories", 
-                    "previous_url": "/docs/querying-directories/", 
+                    "previous_title": "Querying Sequence Files", 
+                    "previous_url": "/docs/querying-sequence-files/", 
                     "relative_path": "_docs/query-data/030-querying-hbase.md", 
                     "title": "Querying HBase", 
                     "url": "/docs/querying-hbase/"
@@ -7215,8 +7253,8 @@
                 }
             ], 
             "children": [], 
-            "next_title": "Querying HBase", 
-            "next_url": "/docs/querying-hbase/", 
+            "next_title": "Querying Sequence Files", 
+            "next_url": "/docs/querying-sequence-files/", 
             "parent": "Querying a File System", 
             "previous_title": "Querying Plain Text Files", 
             "previous_url": "/docs/querying-plain-text-files/", 
@@ -7235,8 +7273,8 @@
             "next_title": "Querying Complex Data", 
             "next_url": "/docs/querying-complex-data/", 
             "parent": "Query Data", 
-            "previous_title": "Querying Directories", 
-            "previous_url": "/docs/querying-directories/", 
+            "previous_title": "Querying Sequence Files", 
+            "previous_url": "/docs/querying-sequence-files/", 
             "relative_path": "_docs/query-data/030-querying-hbase.md", 
             "title": "Querying HBase", 
             "url": "/docs/querying-hbase/"
@@ -7321,6 +7359,27 @@
             "title": "Querying Plain Text Files", 
             "url": "/docs/querying-plain-text-files/"
         }, 
+        "Querying Sequence Files": {
+            "breadcrumbs": [
+                {
+                    "title": "Querying a File System", 
+                    "url": "/docs/querying-a-file-system/"
+                }, 
+                {
+                    "title": "Query Data", 
+                    "url": "/docs/query-data/"
+                }
+            ], 
+            "children": [], 
+            "next_title": "Querying HBase", 
+            "next_url": "/docs/querying-hbase/", 
+            "parent": "Querying a File System", 
+            "previous_title": "Querying Directories", 
+            "previous_url": "/docs/querying-directories/", 
+            "relative_path": "_docs/query-data/query-a-file-system/050-querying-sequence-files.md", 
+            "title": "Querying Sequence Files", 
+            "url": "/docs/querying-sequence-files/"
+        }, 
         "Querying System Tables": {
             "breadcrumbs": [
                 {
@@ -7442,14 +7501,35 @@
                         }
                     ], 
                     "children": [], 
-                    "next_title": "Querying HBase", 
-                    "next_url": "/docs/querying-hbase/", 
+                    "next_title": "Querying Sequence Files", 
+                    "next_url": "/docs/querying-sequence-files/", 
                     "parent": "Querying a File System", 
                     "previous_title": "Querying Plain Text Files", 
                     "previous_url": "/docs/querying-plain-text-files/", 
                     "relative_path": "_docs/query-data/query-a-file-system/040-querying-directories.md", 
                     "title": "Querying Directories", 
                     "url": "/docs/querying-directories/"
+                }, 
+                {
+                    "breadcrumbs": [
+                        {
+                            "title": "Querying a File System", 
+                            "url": "/docs/querying-a-file-system/"
+                        }, 
+                        {
+                            "title": "Query Data", 
+                            "url": "/docs/query-data/"
+                        }
+                    ], 
+                    "children": [], 
+                    "next_title": "Querying HBase", 
+                    "next_url": "/docs/querying-hbase/", 
+                    "parent": "Querying a File System", 
+                    "previous_title": "Querying Directories", 
+                    "previous_url": "/docs/querying-directories/", 
+                    "relative_path": "_docs/query-data/query-a-file-system/050-querying-sequence-files.md", 
+                    "title": "Querying Sequence Files", 
+                    "url": "/docs/querying-sequence-files/"
                 }
             ], 
             "next_title": "Querying a File System Introduction", 
@@ -7499,6 +7579,23 @@
             "title": "Querying the INFORMATION SCHEMA", 
             "url": "/docs/querying-the-information-schema/"
         }, 
+        "RDBMS Storage Plugin": {
+            "breadcrumbs": [
+                {
+                    "title": "Connect a Data Source", 
+                    "url": "/docs/connect-a-data-source/"
+                }
+            ], 
+            "children": [], 
+            "next_title": "MongoDB Storage Plugin", 
+            "next_url": "/docs/mongodb-storage-plugin/", 
+            "parent": "Connect a Data Source", 
+            "previous_title": "Hive Storage Plugin", 
+            "previous_url": "/docs/hive-storage-plugin/", 
+            "relative_path": "_docs/connect-a-data-source/plugins/080-rdbms-storage-plugin.md", 
+            "title": "RDBMS Storage Plugin", 
+            "url": "/docs/rdbms-storage-plugin/"
+        }, 
         "REPEATED_CONTAINS": {
             "breadcrumbs": [
                 {
@@ -7817,6 +7914,23 @@
             "title": "Review the Java Stack Trace", 
             "url": "/docs/review-the-java-stack-trace/"
         }, 
+        "S3 Storage Plugin": {
+            "breadcrumbs": [
+                {
+                    "title": "Connect a Data Source", 
+                    "url": "/docs/connect-a-data-source/"
+                }
+            ], 
+            "children": [], 
+            "next_title": "ODBC/JDBC Interfaces", 
+            "next_url": "/docs/odbc-jdbc-interfaces/", 
+            "parent": "Connect a Data Source", 
+            "previous_title": "MapR-DB Format", 
+            "previous_url": "/docs/mapr-db-format/", 
+            "relative_path": "_docs/connect-a-data-source/plugins/110-s3-storage-plugin.md", 
+            "title": "S3 Storage Plugin", 
+            "url": "/docs/s3-storage-plugin/"
+        }, 
         "SELECT": {
             "breadcrumbs": [
                 {
@@ -10205,6 +10319,23 @@
             "title": "Selecting Nested Data for a Column", 
             "url": "/docs/selecting-nested-data-for-a-column/"
         }, 
+        "Sequence Files": {
+            "breadcrumbs": [
+                {
+                    "title": "Data Sources and File Formats", 
+                    "url": "/docs/data-sources-and-file-formats/"
+                }
+            ], 
+            "children": [], 
+            "next_title": "Develop Custom Functions", 
+            "next_url": "/docs/develop-custom-functions/", 
+            "parent": "Data Sources and File Formats", 
+            "previous_title": "Text Files: CSV, TSV, PSV", 
+            "previous_url": "/docs/text-files-csv-tsv-psv/", 
+            "relative_path": "_docs/data-sources-and-file-formats/070-sequencefile-format.md", 
+            "title": "Sequence Files", 
+            "url": "/docs/sequence-files/"
+        }, 
         "Sort-Based and Hash-Based Memory-Constrained Operators": {
             "breadcrumbs": [
                 {
@@ -10559,8 +10690,8 @@
                 }
             ], 
             "children": [], 
-            "next_title": "Develop Custom Functions", 
-            "next_url": "/docs/develop-custom-functions/", 
+            "next_title": "Sequence Files", 
+            "next_url": "/docs/sequence-files/", 
             "parent": "Data Sources and File Formats", 
             "previous_title": "JSON Data Model", 
             "previous_url": "/docs/json-data-model/", 
@@ -12735,8 +12866,8 @@
                         }
                     ], 
                     "children": [], 
-                    "next_title": "JDBC Storage Plugin", 
-                    "next_url": "/docs/jdbc-storage-plugin/", 
+                    "next_title": "RDBMS Storage Plugin", 
+                    "next_url": "/docs/rdbms-storage-plugin/", 
                     "parent": "Connect a Data Source", 
                     "previous_title": "HBase Storage Plugin", 
                     "previous_url": "/docs/hbase-storage-plugin/", 
@@ -12757,9 +12888,9 @@
                     "parent": "Connect a Data Source", 
                     "previous_title": "Hive Storage Plugin", 
                     "previous_url": "/docs/hive-storage-plugin/", 
-                    "relative_path": "_docs/connect-a-data-source/plugins/080-jdbc-storage-plugin.md", 
-                    "title": "JDBC Storage Plugin", 
-                    "url": "/docs/jdbc-storage-plugin/"
+                    "relative_path": "_docs/connect-a-data-source/plugins/080-rdbms-storage-plugin.md", 
+                    "title": "RDBMS Storage Plugin", 
+                    "url": "/docs/rdbms-storage-plugin/"
                 }, 
                 {
                     "breadcrumbs": [
@@ -12772,8 +12903,8 @@
                     "next_title": "MapR-DB Format", 
                     "next_url": "/docs/mapr-db-format/", 
                     "parent": "Connect a Data Source", 
-                    "previous_title": "JDBC Storage Plugin", 
-                    "previous_url": "/docs/jdbc-storage-plugin/", 
+                    "previous_title": "RDBMS Storage Plugin", 
+                    "previous_url": "/docs/rdbms-storage-plugin/", 
                     "relative_path": "_docs/connect-a-data-source/plugins/090-mongodb-storage-plugin.md", 
                     "title": "MongoDB Storage Plugin", 
                     "url": "/docs/mongodb-storage-plugin/"
@@ -12786,14 +12917,31 @@
                         }
                     ], 
                     "children": [], 
-                    "next_title": "ODBC/JDBC Interfaces", 
-                    "next_url": "/docs/odbc-jdbc-interfaces/", 
+                    "next_title": "S3 Storage Plugin", 
+                    "next_url": "/docs/s3-storage-plugin/", 
                     "parent": "Connect a Data Source", 
                     "previous_title": "MongoDB Storage Plugin", 
                     "previous_url": "/docs/mongodb-storage-plugin/", 
                     "relative_path": "_docs/connect-a-data-source/plugins/100-mapr-db-format.md", 
                     "title": "MapR-DB Format", 
                     "url": "/docs/mapr-db-format/"
+                }, 
+                {
+                    "breadcrumbs": [
+                        {
+                            "title": "Connect a Data Source", 
+                            "url": "/docs/connect-a-data-source/"
+                        }
+                    ], 
+                    "children": [], 
+                    "next_title": "ODBC/JDBC Interfaces", 
+                    "next_url": "/docs/odbc-jdbc-interfaces/", 
+                    "parent": "Connect a Data Source", 
+                    "previous_title": "MapR-DB Format", 
+                    "previous_url": "/docs/mapr-db-format/", 
+                    "relative_path": "_docs/connect-a-data-source/plugins/110-s3-storage-plugin.md", 
+                    "title": "S3 Storage Plugin", 
+                    "url": "/docs/s3-storage-plugin/"
                 }
             ], 
             "next_title": "Connect a Data Source Introduction", 
@@ -13376,8 +13524,8 @@
             "next_title": "Interfaces Introduction", 
             "next_url": "/docs/interfaces-introduction/", 
             "parent": "", 
-            "previous_title": "MapR-DB Format", 
-            "previous_url": "/docs/mapr-db-format/", 
+            "previous_title": "S3 Storage Plugin", 
+            "previous_url": "/docs/s3-storage-plugin/", 
             "relative_path": "_docs/060-odbc-jdbc-interfaces.md", 
             "title": "ODBC/JDBC Interfaces", 
             "url": "/docs/odbc-jdbc-interfaces/"
@@ -13506,14 +13654,35 @@
                                 }
                             ], 
                             "children": [], 
-                            "next_title": "Querying HBase", 
-                            "next_url": "/docs/querying-hbase/", 
+                            "next_title": "Querying Sequence Files", 
+                            "next_url": "/docs/querying-sequence-files/", 
                             "parent": "Querying a File System", 
                             "previous_title": "Querying Plain Text Files", 
                             "previous_url": "/docs/querying-plain-text-files/", 
                             "relative_path": "_docs/query-data/query-a-file-system/040-querying-directories.md", 
                             "title": "Querying Directories", 
                             "url": "/docs/querying-directories/"
+                        }, 
+                        {
+                            "breadcrumbs": [
+                                {
+                                    "title": "Querying a File System", 
+                                    "url": "/docs/querying-a-file-system/"
+                                }, 
+                                {
+                                    "title": "Query Data", 
+                                    "url": "/docs/query-data/"
+                                }
+                            ], 
+                            "children": [], 
+                            "next_title": "Querying HBase", 
+                            "next_url": "/docs/querying-hbase/", 
+                            "parent": "Querying a File System", 
+                            "previous_title": "Querying Directories", 
+                            "previous_url": "/docs/querying-directories/", 
+                            "relative_path": "_docs/query-data/query-a-file-system/050-querying-sequence-files.md", 
+                            "title": "Querying Sequence Files", 
+                            "url": "/docs/querying-sequence-files/"
                         }
                     ], 
                     "next_title": "Querying a File System Introduction", 
@@ -13536,8 +13705,8 @@
                     "next_title": "Querying Complex Data", 
                     "next_url": "/docs/querying-complex-data/", 
                     "parent": "Query Data", 
-                    "previous_title": "Querying Directories", 
-                    "previous_url": "/docs/querying-directories/", 
+                    "previous_title": "Querying Sequence Files", 
+                    "previous_url": "/docs/querying-sequence-files/", 
                     "relative_path": "_docs/query-data/030-querying-hbase.md", 
                     "title": "Querying HBase", 
                     "url": "/docs/querying-hbase/"
@@ -15513,14 +15682,31 @@
                         }
                     ], 
                     "children": [], 
-                    "next_title": "Develop Custom Functions", 
-                    "next_url": "/docs/develop-custom-functions/", 
+                    "next_title": "Sequence Files", 
+                    "next_url": "/docs/sequence-files/", 
                     "parent": "Data Sources and File Formats", 
                     "previous_title": "JSON Data Model", 
                     "previous_url": "/docs/json-data-model/", 
                     "relative_path": "_docs/data-sources-and-file-formats/060-text-files-csv-tsv-psv.md", 
                     "title": "Text Files: CSV, TSV, PSV", 
                     "url": "/docs/text-files-csv-tsv-psv/"
+                }, 
+                {
+                    "breadcrumbs": [
+                        {
+                            "title": "Data Sources and File Formats", 
+                            "url": "/docs/data-sources-and-file-formats/"
+                        }
+                    ], 
+                    "children": [], 
+                    "next_title": "Develop Custom Functions", 
+                    "next_url": "/docs/develop-custom-functions/", 
+                    "parent": "Data Sources and File Formats", 
+                    "previous_title": "Text Files: CSV, TSV, PSV", 
+                    "previous_url": "/docs/text-files-csv-tsv-psv/", 
+                    "relative_path": "_docs/data-sources-and-file-formats/070-sequencefile-format.md", 
+                    "title": "Sequence Files", 
+                    "url": "/docs/sequence-files/"
                 }
             ], 
             "next_title": "Data Sources and File Formats Introduction", 
@@ -15658,8 +15844,8 @@
             "next_title": "Develop Custom Functions Introduction", 
             "next_url": "/docs/develop-custom-functions-introduction/", 
             "parent": "", 
-            "previous_title": "Text Files: CSV, TSV, PSV", 
-            "previous_url": "/docs/text-files-csv-tsv-psv/", 
+            "previous_title": "Sequence Files", 
+            "previous_url": "/docs/sequence-files/", 
             "relative_path": "_docs/100-develop-custom-functions.md", 
             "title": "Develop Custom Functions", 
             "url": "/docs/develop-custom-functions/"


[11/30] drill git commit: typo

Posted by ts...@apache.org.
typo


Project: http://git-wip-us.apache.org/repos/asf/drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/8139b716
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/8139b716
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/8139b716

Branch: refs/heads/gh-pages
Commit: 8139b7169d5b8c140122b22623c360843364babd
Parents: cff9dcb
Author: Kristine Hahn <kh...@maprtech.com>
Authored: Fri Nov 20 16:10:57 2015 -0800
Committer: Kristine Hahn <kh...@maprtech.com>
Committed: Fri Nov 20 16:10:57 2015 -0800

----------------------------------------------------------------------
 _docs/developer-information/009-rest-api.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/8139b716/_docs/developer-information/009-rest-api.md
----------------------------------------------------------------------
diff --git a/_docs/developer-information/009-rest-api.md b/_docs/developer-information/009-rest-api.md
index 8509a9e..34bd101 100644
--- a/_docs/developer-information/009-rest-api.md
+++ b/_docs/developer-information/009-rest-api.md
@@ -19,7 +19,7 @@ This documentation presents HTTP methods in the same order as functions appear i
 
 [**Query**]({{site.baseurl}}/docs/rest-api/#query)
 
-Submit a query and return results]
+Submit a query and return results.
 
 [**Profiles**](({{site.baseurl}}/docs/rest-api/#profiles))
 


[19/30] drill git commit: Update 050-json-data-model.md

Posted by ts...@apache.org.
Update 050-json-data-model.md

Add documentation for hetergenous types (Union type).


Project: http://git-wip-us.apache.org/repos/asf/drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/fe75ca91
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/fe75ca91
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/fe75ca91

Branch: refs/heads/gh-pages
Commit: fe75ca9127619dea114f1c2e34db7fa3edf1b8df
Parents: 85f3a1b
Author: Steven Phillips <sm...@apache.org>
Authored: Sun Nov 22 12:00:44 2015 -0800
Committer: Tomer Shiran <ts...@gmail.com>
Committed: Mon Nov 23 10:09:38 2015 -0800

----------------------------------------------------------------------
 .../050-json-data-model.md                      | 21 ++++++++++++++++++--
 1 file changed, 19 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/fe75ca91/_docs/data-sources-and-file-formats/050-json-data-model.md
----------------------------------------------------------------------
diff --git a/_docs/data-sources-and-file-formats/050-json-data-model.md b/_docs/data-sources-and-file-formats/050-json-data-model.md
index 4cd5281..48ea264 100644
--- a/_docs/data-sources-and-file-formats/050-json-data-model.md
+++ b/_docs/data-sources-and-file-formats/050-json-data-model.md
@@ -60,6 +60,21 @@ When you set this option, Drill reads all numbers from the JSON files as DOUBLE.
 
 Drill uses these types internally for reading complex and nested data structures from data sources such as JSON.
 
+### Experimental Feature: Heterogeneous types
+The Union type allows storing different types in the same field. This new feature is still considered experimental, and must be explicitly enabled by setting the `exec.enabel_union_type` option to true.
+
+    ALTER SESSION SET `exec.enable_union_type` = true;
+    
+ With this feature enabled, JSON data with changing types, which previously could not be queried by drill, are now queryable.
+ 
+A field with a Union type can be used inside of functions. Drill will automatically handle evaluation of the function appropriately for each type. If the data requires special handling for the different types, you can do this with case statement, leveraging the new `type` functions:
+
+```
+select 1 + case when is_list(a) then a[0] else a end from table;
+```
+
+In this example, the column a contains both scalar and list types, so the case where it is a list is handled by using the first element of the array.
+
 ## Reading JSON
 To read JSON data using Drill, use a [file system storage plugin]({{ site.baseurl }}/docs/file-system-storage-plugin/) that defines the JSON format. You can use the `dfs` storage plugin, which includes the definition.
 
@@ -464,6 +479,8 @@ Workaround: None, per se, but if you avoid querying the multi-polygon lines (120
     | -122.4379846573301  | 37.75844260679518  | 0.0     |
     +---------------------+--------------------+---------+
     1 row selected (6.64 seconds)
+    
+Another option is to use the experimental union type.
 
 ### Varying types
 Any attempt to query a list that has
@@ -472,7 +489,7 @@ coordinates for shapes of type Polygon.  For shapes of MultiPolygon, this file h
 of coordinates. Even a query that tries to filter away the
 MultiPolygons will fail.
 
-Workaround: None.
+Workaround: Use union type (experimental).
 
 ### Misusing Dot Notation
 Drill accesses an object when you use dot notation in the SELECT statement only when the dot is *not* the first dot in the expression. Drill attempts to access the table that appears after the first dot. For example,  records in `some-file` have a geometry field that Drill successfully accesses given this query:
@@ -516,4 +533,4 @@ Workaround: Set the `store.json.read_numbers_as_double` property, described earl
 ### Selecting all in a JSON directory query
 Drill currently returns only fields common to all the files in a [directory query]({{ site.baseurl }}/docs/querying-directories) that selects all (SELECT *) JSON files.
 
-Workaround: Query each file individually.
+Workaround: Query each file individually. Another option is to use the union type (experimental).


[25/30] drill git commit: Add note about parquet file migration in 1.3

Posted by ts...@apache.org.
Add note about parquet file migration in 1.3


Project: http://git-wip-us.apache.org/repos/asf/drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/df1072b7
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/df1072b7
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/df1072b7

Branch: refs/heads/gh-pages
Commit: df1072b7a260ef471040ec1e37d2b211275d71bc
Parents: dbce08e
Author: Jason Altekruse <al...@gmail.com>
Authored: Sun Nov 22 23:00:47 2015 -0800
Committer: Tomer Shiran <ts...@gmail.com>
Committed: Mon Nov 23 10:11:44 2015 -0800

----------------------------------------------------------------------
 _docs/sql-reference/sql-commands/035-partition-by-clause.md | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/df1072b7/_docs/sql-reference/sql-commands/035-partition-by-clause.md
----------------------------------------------------------------------
diff --git a/_docs/sql-reference/sql-commands/035-partition-by-clause.md b/_docs/sql-reference/sql-commands/035-partition-by-clause.md
index 32dceb5..20cd6a3 100644
--- a/_docs/sql-reference/sql-commands/035-partition-by-clause.md
+++ b/_docs/sql-reference/sql-commands/035-partition-by-clause.md
@@ -4,6 +4,10 @@ parent: "SQL Commands"
 ---
 The PARTITION BY clause in the CTAS command partitions data, which Drill [prunes]({{site.baseurl}}/docs/partition-pruning/) to improve performance when you query the data. (Drill 1.1.0)
 
+Note: parquet files produced using Drill 1.1 and 1.2 will need to have their metadata rewritten to work with partition pruning in 1.3 and beyond, information on the simple migration process can be found on [Github](https://github.com/parthchandra/drill-upgrade). The need for this migration process came out of a bug fix included in the 1.3 release to accurately process parquet files produced by other tools (like Pig and Hive) that had a risk of inaccurate metadata that could cause inaccurate
+results. Drill results have been accurate on files it created, and the files all contain accurate metadata, the migration tool simply marks these files as having been produced by Drill. Unfortunately without this migration we cannot reliably tell them apart from files produced by other tools. The migration tool should only be used on files produced by Drill, not those produced with other software products. Data from other tools will need to be read in and completely rewritten to generate
+accurate metadata. This can be done using Drill or whatever tool originally produced them, as long as it is using a recent version of parquet (1.8 or later).
+
 ## Syntax
 
      [ PARTITION BY ( column_name[, . . .] ) ]


[08/30] drill git commit: links

Posted by ts...@apache.org.
links


Project: http://git-wip-us.apache.org/repos/asf/drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/3ad61f62
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/3ad61f62
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/3ad61f62

Branch: refs/heads/gh-pages
Commit: 3ad61f6279aaa84581a0fb3bb270e4880d53820e
Parents: 1a5bca8
Author: Kristine Hahn <kh...@maprtech.com>
Authored: Fri Nov 20 15:27:02 2015 -0800
Committer: Kristine Hahn <kh...@maprtech.com>
Committed: Fri Nov 20 15:27:02 2015 -0800

----------------------------------------------------------------------
 _docs/developer-information/009-rest-api.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/3ad61f62/_docs/developer-information/009-rest-api.md
----------------------------------------------------------------------
diff --git a/_docs/developer-information/009-rest-api.md b/_docs/developer-information/009-rest-api.md
index 8a4266c..1df2b87 100644
--- a/_docs/developer-information/009-rest-api.md
+++ b/_docs/developer-information/009-rest-api.md
@@ -22,9 +22,9 @@ Several examples in the document use the donuts.json file. To download this file
 The following short description of methods link to more information and examples:
 
 * [List information about system/session options]({{site.baseurl}}/docs/rest-api/#get-options-json)  
-* [Change the value or type of the named option]({{site.baseurl}}/drill/docs/rest-api/#post-option-optionname)  
+* [Change the value or type of the named option]({{site.baseurl}}/docs/rest-api/#post-option-optionname)  
 * [Get the profiles of running and completed queries]({{site.baseurl}}/docs/rest-api/#get-profiles-json)  
-* [Get the profile of the query that has the given queryid]({{site.baseurl}}/drill/docs/rest-api/#get-profiles-queryid-json)  
+* [Get the profile of the query that has the given queryid]({{site.baseurl}}/docs/rest-api/#get-profiles-queryid-json)  
 * [Cancel the query that has the given queryid]({{site.baseurl}}/docs/rest-api/#get-profiles-cancel-queryid)  
 * [Submit a query and return results]({{site.baseurl}}/docs/rest-api/#post-query-json)  
 * [Get the list of storage plugin names and configurations]({{site.baseurl}}/docs/rest-api/#get-storage-json)  


[09/30] drill git commit: organize ala web console

Posted by ts...@apache.org.
organize ala web console


Project: http://git-wip-us.apache.org/repos/asf/drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/e15b5344
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/e15b5344
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/e15b5344

Branch: refs/heads/gh-pages
Commit: e15b53445fb31602e0b79dca13d37739ad2aa5a1
Parents: 3ad61f6
Author: Kristine Hahn <kh...@maprtech.com>
Authored: Fri Nov 20 15:53:33 2015 -0800
Committer: Kristine Hahn <kh...@maprtech.com>
Committed: Fri Nov 20 15:53:33 2015 -0800

----------------------------------------------------------------------
 _docs/developer-information/009-rest-api.md | 235 ++++++++++++-----------
 1 file changed, 126 insertions(+), 109 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/e15b5344/_docs/developer-information/009-rest-api.md
----------------------------------------------------------------------
diff --git a/_docs/developer-information/009-rest-api.md b/_docs/developer-information/009-rest-api.md
index 1df2b87..6aece41 100644
--- a/_docs/developer-information/009-rest-api.md
+++ b/_docs/developer-information/009-rest-api.md
@@ -3,113 +3,95 @@ title: "REST API"
 parent: "Developer Information"
 ---
 
-The Drill REST API provides methods you can call to programmatically perform the same functions available in the [Drill Web Console](/starting-the-web-console/). For example, you can run queries, perform storage plugin tasks, such as creating a storage plugin, obtain profiles of queries, and get current memory metrics. 
+The Drill REST API provides methods that perform the same functions as those in the [Drill Web Console](/starting-the-web-console/). For example, you can run queries, perform storage plugin tasks, such as creating a storage plugin, obtain profiles of queries, and get current memory metrics. 
 
-Drill REST API calls having a .json suffix output return a JSON response body. Generally, these commands return HTML when used without the .json suffix.
+An HTTP request having a .json suffix output returns a JSON response body. Generally, when you drop the .json suffix from these commands, Drill returns HTML.
 
-A Drill REST request connects to Drill using the familiar Web Console URI:
+An HTTP request connects to Drill using the familiar Web Console URI:
 
 `http://<IP address or host name>:8047`
 
-## Getting Started with the Drill REST API
+## Getting Started
 
-Before making REST requests, [start Drill]({{site.baseurl}}/docs/starting-drill-on-linux-and-mac-os-x).
+Before making HTTP requests, [start Drill]({{site.baseurl}}/docs/starting-drill-on-linux-and-mac-os-x).
 
 Several examples in the document use the donuts.json file. To download this file, go to [Drill test resources](https://github.com/apache/drill/blob/master/exec/java-exec/src/test/resources) page, locate donuts.json in the list of files, and download it. When using cURL, use unicode \u0027 for the single quotation mark as shown in the Query example.
 
-## Links to HTTP Methods
-
-The following short description of methods link to more information and examples:
-
-* [List information about system/session options]({{site.baseurl}}/docs/rest-api/#get-options-json)  
-* [Change the value or type of the named option]({{site.baseurl}}/docs/rest-api/#post-option-optionname)  
-* [Get the profiles of running and completed queries]({{site.baseurl}}/docs/rest-api/#get-profiles-json)  
-* [Get the profile of the query that has the given queryid]({{site.baseurl}}/docs/rest-api/#get-profiles-queryid-json)  
-* [Cancel the query that has the given queryid]({{site.baseurl}}/docs/rest-api/#get-profiles-cancel-queryid)  
-* [Submit a query and return results]({{site.baseurl}}/docs/rest-api/#post-query-json)  
-* [Get the list of storage plugin names and configurations]({{site.baseurl}}/docs/rest-api/#get-storage-json)  
-* [Get the definition of the named storage plugin]({{site.baseurl}}/docs/rest-api/#get-storage-name-json)  
-* [Enable or disable the named storage plugin]({{site.baseurl}}/docs/rest-api/#get-storage-name-enable-val)  
-* [Create or update a storage plugin configuration]({{site.baseurl}}/docs/rest-api/#post-storage-name-json)  
-* [Delete a storage plugin configuration]({{site.baseurl}}/docs/rest-api/#delete-storage-name-json)  
-* [Get Drillbit information, such as ports numbers]({{site.baseurl}}/drill/docs/rest-api/#get-stats-json)  
-* [Get the current memory metrics]({{site.baseurl}}/docs/rest-api/#get-status-metrics)  
-* [Get the status of threads]({{site.baseurl}}/docs/rest-api/#get-status-threads)  
+This documentation presents HTTP methods in the same order as functions appear in the Web Console:
 
-## Options
-These methods get and set system options.
+[**Query**]({{site.baseurl}}/docs/rest-api/#query)
 
-----------
+Submit a query and return results]
 
-### GET /options.json
+[**Profiles**](({{site.baseurl}}/docs/rest-api/#profiles))
 
-List the name, default, and data type of the system and session options.
+* Get the profiles of running and completed queries  
+* Get the profile of the query that has the given queryid  
+* Cancel the query that has the given queryid  
 
-**Example**
+[**Storage**]({{site.baseurl}}/docs/rest-api/#storage)
 
-`curl http://localhost:8047/options.json`
+* Get the list of storage plugin names and configurations  
+* Get the definition of the named storage plugin  
+* Enable or disable the named storage plugin  
+* Create or update a storage plugin configuration  
+* Delete a storage plugin configuration  
+* Get Drillbit information, such as ports numbers  
+* Get the current memory metrics  
 
-**Response Body**
+[**Threads**](({{site.baseurl}}/docs/rest-api/#threads))
 
-        [ {
-          "name" : "planner.broadcast_factor",
-          "value" : 1.0,
-          "type" : "SYSTEM",
-          "kind" : "DOUBLE"
-        }, 
+Get the status of threads  
 
-        . . .
+[**Options**]({{site.baseurl}}/docs/rest-api/#options)
 
-        {
-          "name" : "store.parquet.compression",
-          "value" : "snappy",
-          "type" : "SYSTEM",
-          "kind" : "STRING"
-        },
+* List information about system/session options  
+* Change the value or type of the named option  
 
-        . . .
 
-        {
-          "name" : "exec.enable_union_type",
-          "value" : false,
-          "type" : "SYSTEM",
-          "kind" : "BOOLEAN"
-        } ]
+## Query
+
+Using the query method, you can programmatically run queries. 
 
 ----------
 
-### POST /option/{optionName}
+### POST /query.json
 
-Change the value or type of the named option.
+Submit a query and return results.
 
-**Parameter**
+**Parameters**
 
-optionName--The name of a [Drill system option]({{site.baseurl}}/docs/configuration-options-introduction/#system-options).
+* queryType--SQL, PHYSICAL, or LOGICAL are valid types. Use only "SQL". Other types are for internal use only.  
+* query--A SQL query that runs in Drill.
 
 **Request Body**
 
-Enclose option values of kind STRING in double quotation marks.
-
         {
-          "name" : "<option name>",
-          "value" : ["]<new value>["],
-          "type" : "<SYSTEM or SESSION>",
-          "kind" : "<option data type>"
+          "queryType" : "SQL",
+          "query" : "<Drill query>"
         }
 
 **Example**
 
-        curl -X POST -H "Content-Type: application/json" -d '{"name" : "store.json.all_text_mode", "value" : true, "type" : "SYSTEM", "kind" : "BOOLEAN"}' http://localhost:8047/option/store.json.all_text_mode
-
-<!-- Not merged yet, need to test -->
+     curl -X POST -H "Content-Type: application/json" -d '{"queryType":"SQL", "query": "select * from dfs.`/Users/joe-user/apache-drill-1.3.0/sample-data/donuts.json` where name= \u0027Cake\u0027"}' http://localhost:8047/query.json
 
 **Response Body**
 
-        {
-          "result" : "success"
-        }
+     {
+       "columns" : [ "id", "type", "name", "ppu", "sales", "batters", "topping", "filling" ],
+       "rows" : [ {
+         "id" : "0001",
+         "sales" : "35",
+         "name" : "Cake",
+         "topping" : "[{\"id\":\"5001\",\"type\":\"None\"},{\"id\":\"5002\",\"type\":\"Glazed\"},{\"id\":\"5005\",\"type\":\"Sugar\"},{\"id\":\"5007\",\"type\":\"Powdered Sugar\"},{\"id\":\"5006\",\"type\":\"Chocolate with Sprinkles\"},{\"id\":\"5003\",\"type\":\"Chocolate\"},{\"id\":\"5004\",\"type\":\"Maple\"}]",
+         "ppu" : "0.55",
+         "type" : "donut",
+         "batters" : "{\"batter\":[{\"id\":\"1001\",\"type\":\"Regular\"},{\"id\":\"1002\",\"type\":\"Chocolate\"},{\"id\":\"1003\",\"type\":\"Blueberry\"},{\"id\":\"1004\",\"type\":\"Devil's Food\"}]}",
+         "filling" : "[]"
+       } ]
+     }
 
-## Profile
+## Profiles
 
 These methods get query profiles. 
 
@@ -177,47 +159,6 @@ queryid--The UUID of the query in [standard UUID](https://en.wikipedia.org/wiki/
           "result" : "success"
         }
 
-## Query
-
-Using the query method, you can programmatically run queries. 
-
-----------
-
-### POST /query.json
-
-Submit a query and return results.
-
-**Parameters**
-
-* queryType--SQL, PHYSICAL, or LOGICAL are valid types. Use only "SQL". Other types are for internal use only.  
-* query--A SQL query that runs in Drill.
-
-**Request Body**
-
-        {
-          "queryType" : "SQL",
-          "query" : "<Drill query>"
-        }
-
-**Example**
-
-     curl -X POST -H "Content-Type: application/json" -d '{"queryType":"SQL", "query": "select * from dfs.`/Users/joe-user/apache-drill-1.3.0/sample-data/donuts.json` where name= \u0027Cake\u0027"}' http://localhost:8047/query.json
-
-**Response Body**
-
-     {
-       "columns" : [ "id", "type", "name", "ppu", "sales", "batters", "topping", "filling" ],
-       "rows" : [ {
-         "id" : "0001",
-         "sales" : "35",
-         "name" : "Cake",
-         "topping" : "[{\"id\":\"5001\",\"type\":\"None\"},{\"id\":\"5002\",\"type\":\"Glazed\"},{\"id\":\"5005\",\"type\":\"Sugar\"},{\"id\":\"5007\",\"type\":\"Powdered Sugar\"},{\"id\":\"5006\",\"type\":\"Chocolate with Sprinkles\"},{\"id\":\"5003\",\"type\":\"Chocolate\"},{\"id\":\"5004\",\"type\":\"Maple\"}]",
-         "ppu" : "0.55",
-         "type" : "donut",
-         "batters" : "{\"batter\":[{\"id\":\"1001\",\"type\":\"Regular\"},{\"id\":\"1002\",\"type\":\"Chocolate\"},{\"id\":\"1003\",\"type\":\"Blueberry\"},{\"id\":\"1004\",\"type\":\"Devil's Food\"}]}",
-         "filling" : "[]"
-       } ]
-     }
 
 ## Storage
 
@@ -432,6 +373,10 @@ Get the current memory metrics.
          . . .
         ,"drill.allocator.normal.hist":{"count":84,"max":1024,"mean":273.6666666666667,"min":12,"p50":256.0,"p75":448.0,"p95":896.0,"p98":1024.0,"p99":1024.0,"p999":1024.0,"stddev":248.17013855555368}},"meters":{},"timers":{}}
 
+## Threads
+
+Get information about threads.
+
 ----------
 
 ### GET /status/threads
@@ -460,6 +405,78 @@ Get the status of threads.
             - locked <0x738fda67> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
         . . .
 
+## Options
+These methods get and set system options.
+
+----------
+
+### GET /options.json
+
+List the name, default, and data type of the system and session options.
+
+**Example**
+
+`curl http://localhost:8047/options.json`
+
+**Response Body**
+
+        [ {
+          "name" : "planner.broadcast_factor",
+          "value" : 1.0,
+          "type" : "SYSTEM",
+          "kind" : "DOUBLE"
+        }, 
+
+        . . .
+
+        {
+          "name" : "store.parquet.compression",
+          "value" : "snappy",
+          "type" : "SYSTEM",
+          "kind" : "STRING"
+        },
+
+        . . .
+
+        {
+          "name" : "exec.enable_union_type",
+          "value" : false,
+          "type" : "SYSTEM",
+          "kind" : "BOOLEAN"
+        } ]
+
+----------
+
+### POST /option/{optionName}
+
+Change the value or type of the named option.
+
+**Parameter**
+
+optionName--The name of a [Drill system option]({{site.baseurl}}/docs/configuration-options-introduction/#system-options).
+
+**Request Body**
+
+Enclose option values of kind STRING in double quotation marks.
+
+        {
+          "name" : "<option name>",
+          "value" : ["]<new value>["],
+          "type" : "<SYSTEM or SESSION>",
+          "kind" : "<option data type>"
+        }
+
+**Example**
+
+        curl -X POST -H "Content-Type: application/json" -d '{"name" : "store.json.all_text_mode", "value" : true, "type" : "SYSTEM", "kind" : "BOOLEAN"}' http://localhost:8047/option/store.json.all_text_mode
+
+<!-- Not merged yet, need to test -->
+
+**Response Body**
+
+        {
+          "result" : "success"
+        }
 
 
 


[10/30] drill git commit: tweak intro

Posted by ts...@apache.org.
tweak intro


Project: http://git-wip-us.apache.org/repos/asf/drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/cff9dcba
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/cff9dcba
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/cff9dcba

Branch: refs/heads/gh-pages
Commit: cff9dcba625a20afd7dbb71c88c3e9f35d061d2b
Parents: e15b534
Author: Kristine Hahn <kh...@maprtech.com>
Authored: Fri Nov 20 16:09:05 2015 -0800
Committer: Kristine Hahn <kh...@maprtech.com>
Committed: Fri Nov 20 16:09:05 2015 -0800

----------------------------------------------------------------------
 _docs/developer-information/009-rest-api.md | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/cff9dcba/_docs/developer-information/009-rest-api.md
----------------------------------------------------------------------
diff --git a/_docs/developer-information/009-rest-api.md b/_docs/developer-information/009-rest-api.md
index 6aece41..8509a9e 100644
--- a/_docs/developer-information/009-rest-api.md
+++ b/_docs/developer-information/009-rest-api.md
@@ -3,11 +3,9 @@ title: "REST API"
 parent: "Developer Information"
 ---
 
-The Drill REST API provides methods that perform the same functions as those in the [Drill Web Console](/starting-the-web-console/). For example, you can run queries, perform storage plugin tasks, such as creating a storage plugin, obtain profiles of queries, and get current memory metrics. 
+The Drill REST API provides programmatic access to Drill through the [Web Console](/starting-the-web-console/). 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. 
 
-An HTTP request having a .json suffix output returns a JSON response body. Generally, when you drop the .json suffix from these commands, Drill returns HTML.
-
-An HTTP request connects to Drill using the familiar Web Console URI:
+AN HTTP request uses the familiar Web Console URI:
 
 `http://<IP address or host name>:8047`
 


[23/30] drill git commit: Update classpath scanning doc

Posted by ts...@apache.org.
Update classpath scanning doc


Project: http://git-wip-us.apache.org/repos/asf/drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/f832cf6d
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/f832cf6d
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/f832cf6d

Branch: refs/heads/gh-pages
Commit: f832cf6dbedad9b8470b5cf2bbc78caca2e518f4
Parents: a33c893
Author: Julien Le Dem <ju...@dremio.com>
Authored: Sun Nov 22 21:45:34 2015 -0800
Committer: Tomer Shiran <ts...@gmail.com>
Committed: Mon Nov 23 10:11:26 2015 -0800

----------------------------------------------------------------------
 .../040-adding-custom-functions-to-drill.md             | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/f832cf6d/_docs/develop-custom-functions/040-adding-custom-functions-to-drill.md
----------------------------------------------------------------------
diff --git a/_docs/develop-custom-functions/040-adding-custom-functions-to-drill.md b/_docs/develop-custom-functions/040-adding-custom-functions-to-drill.md
index 1858e44..ae1aa27 100644
--- a/_docs/develop-custom-functions/040-adding-custom-functions-to-drill.md
+++ b/_docs/develop-custom-functions/040-adding-custom-functions-to-drill.md
@@ -10,17 +10,15 @@ Restart the Drillbit on each node to refresh the configuration.
 To add a custom function to Drill, complete the following steps:
 
   1. Add the sources JAR file and the classes JAR file for the custom function to the Drill classpath on all nodes running a Drillbit. To add the JAR files, copy them to `<drill installation directory>/jars/3rdparty`.
-  2. On all nodes running a Drillbit, add the name of the package that contains the classes to the main Drill configuration file in the following location:
-  
-        <drill installation directory>/conf/drill-override.conf
-	To add the package, add the package name to
-	`drill.logical.function.package+=`. Separate package names with a comma.
+  2. Your class jar file should contain a `drill-module.conf` file at its root. 
+  3. The `drill-module.conf` file should contain the packages to scan for functions
+  	`drill.classpath.scanning.package+=`. Separate package names with a comma.
 	
     **Example**
 		
-		drill.logical.function.package+= [“org.apache.drill.exec.expr.fn.impl","org.apache.drill.udfs”]
+		drill.classpath.scanning.package+= "com.mydomain.drill.fn"
   3. On each Drill node in the cluster, navigate to the Drill installation directory, and issue the following command to restart the Drillbit:
   
         <drill installation directory>/bin/drillbit.sh restart
 
-     Now you can issue queries with your custom functions to Drill.
\ No newline at end of file
+     Now you can issue queries with your custom functions to Drill.


[24/30] drill git commit: Update 040-adding-custom-functions-to-drill.md

Posted by ts...@apache.org.
Update 040-adding-custom-functions-to-drill.md


Project: http://git-wip-us.apache.org/repos/asf/drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/dbce08e0
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/dbce08e0
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/dbce08e0

Branch: refs/heads/gh-pages
Commit: dbce08e0e278e403543f5dcde17f34d543d7f4e0
Parents: f832cf6
Author: Julien Le Dem <ju...@dremio.com>
Authored: Sun Nov 22 21:56:33 2015 -0800
Committer: Tomer Shiran <ts...@gmail.com>
Committed: Mon Nov 23 10:11:33 2015 -0800

----------------------------------------------------------------------
 .../040-adding-custom-functions-to-drill.md                        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/dbce08e0/_docs/develop-custom-functions/040-adding-custom-functions-to-drill.md
----------------------------------------------------------------------
diff --git a/_docs/develop-custom-functions/040-adding-custom-functions-to-drill.md b/_docs/develop-custom-functions/040-adding-custom-functions-to-drill.md
index ae1aa27..9ae2dbb 100644
--- a/_docs/develop-custom-functions/040-adding-custom-functions-to-drill.md
+++ b/_docs/develop-custom-functions/040-adding-custom-functions-to-drill.md
@@ -17,7 +17,7 @@ To add a custom function to Drill, complete the following steps:
     **Example**
 		
 		drill.classpath.scanning.package+= "com.mydomain.drill.fn"
-  3. On each Drill node in the cluster, navigate to the Drill installation directory, and issue the following command to restart the Drillbit:
+  4. On each Drill node in the cluster, navigate to the Drill installation directory, and issue the following command to restart the Drillbit:
   
         <drill installation directory>/bin/drillbit.sh restart
 


[02/30] drill git commit: edit for jdbc addition

Posted by ts...@apache.org.
edit for jdbc addition


Project: http://git-wip-us.apache.org/repos/asf/drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/b7feb0b7
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/b7feb0b7
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/b7feb0b7

Branch: refs/heads/gh-pages
Commit: b7feb0b7e3d933e8d9fa718871df2e586a4de2cc
Parents: 679a05a
Author: Kristine Hahn <kh...@maprtech.com>
Authored: Fri Nov 20 14:09:36 2015 -0800
Committer: Kristine Hahn <kh...@maprtech.com>
Committed: Fri Nov 20 14:09:36 2015 -0800

----------------------------------------------------------------------
 _docs/connect-a-data-source/035-plugin-configuration-basics.md | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/b7feb0b7/_docs/connect-a-data-source/035-plugin-configuration-basics.md
----------------------------------------------------------------------
diff --git a/_docs/connect-a-data-source/035-plugin-configuration-basics.md b/_docs/connect-a-data-source/035-plugin-configuration-basics.md
index 743ca71..8328e59 100644
--- a/_docs/connect-a-data-source/035-plugin-configuration-basics.md
+++ b/_docs/connect-a-data-source/035-plugin-configuration-basics.md
@@ -85,7 +85,7 @@ The following table describes the attributes you configure for storage plugins i
   <tr>
     <td>"formats"</td>
     <td>"psv"<br>"csv"<br>"tsv"<br>"parquet"<br>"json"<br>"avro"<br>"maprdb" *</td>
-    <td>yes</td>
+    <td>yes if type is file</td>
     <td>One or more valid file formats for reading. Drill implicitly detects formats of some files based on extension or bits of data in the file; others require configuration.</td>
   </tr>
   <tr>
@@ -162,9 +162,9 @@ If you need to add a storage plugin configuration to Drill and do not want to us
 
 For example, this command creates a storage plugin named myplugin for reading files of an unknown type located on the root of the file system:
 
-    curl -X POST -H "Content-Type: application/json" -d '{"name":"myplugin", "config": {"type": "file", "enabled": false, "connection": "file:///", "workspaces": { "root": { "location": "/", "writable": false, "defaultInputFormat": null}}, "formats": null}}' https://localhost:8047/storage/myplugin.json
+    curl -X POST -H "Content-Type: application/json" -d '{"name":"myplugin", "config": {"type": "file", "enabled": false, "connection": "file:///", "workspaces": { "root": { "location": "/", "writable": false, "defaultInputFormat": null}}, "formats": null}}' http://localhost:8047/storage/myplugin.json
 
-For more information about the REST API, see this [Google doc](https://docs.google.com/document/d/1mRsuWk4Dpt6ts-jQ6ke3bB30PIwanRiCPfGxRwZEQME).
+This example assumes HTTPS has not been enabled. For more information about the REST API, see the [REST API]({{base.url}}/docs/rest-api).
 
 ## Bootstrapping a Storage Plugin
 


[13/30] drill git commit: editorial

Posted by ts...@apache.org.
editorial


Project: http://git-wip-us.apache.org/repos/asf/drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/363a72ae
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/363a72ae
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/363a72ae

Branch: refs/heads/gh-pages
Commit: 363a72aeb901fa82a32e74066b08962d004accf2
Parents: b6e5381
Author: Kristine Hahn <kh...@maprtech.com>
Authored: Sat Nov 21 13:25:32 2015 -0800
Committer: Kristine Hahn <kh...@maprtech.com>
Committed: Sat Nov 21 13:25:32 2015 -0800

----------------------------------------------------------------------
 _docs/developer-information/009-rest-api.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/363a72ae/_docs/developer-information/009-rest-api.md
----------------------------------------------------------------------
diff --git a/_docs/developer-information/009-rest-api.md b/_docs/developer-information/009-rest-api.md
index f81be89..d21abad 100644
--- a/_docs/developer-information/009-rest-api.md
+++ b/_docs/developer-information/009-rest-api.md
@@ -71,7 +71,7 @@ Submit a query and return results.
 
 **Example**
 
-`curl -X POST -H "Content-Type: application/json" -d '{"queryType":"SQL", "query": "select * from dfs.`/Users/joe-user/apache-drill-1.3.0/sample-data/donuts.json` where name= \u0027Cake\u0027"}' http://localhost:8047/query.json`
+     curl -X POST -H "Content-Type: application/json" -d '{"queryType":"SQL", "query": "select * from dfs.`/Users/joe-user/apache-drill-1.3.0/sample-data/donuts.json` where name= \u0027Cake\u0027"}' http://localhost:8047/query.json
 
 **Response Body**
 
@@ -447,7 +447,7 @@ List the name, default, and data type of the system and session options.
 
 ### POST /option/{optionName}
 
-Change the value or type of the named option. <<Needs testing on 1.3>>
+Change the value or type of the named option. Doc Note: Test on 1.3.
 
 **Parameter**
 


[26/30] drill git commit: Create 110-s3-storage-plugin.md

Posted by ts...@apache.org.
Create 110-s3-storage-plugin.md


Project: http://git-wip-us.apache.org/repos/asf/drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/42505c9d
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/42505c9d
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/42505c9d

Branch: refs/heads/gh-pages
Commit: 42505c9d785ab4fdddcc5f6f4768777793a57c7c
Parents: df1072b
Author: Abhi <ab...@users.noreply.github.com>
Authored: Sun Nov 22 17:19:05 2015 -0800
Committer: Tomer Shiran <ts...@gmail.com>
Committed: Mon Nov 23 10:11:53 2015 -0800

----------------------------------------------------------------------
 .../plugins/110-s3-storage-plugin.md            | 84 ++++++++++++++++++++
 1 file changed, 84 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/42505c9d/_docs/connect-a-data-source/plugins/110-s3-storage-plugin.md
----------------------------------------------------------------------
diff --git a/_docs/connect-a-data-source/plugins/110-s3-storage-plugin.md b/_docs/connect-a-data-source/plugins/110-s3-storage-plugin.md
new file mode 100644
index 0000000..022a6dc
--- /dev/null
+++ b/_docs/connect-a-data-source/plugins/110-s3-storage-plugin.md
@@ -0,0 +1,84 @@
+---
+title: "S3 Storage Plugin"
+parent: "Connect a Data Source"
+---
+Drill works with data stored in the cloud. With a few simple steps, you can configure the S3 storage plugin for Drill and be off to the races running queries.
+
+## Connecting Drill to S3
+
+Starting with version 1.3.0, Drill has the ability to query files stored on Amazon's S3 cloud storage using the S3a library. This is important, because S3a adds support for files bigger than 5 gigabytes (these were unsupported using Drill's previous S3n interface).
+
+There are two simple steps to follow: (1) provide your AWS credentials (2) configure S3 storage plugin with S3 bucket
+
+#### (1) AWS credentials
+
+To enable Drill's S3a support, edit the file conf/core-site.xml in your Drill install directory, replacing the text ENTER_YOUR_ACESSKEY and ENTER_YOUR_SECRETKEY with your AWS credentials.
+
+```
+<configuration>
+
+  <property>
+    <name>fs.s3a.access.key</name>
+    <value>ENTER_YOUR_ACCESSKEY</value>
+  </property>
+
+  <property>
+    <name>fs.s3a.secret.key</name>
+    <value>ENTER_YOUR_SECRETKEY</value>
+  </property>
+
+</configuration>
+```
+
+#### (2) Configure S3 Storage Plugin
+
+Enable S3 storage plugin if you already have one configured or you can add a new plugin by following these steps:
+
+1. Point your browser to http://<host>:8047 and select the 'Storage' tab. (Note: on a single machine system, you'll need to run drill-embedded before you can access the web console site)
+2. Duplicate the 'dfs' plugin. To do this, hit 'Update' next to 'dfs,' and then copy the JSON text that appears.
+3. Create a new storage plugin, and paste in the 'dfs' text.
+4. Replace -- file:/// with s3a://your.bucketname.
+5. Name your new plugin, say s3-\<bucketname\>
+
+You should now be able to talk to data stored on S3 using the S3a library.
+
+## S3 Example
+
+```
+{
+  "type": "file",
+  "enabled": true,
+  "connection": "s3a://apache.drill.cloud.bigdata/",
+  "workspaces": {
+    "root": {
+      "location": "/",
+      "writable": false,
+      "defaultInputFormat": null
+    },
+    "tmp": {
+      "location": "/tmp",
+      "writable": true,
+      "defaultInputFormat": null
+    }
+  },
+  "formats": {
+    "psv": {
+      "type": "text",
+      "extensions": [
+        "tbl"
+      ],
+      "delimiter": "|"
+    },
+    "csv": {
+      "type": "text",
+      "extensions": [
+        "csv"
+      ],
+      "delimiter": ","
+    },
+    ....
+    
+  }
+}
+```
+


[22/30] drill git commit: Sequence file format and example query.

Posted by ts...@apache.org.
Sequence file format and example query.


Project: http://git-wip-us.apache.org/repos/asf/drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/a33c8931
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/a33c8931
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/a33c8931

Branch: refs/heads/gh-pages
Commit: a33c89318c40eae03a61fa6194b4d8c706036683
Parents: 5bbf67e
Author: Amit Hadke <am...@gmail.com>
Authored: Sun Nov 22 21:34:04 2015 -0800
Committer: Tomer Shiran <ts...@gmail.com>
Committed: Mon Nov 23 10:11:05 2015 -0800

----------------------------------------------------------------------
 .../035-plugin-configuration-basics.md          |  6 +--
 .../080-drill-default-input-format.md           |  1 +
 ...ata-sources-and-file-formats-introduction.md |  1 +
 .../070-sequencefile-format.md                  | 44 ++++++++++++++++++++
 .../050-querying-sequence-files.md              | 33 +++++++++++++++
 5 files changed, 82 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/a33c8931/_docs/connect-a-data-source/035-plugin-configuration-basics.md
----------------------------------------------------------------------
diff --git a/_docs/connect-a-data-source/035-plugin-configuration-basics.md b/_docs/connect-a-data-source/035-plugin-configuration-basics.md
index b460fb0..5788bc3 100644
--- a/_docs/connect-a-data-source/035-plugin-configuration-basics.md
+++ b/_docs/connect-a-data-source/035-plugin-configuration-basics.md
@@ -13,7 +13,7 @@ You can use the Drill Web Console to update or add a new storage plugin configur
 
 To create a name and new configuration:
 
-1. [Start the Drill shell]({{site.baseurl}}/docs/starting-drill-on-linux-and-mac-os-x/).  
+1. [Start the Drill shell]({{site.baseurl}}/docs/starting-drill-on-linux-and-mac-os-x/).
 2. [Start the Web Console]({{site.baseurl}}/docs/starting-the-web-console/).  
 3. On the Storage tab, enter a name in **New Storage Plugin**.
    Each configuration registered with Drill must have a distinct
@@ -84,13 +84,13 @@ The following table describes the attributes you configure for storage plugins i
   </tr>
   <tr>
     <td>"formats"</td>
-    <td>"psv"<br>"csv"<br>"tsv"<br>"parquet"<br>"json"<br>"avro"<br>"maprdb" *</td>
+    <td>"psv"<br>"csv"<br>"tsv"<br>"parquet"<br>"json"<br>"avro"<br>"maprdb"<br>"sequencefile" *</td>
     <td>yes</td>
     <td>One or more valid file formats for reading. Drill implicitly detects formats of some files based on extension or bits of data in the file; others require configuration.</td>
   </tr>
   <tr>
     <td>"formats" . . . "type"</td>
-    <td>"text"<br>"parquet"<br>"json"<br>"maprdb" *</td>
+    <td>"text"<br>"parquet"<br>"json"<br>"maprdb"<br>"avro"<br>"sequencefile" *</td>
     <td>yes</td>
     <td>Format type. You can define two formats, csv and psv, as type "Text", but having different delimiters. </td>
   </tr>

http://git-wip-us.apache.org/repos/asf/drill/blob/a33c8931/_docs/connect-a-data-source/080-drill-default-input-format.md
----------------------------------------------------------------------
diff --git a/_docs/connect-a-data-source/080-drill-default-input-format.md b/_docs/connect-a-data-source/080-drill-default-input-format.md
index 2de4d70..4b7ae46 100644
--- a/_docs/connect-a-data-source/080-drill-default-input-format.md
+++ b/_docs/connect-a-data-source/080-drill-default-input-format.md
@@ -18,6 +18,7 @@ Drill supports. Currently, Drill supports the following input types:
   * CSV, TSV, or PSV
   * Parquet
   * JSON
+  * Hadoop Sequence Files
 
 You must have a [defined workspace]({{ site.baseurl }}/docs/workspaces) before you can define a default input format.
 

http://git-wip-us.apache.org/repos/asf/drill/blob/a33c8931/_docs/data-sources-and-file-formats/010-data-sources-and-file-formats-introduction.md
----------------------------------------------------------------------
diff --git a/_docs/data-sources-and-file-formats/010-data-sources-and-file-formats-introduction.md b/_docs/data-sources-and-file-formats/010-data-sources-and-file-formats-introduction.md
index d468c40..5ecd859 100644
--- a/_docs/data-sources-and-file-formats/010-data-sources-and-file-formats-introduction.md
+++ b/_docs/data-sources-and-file-formats/010-data-sources-and-file-formats-introduction.md
@@ -17,6 +17,7 @@ Drill supports the following input formats for data:
 * PSV (Pipe-Separated-Values)
 * Parquet
 * MapR-DB*
+* Hadoop Sequence Files
 
 \* Only available when you install Drill on a cluster using the mapr-drill package.
 

http://git-wip-us.apache.org/repos/asf/drill/blob/a33c8931/_docs/data-sources-and-file-formats/070-sequencefile-format.md
----------------------------------------------------------------------
diff --git a/_docs/data-sources-and-file-formats/070-sequencefile-format.md b/_docs/data-sources-and-file-formats/070-sequencefile-format.md
new file mode 100644
index 0000000..2e15d17
--- /dev/null
+++ b/_docs/data-sources-and-file-formats/070-sequencefile-format.md
@@ -0,0 +1,44 @@
+---
+title: "Sequence Files"
+parent: "Data Sources and File Formats"
+---
+
+Hadoop Sequence files (https://wiki.apache.org/hadoop/SequenceFile) are flat files storing binary key, value pairs.
+Drill projects sequence files as table with two columns - 'binary_key', 'binary_value' of type VARBINARY.
+
+
+### Storage plugin format for sequence files.
+
+    . . .
+    "sequencefile": {
+      "type": "sequencefile",
+      "extensions": [
+        "seq"
+      ]
+    },
+    . . .
+
+### Querying sequence file.
+
+    SELECT *
+    FROM dfs.tmp.`simple.seq`
+    LIMIT 1;
+    +--------------+---------------+
+    |  binary_key  | binary_value  |
+    +--------------+---------------+
+    | [B@70828f46  | [B@b8c765f    |
+    +--------------+---------------+
+
+
+simple.seq contains byte serialized strings as keys and values, we can convert them to strings.
+
+
+    SELECT CONVERT_FROM(binary_key, 'UTF8'), CONVERT_FROM(binary_value, 'UTF8')
+    FROM dfs.tmp.`simple.seq`
+    LIMIT 1
+    ;
+    +-----------+-------------+
+    |  EXPR$0   |   EXPR$1    |
+    +-----------+-------------+
+    | key0      |   value0    |
+    +-----------+-------------+
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/drill/blob/a33c8931/_docs/query-data/query-a-file-system/050-querying-sequence-files.md
----------------------------------------------------------------------
diff --git a/_docs/query-data/query-a-file-system/050-querying-sequence-files.md b/_docs/query-data/query-a-file-system/050-querying-sequence-files.md
new file mode 100644
index 0000000..ceb77e2
--- /dev/null
+++ b/_docs/query-data/query-a-file-system/050-querying-sequence-files.md
@@ -0,0 +1,33 @@
+---
+title: "Querying Sequence Files"
+parent: "Querying a File System"
+---
+
+Sequence files are flat files storing binary key value pairs.
+Drill projects sequence files as table with two columns 'binary_key', 'binary_value'.
+
+
+### Querying sequence file.
+
+Start drill shell
+
+        SELECT *
+        FROM dfs.tmp.`simple.seq`
+        LIMIT 1;
+        +--------------+---------------+
+        |  binary_key  | binary_value  |
+        +--------------+---------------+
+        | [B@70828f46  | [B@b8c765f    |
+        +--------------+---------------+
+
+Since simple.seq contains byte serialized strings as keys and values, we can convert them to strings.
+
+        SELECT CONVERT_FROM(binary_key, 'UTF8'), CONVERT_FROM(binary_value, 'UTF8')
+        FROM dfs.tmp.`simple.seq`
+        LIMIT 1
+        ;
+        +-----------+-------------+
+        |  EXPR$0   |   EXPR$1    |
+        +-----------+-------------+
+        | key0      |   value0    |
+        +-----------+-------------+


[27/30] drill git commit: Update 110-s3-storage-plugin.md

Posted by ts...@apache.org.
Update 110-s3-storage-plugin.md


Project: http://git-wip-us.apache.org/repos/asf/drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/58f83b75
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/58f83b75
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/58f83b75

Branch: refs/heads/gh-pages
Commit: 58f83b750fdf3ef1199ba3827e03e998de1cc1c3
Parents: 42505c9
Author: Abhi <ab...@users.noreply.github.com>
Authored: Sun Nov 22 23:03:01 2015 -0800
Committer: Tomer Shiran <ts...@gmail.com>
Committed: Mon Nov 23 10:11:58 2015 -0800

----------------------------------------------------------------------
 .../plugins/110-s3-storage-plugin.md              | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/58f83b75/_docs/connect-a-data-source/plugins/110-s3-storage-plugin.md
----------------------------------------------------------------------
diff --git a/_docs/connect-a-data-source/plugins/110-s3-storage-plugin.md b/_docs/connect-a-data-source/plugins/110-s3-storage-plugin.md
index 022a6dc..b7cad62 100644
--- a/_docs/connect-a-data-source/plugins/110-s3-storage-plugin.md
+++ b/_docs/connect-a-data-source/plugins/110-s3-storage-plugin.md
@@ -42,7 +42,7 @@ Enable S3 storage plugin if you already have one configured or you can add a new
 
 You should now be able to talk to data stored on S3 using the S3a library.
 
-## S3 Example
+## Example S3 Storage Plugin
 
 ```
 {
@@ -81,4 +81,20 @@ You should now be able to talk to data stored on S3 using the S3a library.
   }
 }
 ```
+## Quering Parquet Format Files On S3 
 
+Drill uses Hadoop FileSystem for reading S3 input files, which in the end uses Apache HttpClient. HttpClient has a default limit of four simultaneous requests, and it puts the subsequent S3 requests in the queue. A Drill query with large number of columns or a Select * query, on Parquet formatted files ends up issuing many S3 requests and can fail with ConnectionPoolTimeoutException.   
+
+Fortunately, as a part of S3a implementation in Hadoop 2.7.1, HttpClient's required limit parameter is extracted out in a config and can be raised to avoid ConnectionPoolTimeoutException. This is how you can set this parameter in conf/core-site.xml file in your Drill install directory:
+
+```
+<configuration>
+  ...
+  
+  <property>
+    <name>fs.s3a.connection.maximum</name>
+    <value>100</value>
+  </property>
+
+</configuration>
+```


[07/30] drill git commit: links

Posted by ts...@apache.org.
links


Project: http://git-wip-us.apache.org/repos/asf/drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/1a5bca86
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/1a5bca86
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/1a5bca86

Branch: refs/heads/gh-pages
Commit: 1a5bca86c7470f547f98ef933b9ea7ca076044f8
Parents: e002364
Author: Kristine Hahn <kh...@maprtech.com>
Authored: Fri Nov 20 15:16:57 2015 -0800
Committer: Kristine Hahn <kh...@maprtech.com>
Committed: Fri Nov 20 15:16:57 2015 -0800

----------------------------------------------------------------------
 .../035-plugin-configuration-basics.md          |  4 +--
 _docs/developer-information/009-rest-api.md     | 31 +++++++++++++-------
 2 files changed, 23 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/1a5bca86/_docs/connect-a-data-source/035-plugin-configuration-basics.md
----------------------------------------------------------------------
diff --git a/_docs/connect-a-data-source/035-plugin-configuration-basics.md b/_docs/connect-a-data-source/035-plugin-configuration-basics.md
index 8328e59..e8b5d22 100644
--- a/_docs/connect-a-data-source/035-plugin-configuration-basics.md
+++ b/_docs/connect-a-data-source/035-plugin-configuration-basics.md
@@ -152,7 +152,7 @@ For example, using uppercase letters in the query after defining the storage plu
 
 ## Storage Plugin REST API
 
-If you need to add a storage plugin configuration to Drill and do not want to use a web browser, Drill provides a REST API that you can use to create a storage plugin configuration. Use a POST and pass two properties:
+If you need to add a storage plugin configuration to Drill and do not want to use a web browser, you can use the [Drill REST API]({{site.baseurl}}/docs/rest-api/#get-status-threads) to create a storage plugin configuration. Use a POST request and pass two properties:
 
 * name  
   The storage plugin configuration name. 
@@ -164,7 +164,7 @@ For example, this command creates a storage plugin named myplugin for reading fi
 
     curl -X POST -H "Content-Type: application/json" -d '{"name":"myplugin", "config": {"type": "file", "enabled": false, "connection": "file:///", "workspaces": { "root": { "location": "/", "writable": false, "defaultInputFormat": null}}, "formats": null}}' http://localhost:8047/storage/myplugin.json
 
-This example assumes HTTPS has not been enabled. For more information about the REST API, see the [REST API]({{base.url}}/docs/rest-api).
+This example assumes HTTPS has not been enabled. 
 
 ## Bootstrapping a Storage Plugin
 

http://git-wip-us.apache.org/repos/asf/drill/blob/1a5bca86/_docs/developer-information/009-rest-api.md
----------------------------------------------------------------------
diff --git a/_docs/developer-information/009-rest-api.md b/_docs/developer-information/009-rest-api.md
index 7432b6e..8a4266c 100644
--- a/_docs/developer-information/009-rest-api.md
+++ b/_docs/developer-information/009-rest-api.md
@@ -21,10 +21,20 @@ Several examples in the document use the donuts.json file. To download this file
 
 The following short description of methods link to more information and examples:
 
-* [List information about system/session options]({{site.baseurl}}/docs/rest-api/#get-options-json).
-* [Change the value or type of the named option]({{site.baseurl}}/drill/docs/rest-api/#post-option-optionname).
-* [Submit a query to Drill and return query results](). 
-* 
+* [List information about system/session options]({{site.baseurl}}/docs/rest-api/#get-options-json)  
+* [Change the value or type of the named option]({{site.baseurl}}/drill/docs/rest-api/#post-option-optionname)  
+* [Get the profiles of running and completed queries]({{site.baseurl}}/docs/rest-api/#get-profiles-json)  
+* [Get the profile of the query that has the given queryid]({{site.baseurl}}/drill/docs/rest-api/#get-profiles-queryid-json)  
+* [Cancel the query that has the given queryid]({{site.baseurl}}/docs/rest-api/#get-profiles-cancel-queryid)  
+* [Submit a query and return results]({{site.baseurl}}/docs/rest-api/#post-query-json)  
+* [Get the list of storage plugin names and configurations]({{site.baseurl}}/docs/rest-api/#get-storage-json)  
+* [Get the definition of the named storage plugin]({{site.baseurl}}/docs/rest-api/#get-storage-name-json)  
+* [Enable or disable the named storage plugin]({{site.baseurl}}/docs/rest-api/#get-storage-name-enable-val)  
+* [Create or update a storage plugin configuration]({{site.baseurl}}/docs/rest-api/#post-storage-name-json)  
+* [Delete a storage plugin configuration]({{site.baseurl}}/docs/rest-api/#delete-storage-name-json)  
+* [Get Drillbit information, such as ports numbers]({{site.baseurl}}/drill/docs/rest-api/#get-stats-json)  
+* [Get the current memory metrics]({{site.baseurl}}/docs/rest-api/#get-status-metrics)  
+* [Get the status of threads]({{site.baseurl}}/docs/rest-api/#get-status-threads)  
 
 ## Options
 These methods get and set system options.
@@ -94,6 +104,7 @@ Enclose option values of kind STRING in double quotation marks.
 <!-- Not merged yet, need to test -->
 
 **Response Body**
+
         {
           "result" : "success"
         }
@@ -131,7 +142,7 @@ Get the profiles of running and completed queries.
 
 ### GET /profiles/{queryid}.json
 
-Get the profile of given queryid.
+Get the profile of the query that has the given queryid.
 
 **Parameter**
 
@@ -150,7 +161,7 @@ queryid--The UUID of the query in [standard UUID](https://en.wikipedia.org/wiki/
 
 ### GET /profiles/cancel/{queryid}
 
-Cancel the query having the given queryid.
+Cancel the query that has the given queryid.
 
 **Parameter**
 
@@ -174,7 +185,7 @@ Using the query method, you can programmatically run queries.
 
 ### POST /query.json
 
-Submits a query, waits until the query completes, and then returns the results as single JSON object.
+Submit a query and return results.
 
 **Parameters**
 
@@ -251,7 +262,7 @@ Get the list of storage plugin names and configurations.
 
 ### GET /storage/{name}.json
 
-Get the named storage plugin name and configuration.
+Get the definition of the named storage plugin.
 
 **Parameter**
 
@@ -356,7 +367,7 @@ Gets metric information.
 
 ### GET /stats.json
 
-Returns Drillbit stats such as ports and max direct memory.
+Get Drillbit information, such as ports numbers.
 
 **Example**
 
@@ -425,7 +436,7 @@ Get the current memory metrics.
 
 ### GET /status/threads
 
-Get status of threads.
+Get the status of threads.
 
 **Example**
 


[17/30] drill git commit: 1.3 release blog post

Posted by ts...@apache.org.
1.3 release blog post


Project: http://git-wip-us.apache.org/repos/asf/drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/a5a76349
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/a5a76349
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/a5a76349

Branch: refs/heads/gh-pages
Commit: a5a763494c50e43c7329455c54b589d5f8b62e83
Parents: 7cb973a
Author: Tomer Shiran <ts...@gmail.com>
Authored: Mon Nov 23 10:01:04 2015 -0800
Committer: Tomer Shiran <ts...@gmail.com>
Committed: Mon Nov 23 10:01:04 2015 -0800

----------------------------------------------------------------------
 blog/_posts/2015-11-23-drill-1.3-released.md | 68 +++++++++++++++++++++++
 1 file changed, 68 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/a5a76349/blog/_posts/2015-11-23-drill-1.3-released.md
----------------------------------------------------------------------
diff --git a/blog/_posts/2015-11-23-drill-1.3-released.md b/blog/_posts/2015-11-23-drill-1.3-released.md
new file mode 100644
index 0000000..f299320
--- /dev/null
+++ b/blog/_posts/2015-11-23-drill-1.3-released.md
@@ -0,0 +1,68 @@
+---
+layout: post
+title: "Drill 1.3 Released"
+code: drill-1.3-released
+excerpt: Drill 1.3 has been released. Users can now query Hadoop sequence files and text delimited files with headers. In addition, this release provides significant performance and usability improvements for working with Amazon S3. Drill 1.3 also adds support for heterogeneous types, enabling queries on datasets with columns that have more than one data type (commonly seen in JSON files, MongoDB collections, etc.).
+authors: ["jnadeau"]
+---
+Today I'm happy to announce the availability of the Drill 1.3 release. This release addresses [58 JIRAs](https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12313820&version=12332946) on top of the 1.2 release. Highlights include:
+
+## Enhanced Amazon S3 Support
+
+Drill 1.3 utilizes a new library, called s3a, for reading data from S3. The s3a library includes improvements over the previous s3n library, such as higher performance and the ability to read large files (over 5GB).
+
+In addition to the new s3a library, Drill 1.3 makes it easier to set up your AWS credentials. Simply edit the file `conf/core-site.xml` in your Drill install directory. Check out the [step-by-step instructions in the documentation](/docs/s3-storage-plugin/).
+
+## Heterogeneous Types
+
+
+
+## Text File Headers
+
+Drill is now able to parse the header row in text files (CSV, TSV, etc.). Prior to Drill 1.3, data had to be accessed through the `columns` array:
+
+    SELECT columns[0], columns[1] FROM dfs.`/path/to/users.csv`
+    
+With Drill 1.3, you can use the actual column names in the CSV file:
+
+    SELECT name, address FROM dfs.`/path/to/users.csv`
+
+Follow the [steps in the documentation](/docs/text-files-csv-tsv-psv/) to enable header parsing. You'll need to set the `extractHeader` parameter in the storage plugin configuration for the desired file extensions.
+
+## Sequence Files
+
+Drill now [supports sequence files](/docs/querying-sequence-files/), a format commonly used in the Hadoop ecosystem. A sequence file contains a series of keys and values, and querying it with Drill is as easy as querying any other self-describing format:
+
+
+    SELECT *
+    FROM dfs.tmp.`simple.seq`
+    LIMIT 1;
+    +--------------+---------------+
+    |  binary_key  | binary_value  |
+    +--------------+---------------+
+    | [B@70828f46  | [B@b8c765f    |
+    +--------------+---------------+
+
+
+Drill's `CONVERT_FROM` function makes it easy to decode the binary values:
+
+
+    SELECT CONVERT_FROM(binary_key, 'UTF8'), CONVERT_FROM(binary_value, 'UTF8')
+    FROM dfs.tmp.`simple.seq`
+    LIMIT 1
+    ;
+    +-----------+-------------+
+    |  EXPR$0   |   EXPR$1    |
+    +-----------+-------------+
+    | key0      |   value0    |
+    +-----------+-------------+
+
+
+## Many More Fixes
+
+Drill 1.3 includes many other improvements, including enhancements related to querying Hive tables, MongoDB collections and Avro files. Check out the complete list of [fixes and enhancements](https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12313820&version=12332946) for more information.
+
+Download the [Drill 1.3 release](https://drill.apache.org/download/) now and let us know your thoughts.
+
+Drill On!
+Jacques Nadeau


[16/30] drill git commit: AddThis

Posted by ts...@apache.org.
AddThis


Project: http://git-wip-us.apache.org/repos/asf/drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/7cb973af
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/7cb973af
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/7cb973af

Branch: refs/heads/gh-pages
Commit: 7cb973afccb0548df5b37f24bfeda6ae4c1de612
Parents: ab18b18
Author: Tomer Shiran <ts...@gmail.com>
Authored: Mon Nov 23 10:00:23 2015 -0800
Committer: Tomer Shiran <ts...@gmail.com>
Committed: Mon Nov 23 10:00:23 2015 -0800

----------------------------------------------------------------------
 _includes/scripts.html | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/7cb973af/_includes/scripts.html
----------------------------------------------------------------------
diff --git a/_includes/scripts.html b/_includes/scripts.html
index f3dbac1..f323382 100644
--- a/_includes/scripts.html
+++ b/_includes/scripts.html
@@ -7,3 +7,4 @@ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
 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>
\ No newline at end of file


[15/30] drill git commit: add back rest-api doc

Posted by ts...@apache.org.
add back rest-api doc


Project: http://git-wip-us.apache.org/repos/asf/drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/38c3cb4f
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/38c3cb4f
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/38c3cb4f

Branch: refs/heads/gh-pages
Commit: 38c3cb4f8051cd6896d2117a2edeb10e08200109
Parents: b5bd18e
Author: Kristine Hahn <kh...@maprtech.com>
Authored: Sun Nov 22 19:47:41 2015 -0800
Committer: Kristine Hahn <kh...@maprtech.com>
Committed: Sun Nov 22 19:47:41 2015 -0800

----------------------------------------------------------------------
 _data/docs.json                             |  71 +++-
 _docs/developer-information/009-rest-api.md | 480 +++++++++++++++++++++++
 2 files changed, 541 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/38c3cb4f/_data/docs.json
----------------------------------------------------------------------
diff --git a/_data/docs.json b/_data/docs.json
index a65407e..7f9ea71 100644
--- a/_data/docs.json
+++ b/_data/docs.json
@@ -2688,8 +2688,8 @@
             "next_title": "Compiling Drill from Source", 
             "next_url": "/docs/compiling-drill-from-source/", 
             "parent": "Developer Information", 
-            "previous_title": "Developer Information", 
-            "previous_url": "/docs/developer-information/", 
+            "previous_title": "REST API", 
+            "previous_url": "/docs/rest-api/", 
             "relative_path": "_docs/developer-information/010-develop-drill.md", 
             "title": "Develop Drill", 
             "url": "/docs/develop-drill/"
@@ -2704,6 +2704,23 @@
                             "url": "/docs/developer-information/"
                         }
                     ], 
+                    "children": [], 
+                    "next_title": "Develop Drill", 
+                    "next_url": "/docs/develop-drill/", 
+                    "parent": "Developer Information", 
+                    "previous_title": "Developer Information", 
+                    "previous_url": "/docs/developer-information/", 
+                    "relative_path": "_docs/developer-information/009-rest-api.md", 
+                    "title": "REST API", 
+                    "url": "/docs/rest-api/"
+                }, 
+                {
+                    "breadcrumbs": [
+                        {
+                            "title": "Developer Information", 
+                            "url": "/docs/developer-information/"
+                        }
+                    ], 
                     "children": [
                         {
                             "breadcrumbs": [
@@ -2751,8 +2768,8 @@
                     "next_title": "Compiling Drill from Source", 
                     "next_url": "/docs/compiling-drill-from-source/", 
                     "parent": "Developer Information", 
-                    "previous_title": "Developer Information", 
-                    "previous_url": "/docs/developer-information/", 
+                    "previous_title": "REST API", 
+                    "previous_url": "/docs/rest-api/", 
                     "relative_path": "_docs/developer-information/010-develop-drill.md", 
                     "title": "Develop Drill", 
                     "url": "/docs/develop-drill/"
@@ -2941,8 +2958,8 @@
                     "url": "/docs/design-docs/"
                 }
             ], 
-            "next_title": "Develop Drill", 
-            "next_url": "/docs/develop-drill/", 
+            "next_title": "REST API", 
+            "next_url": "/docs/rest-api/", 
             "parent": "", 
             "previous_title": "Troubleshooting", 
             "previous_url": "/docs/troubleshooting/", 
@@ -7558,6 +7575,23 @@
             "title": "REPEATED_COUNT", 
             "url": "/docs/repeated-count/"
         }, 
+        "REST API": {
+            "breadcrumbs": [
+                {
+                    "title": "Developer Information", 
+                    "url": "/docs/developer-information/"
+                }
+            ], 
+            "children": [], 
+            "next_title": "Develop Drill", 
+            "next_url": "/docs/develop-drill/", 
+            "parent": "Developer Information", 
+            "previous_title": "Developer Information", 
+            "previous_url": "/docs/developer-information/", 
+            "relative_path": "_docs/developer-information/009-rest-api.md", 
+            "title": "REST API", 
+            "url": "/docs/rest-api/"
+        }, 
         "RPC Overview": {
             "breadcrumbs": [
                 {
@@ -15720,6 +15754,23 @@
                             "url": "/docs/developer-information/"
                         }
                     ], 
+                    "children": [], 
+                    "next_title": "Develop Drill", 
+                    "next_url": "/docs/develop-drill/", 
+                    "parent": "Developer Information", 
+                    "previous_title": "Developer Information", 
+                    "previous_url": "/docs/developer-information/", 
+                    "relative_path": "_docs/developer-information/009-rest-api.md", 
+                    "title": "REST API", 
+                    "url": "/docs/rest-api/"
+                }, 
+                {
+                    "breadcrumbs": [
+                        {
+                            "title": "Developer Information", 
+                            "url": "/docs/developer-information/"
+                        }
+                    ], 
                     "children": [
                         {
                             "breadcrumbs": [
@@ -15767,8 +15818,8 @@
                     "next_title": "Compiling Drill from Source", 
                     "next_url": "/docs/compiling-drill-from-source/", 
                     "parent": "Developer Information", 
-                    "previous_title": "Developer Information", 
-                    "previous_url": "/docs/developer-information/", 
+                    "previous_title": "REST API", 
+                    "previous_url": "/docs/rest-api/", 
                     "relative_path": "_docs/developer-information/010-develop-drill.md", 
                     "title": "Develop Drill", 
                     "url": "/docs/develop-drill/"
@@ -15957,8 +16008,8 @@
                     "url": "/docs/design-docs/"
                 }
             ], 
-            "next_title": "Develop Drill", 
-            "next_url": "/docs/develop-drill/", 
+            "next_title": "REST API", 
+            "next_url": "/docs/rest-api/", 
             "parent": "", 
             "previous_title": "Troubleshooting", 
             "previous_url": "/docs/troubleshooting/", 

http://git-wip-us.apache.org/repos/asf/drill/blob/38c3cb4f/_docs/developer-information/009-rest-api.md
----------------------------------------------------------------------
diff --git a/_docs/developer-information/009-rest-api.md b/_docs/developer-information/009-rest-api.md
new file mode 100644
index 0000000..d4a8328
--- /dev/null
+++ b/_docs/developer-information/009-rest-api.md
@@ -0,0 +1,480 @@
+---
+title: "REST API"
+parent: "Developer Information"
+---
+
+The Drill REST API provides programmatic access to Drill through the [Web Console](/starting-the-web-console/). 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. 
+
+AN HTTP request uses the familiar Web Console URI:
+
+`http://<IP address or host name>:8047`
+
+## Getting Started
+
+Before making HTTP requests, [start Drill]({{site.baseurl}}/docs/starting-drill-on-linux-and-mac-os-x).
+
+Several examples in the document use the donuts.json file. To download this file, go to [Drill test resources](https://github.com/apache/drill/blob/master/exec/java-exec/src/test/resources) page, locate donuts.json in the list of files, and download it. When using cURL, use unicode \u0027 for the single quotation mark as shown in the Query example.
+
+This documentation presents HTTP methods in the same order as functions appear in the Web Console:
+
+[**Query**]({{site.baseurl}}/docs/rest-api/#query)
+
+Submit a query and return results.
+
+[**Profiles**](({{site.baseurl}}/docs/rest-api/#profiles))
+
+* Get the profiles of running and completed queries.  
+* Get the profile of the query that has the given queryid.  
+* Cancel the query that has the given queryid.  
+
+[**Storage**]({{site.baseurl}}/docs/rest-api/#storage)
+
+* Get the list of storage plugin names and configurations.  
+* Get the definition of the named storage plugin.  
+* Enable or disable the named storage plugin.  
+* Create or update a storage plugin configuration.  
+* Delete a storage plugin configuration.  
+* Get Drillbit information, such as ports numbers.  
+* Get the current memory metrics.  
+
+[**Threads**](({{site.baseurl}}/docs/rest-api/#threads))
+
+Get the status of threads.  
+
+[**Options**]({{site.baseurl}}/docs/rest-api/#options)
+
+* List information about system/session options.  
+* Change the value or type of the named option.  
+
+
+## Query
+
+Using the query method, you can programmatically run queries. 
+
+----------
+
+### POST /query.json
+
+Submit a query and return results.
+
+**Parameters**
+
+* queryType--SQL, PHYSICAL, or LOGICAL are valid types. Use only "SQL". Other types are for internal use only.  
+* query--A SQL query that runs in Drill.
+
+**Request Body**
+
+        {
+          "queryType" : "SQL",
+          "query" : "<Drill query>"
+        }
+
+**Example**
+
+     curl -X POST -H "Content-Type: application/json" -d '{"queryType":"SQL", "query": "select * from dfs.`/Users/joe-user/apache-drill-1.3.0/sample-data/donuts.json` where name= \u0027Cake\u0027"}' http://localhost:8047/query.json
+
+**Response Body**
+
+     {
+       "columns" : [ "id", "type", "name", "ppu", "sales", "batters", "topping", "filling" ],
+       "rows" : [ {
+         "id" : "0001",
+         "sales" : "35",
+         "name" : "Cake",
+         "topping" : "[{\"id\":\"5001\",\"type\":\"None\"},{\"id\":\"5002\",\"type\":\"Glazed\"},{\"id\":\"5005\",\"type\":\"Sugar\"},{\"id\":\"5007\",\"type\":\"Powdered Sugar\"},{\"id\":\"5006\",\"type\":\"Chocolate with Sprinkles\"},{\"id\":\"5003\",\"type\":\"Chocolate\"},{\"id\":\"5004\",\"type\":\"Maple\"}]",
+         "ppu" : "0.55",
+         "type" : "donut",
+         "batters" : "{\"batter\":[{\"id\":\"1001\",\"type\":\"Regular\"},{\"id\":\"1002\",\"type\":\"Chocolate\"},{\"id\":\"1003\",\"type\":\"Blueberry\"},{\"id\":\"1004\",\"type\":\"Devil's Food\"}]}",
+         "filling" : "[]"
+       } ]
+     }
+
+## Profiles
+
+These methods get query profiles. 
+
+----------
+
+### GET /profiles.json
+
+Get the profiles of running and completed queries. 
+
+**Example**
+
+`curl http://localhost:8047/profiles.json`
+
+**Response Body**
+
+        {
+          "runningQueries" : [ ],
+          "finishedQueries" : [ {
+            "queryId" : "29b2e988-35e7-4c85-3151-32c7d3347f15",
+            "time" : "11/18/2015 16:23:19",
+            "location" : "http://localhost:8047/profile/29b2e988-35e7-4c85-3151-32c7d3347f15.json",
+            "foreman" : "10.250.50.31",
+            "query" : "select * from dfs.`/Users/joe-user/apache-drill-1.3.0/sample-data/donuts.json` where name= 'Cake'",
+            "state" : "COMPLETED",
+            "user" : "anonymous"
+          }, 
+          . . .
+
+----------
+
+### GET /profiles/{queryid}.json
+
+Get the profile of the query that has the given queryid.
+
+**Parameter**
+
+queryid--The UUID of the query in [standard UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format that Drill assigns to each query. 
+
+**Example**
+
+`curl http://localhost:8047/profiles/29b2e988-35e7-4c85-3151-32c7d3347f15.json`
+
+**Response Body**
+
+        {"id":{"part1":3004720672638717061,"part2":3553677414795345685},"type":1,"start":1447892599827,"end":1447892599950,"query":"select * from dfs.`/Users/joe-user/drill/apache-drill-1.3.0/sample-data/donuts.json` where name= 'Cake'","plan":"00-00    Screen : rowType = RecordType(ANY *): 
+        . . ."lastUpdate":1447892599950,"lastProgress":1447892599950}]}],"user":"anonymous"}
+
+----------
+
+### GET /profiles/cancel/{queryid}
+
+Cancel the query that has the given queryid.
+
+**Parameter**
+
+queryid--The UUID of the query in [standard UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format that Drill assigns to each query. 
+
+**Example**
+
+`curl http://localhost:8047/profiles/cancel/29b2e988-35e7-4c85-3151-32c7d3347f15`
+
+**Response Body**
+
+        {
+          "result" : "success"
+        }
+
+
+## Storage
+
+The storage REST methods manage Drill storage plugin configurations.
+
+----------
+
+### GET /storage.json
+
+Get the list of storage plugin names and configurations.
+
+**Example**
+
+`curl http://localhost:8047/storage.json`
+
+**Response Body**
+
+        [ {
+          "name" : "cp",
+          "config" : {
+            "type" : "file",
+            "enabled" : true,
+            "connection" : "classpath:///",
+            "workspaces" : null,
+            "formats" : {
+              "csv" : {
+                "type" : "text",
+                "extensions" : [ "csv" ],
+                "delimiter" : ","
+              },
+        . . .
+        {
+          "name" : "mongo",
+          "config" : {
+            "type" : "mongo",
+            "connection" : "mongodb://localhost:27017/",
+            "enabled" : false
+          }
+        } ]
+
+----------
+
+### GET /storage/{name}.json
+
+Get the definition of the named storage plugin.
+
+**Parameter**
+
+name--The assigned name in the storage plugin definition.
+
+**Example**
+
+`curl http://localhost:8047/storage/mongo.json`
+
+**Response Body**
+
+        {
+          "name" : "mongo",
+          "config" : {
+            "type" : "mongo",
+            "connection" : "mongodb://localhost:27017/",
+            "enabled" : false
+          }
+        }
+
+----------
+
+### Get /storage/{name}/enable/{val}
+
+Enable or disable the named storage plugin.
+
+**Parameters**
+
+* name--The assigned name in the storage plugin definition.
+* val--Either true (to enable) or false (to disable).
+
+**Example**
+
+`curl http://localhost:8047/storage/mongo/enable/true`
+
+**Response Body**
+
+{
+  "result" : "success"
+}
+
+----------
+
+### POST /storage/{name}.json
+
+Create or update a storage plugin configuration.
+
+**Parameters**
+
+name--The name of the storage plugin configuration to create or update.
+
+**Request Body**
+
+     {
+        "name" : "<name of storage plugin configuration>",
+        "config" : {
+          "type" : "<type of storage plugin>",
+          "enabled" : <true or false>,
+            "connection" : "<type of distributed file system and address/path>",
+            "workspaces" : <null or unique workspace name>,
+            "formats" : <file format definitions> 
+        }
+     }
+
+Valid storage plugin types include file, hbase, hive, mongo, and jdbc. Construct the request body using storage plugin [attributes and definitions]({{site.baseurl}}/docs/plugin-configuration-basics/#list-of-attributes-and-definitions). The request body overwrites the existing configuration if there is any, and therefore, must include all required attributes and definitions.
+
+**Example**
+
+     curl -X POST -H "Content-Type: application/json" -d '{"name":"myplugin", "config": {"type": "file", "enabled": false, "connection": "file:///", "workspaces": { "root": { "location": "/", "writable": false, "defaultInputFormat": null}}, "formats": null}}' http://localhost:8047/storage/myplugin.json
+
+**Response Body**
+
+{
+  "result" : "success"
+}
+
+----------
+
+### DELETE /storage/{name}.json
+
+Delete a storage plugin configuration.
+
+**Parameter**
+
+name--The name of the storage plugin configuration to delete.
+
+**Example**
+
+`curl -X DELETE -H "Content-Type: application/json" http://localhost:8047/storage/myplugin.json`
+
+**Response Body**
+
+        {
+          "result" : "success"
+        }
+
+## Metrics
+
+Gets metric information.
+
+----------
+
+### GET /stats.json
+
+Get Drillbit information, such as ports numbers.
+
+**Example**
+
+`curl http://localhost:8047/stats.json`
+
+**Response Body**
+
+        [ {
+          "name" : "Number of Drill Bits",
+          "value" : 1
+        }, {
+          "name" : "Bit #0",
+          "value" : "10.250.50.31 initialized"
+        }, {
+          "name" : "Data Port Address",
+          "value" : "10.250.50.31:31012"
+        }, {
+          "name" : "User Port Address",
+          "value" : "10.250.50.31:31010"
+        }, {
+          "name" : "Control Port Address",
+          "value" : "10.250.50.31:31011"
+        }, {
+          "name" : "Maximum Direct Memory",
+          "value" : 8589934592
+        } ]
+
+----------
+
+### GET /status
+
+Get the status of Drill. 
+
+**Example**
+
+`curl http://localhost:8047/status`
+
+**Response Body**
+
+          <!DOCTYPE html>
+          . . .
+
+            <div class="alert alert-success">
+              <strong>Running!</strong>
+          . . .
+
+          </html>
+
+----------
+
+### GET /status/metrics
+
+Get the current memory metrics.
+
+**Example**
+
+`curl http://localhost:8047/status/metrics`
+
+**Response Body**
+
+        {"version":"3.0.0","gauges":{"PS-MarkSweep.count":{"value":0},"PS-MarkSweep.time":{"value":0},"PS-Scavenge.count":{"value":1},"PS-Scavenge.time":{"value":74},"blocked.
+         . . .
+        ,"drill.allocator.normal.hist":{"count":84,"max":1024,"mean":273.6666666666667,"min":12,"p50":256.0,"p75":448.0,"p95":896.0,"p98":1024.0,"p99":1024.0,"p999":1024.0,"stddev":248.17013855555368}},"meters":{},"timers":{}}
+
+## Threads
+
+Get information about threads.
+
+----------
+
+### GET /status/threads
+
+Get the status of threads.
+
+**Example**
+
+`curl http://localhost:8047/status/threads`
+
+**Response Body**
+
+        main id=1 state=RUNNABLE (running in native)
+            at java.io.FileInputStream.read0(Native Method)
+            at java.io.FileInputStream.read(FileInputStream.java:210)
+        . . .
+
+        threadDeathWatcher-2-1 id=49 state=TIMED_WAITING
+            at java.lang.Thread.sleep(Native Method)
+            at io.netty.util.ThreadDeathWatcher$Watcher.run(ThreadDeathWatcher.java:137)
+            at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
+            at java.lang.Thread.run(Thread.java:745)
+
+        Scheduler-1174655113 id=50 state=TIMED_WAITING
+            - waiting on <0x738fda67> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
+            - locked <0x738fda67> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
+        . . .
+
+## Options
+These methods get and set system options.
+
+----------
+
+### GET /options.json
+
+List the name, default, and data type of the system and session options.
+
+**Example**
+
+`curl http://localhost:8047/options.json`
+
+**Response Body**
+
+        [ {
+          "name" : "planner.broadcast_factor",
+          "value" : 1.0,
+          "type" : "SYSTEM",
+          "kind" : "DOUBLE"
+        }, 
+
+        . . .
+
+        {
+          "name" : "store.parquet.compression",
+          "value" : "snappy",
+          "type" : "SYSTEM",
+          "kind" : "STRING"
+        },
+
+        . . .
+
+        {
+          "name" : "exec.enable_union_type",
+          "value" : false,
+          "type" : "SYSTEM",
+          "kind" : "BOOLEAN"
+        } ]
+
+<!-- ----------
+
+### POST /option/{optionName}
+
+Change the value or type of the named option. 
+
+**Parameter**
+
+optionName--The name of a [Drill system option]({{site.baseurl}}/docs/configuration-options-introduction/#system-options).
+
+**Request Body**
+
+Enclose option values of kind STRING in double quotation marks.
+
+        {
+          "name" : "<option name>",
+          "value" : ["]<new value>["],
+          "type" : "<SYSTEM or SESSION>",
+          "kind" : "<option data type>"
+        }
+
+**Example**
+
+        curl -X POST -H "Content-Type: application/json" -d '{"name" : "store.json.all_text_mode", "value" : true, "type" : "SYSTEM", "kind" : "BOOLEAN"}' http://localhost:8047/option/store.json.all_text_mode
+
+
+**Response Body**
+
+        {
+          "result" : "success"
+        }
+
+ -->
+
+