You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@drill.apache.org by br...@apache.org on 2018/01/30 05:21:46 UTC

drill-site git commit: update docs for NaN infinity type support and bounds checking behavior change

Repository: drill-site
Updated Branches:
  refs/heads/asf-site 79d884d8e -> 1506b07b5


update docs for NaN infinity type support and bounds checking behavior change


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

Branch: refs/heads/asf-site
Commit: 1506b07b53ffb1fd5425adcf28bf269bca338141
Parents: 79d884d
Author: Bridget Bevens <bb...@maprtech.com>
Authored: Mon Jan 29 21:21:14 2018 -0800
Committer: Bridget Bevens <bb...@maprtech.com>
Committed: Mon Jan 29 21:21:14 2018 -0800

----------------------------------------------------------------------
 docs/configuring-drill-memory/index.html | 12 +++++++++---
 docs/json-data-model/index.html          | 12 +++++++++---
 feed.xml                                 |  4 ++--
 3 files changed, 20 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill-site/blob/1506b07b/docs/configuring-drill-memory/index.html
----------------------------------------------------------------------
diff --git a/docs/configuring-drill-memory/index.html b/docs/configuring-drill-memory/index.html
index 537879c..e2f2c41 100644
--- a/docs/configuring-drill-memory/index.html
+++ b/docs/configuring-drill-memory/index.html
@@ -1143,7 +1143,7 @@
 
     </div>
 
-     Aug 18, 2017
+     Jan 30, 2018
 
     <link href="/css/docpage.css" rel="stylesheet" type="text/css">
 
@@ -1177,7 +1177,7 @@ suffice because Drill avoids having data sit in heap memory.</p>
 
 <p>After you edit <code>&lt;drill_installation_directory&gt;/conf/drill-env.sh</code>, <a href="/docs/starting-drill-in-distributed-mode">restart the drillbit</a> on the node.</p>
 
-<h2 id="about-the-drillbit-startup-script">About the Drillbit Startup Script</h2>
+<h3 id="about-the-drillbit-startup-script">About the Drillbit Startup Script</h3>
 
 <p>The <code>drill-env.sh</code> file contains the following options:</p>
 <div class="highlight"><pre><code class="language-text" data-lang="text">#export DRILL_HEAP=${DRILL_HEAP:-&quot;4G”}  
@@ -1191,7 +1191,13 @@ export DRILL_MAX_DIRECT_MEMORY=${DRILL_MAX_DIRECT_MEMORY:-“&lt;limit&gt;&quot;
 DRILL_MAX_DIRECT_MEMORY is the Java direct memory limit per node.  </p>
 
 <p>If performance is an issue, add -Dbounds=false, as shown in the following example:</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">export DRILL_JAVA_OPTS=&quot;$DRILL_JAVA_OPTS -Dbounds=false&quot;
+<div class="highlight"><pre><code class="language-text" data-lang="text">export DRILL_JAVA_OPTS=&quot;$DRILL_JAVA_OPTS -Dbounds=false&quot;  
+</code></pre></div>
+<p>As of Drill 1.13, bounds checking for direct memory is disabled by default. To enable bounds checking for direct memory, use the DRILLBIT_JAVA_OPTS variable to pass the <code>drill.exec.memory.enable_unsafe_bounds_check</code> parameter in $DRILL_HOME/conf/drill-env.sh, as shown:  </p>
+<div class="highlight"><pre><code class="language-text" data-lang="text">export DRILL_JAVA_OPTS=&quot;$DRILL_JAVA_OPTS -Ddrill.exec.memory.enable_unsafe_bounds_check=true  
+</code></pre></div>
+<p>For earlier versions of Drill (prior to 1.13), bounds checking is enabled by default. To disable bounds checking, set the <code>drill.enable_unsafe_memory_access property</code> to true, as shown:  </p>
+<div class="highlight"><pre><code class="language-text" data-lang="text">export DRILL_JAVA_OPTS=&quot;$DRILL_JAVA_OPTS -Ddrill.enable_unsafe_memory_access =true
 </code></pre></div>
     
       

http://git-wip-us.apache.org/repos/asf/drill-site/blob/1506b07b/docs/json-data-model/index.html
----------------------------------------------------------------------
diff --git a/docs/json-data-model/index.html b/docs/json-data-model/index.html
index 88ed3c0..2eaec9b 100644
--- a/docs/json-data-model/index.html
+++ b/docs/json-data-model/index.html
@@ -1143,7 +1143,7 @@
 
     </div>
 
-     Jan 7, 2016
+     Jan 30, 2018
 
     <link href="/css/docpage.css" rel="stylesheet" type="text/css">
 
@@ -1172,14 +1172,20 @@
 <ul>
 <li>Array: ordered values, separated by commas, enclosed in square brackets</li>
 <li>Boolean: true or false</li>
-<li>Number: double-precision floating point number, including exponential numbers. No octal, hexadecimal, NaN, or Infinity</li>
 <li>null: empty value</li>
 <li>Object: unordered key/value collection enclosed in curly braces</li>
 <li>String: Unicode enclosed in double quotation marks</li>
 <li>Value: a string, number, true, false, null</li>
-<li>Whitespace: used between tokens</li>
+<li>Whitespace: used between tokens </li>
+<li>Number: double-precision floating point number, including exponential numbers, NaN, and Infinity. Octal and hexadecimal are not supported.<br></li>
 </ul>
 
+<p>Drill 1.13 and later supports NaN (Not-a-Number) and Infinity as numeric values. This support introduces the following options, which are set to “true” by default:  </p>
+<div class="highlight"><pre><code class="language-text" data-lang="text">   store.json.writer.allow_nan_inf
+   store.json.reader.allow_nan_inf  
+</code></pre></div>
+<p>Drill writes NaN and Infinity values as literals to a JSON file when <code>store.json.writer.allow_nan_inf</code> is set to true. When set to false, Drill writes NaN and Infinity values as string values to a JSON file. If a query selects NaN or Infinity values in a JSON file, and <code>store.json.reader.allow_nan_inf</code> is set to false, Drill returns an error message.</p>
+
 <p>The following table shows SQL-JSON data type mapping:</p>
 
 <table><thead>

http://git-wip-us.apache.org/repos/asf/drill-site/blob/1506b07b/feed.xml
----------------------------------------------------------------------
diff --git a/feed.xml b/feed.xml
index d5dded9..0b50481 100644
--- a/feed.xml
+++ b/feed.xml
@@ -6,8 +6,8 @@
 </description>
     <link>/</link>
     <atom:link href="/feed.xml" rel="self" type="application/rss+xml"/>
-    <pubDate>Mon, 22 Jan 2018 12:32:27 -0800</pubDate>
-    <lastBuildDate>Mon, 22 Jan 2018 12:32:27 -0800</lastBuildDate>
+    <pubDate>Mon, 29 Jan 2018 21:13:25 -0800</pubDate>
+    <lastBuildDate>Mon, 29 Jan 2018 21:13:25 -0800</lastBuildDate>
     <generator>Jekyll v2.5.2</generator>
     
       <item>