You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@carbondata.apache.org by jb...@apache.org on 2016/12/13 15:41:44 UTC

[19/47] incubator-carbondata-site git commit: Add content for publication

http://git-wip-us.apache.org/repos/asf/incubator-carbondata-site/blob/a1ad369d/content/documents/datamanagemenr.html
----------------------------------------------------------------------
diff --git a/content/documents/datamanagemenr.html b/content/documents/datamanagemenr.html
new file mode 100644
index 0000000..08d1ecd
--- /dev/null
+++ b/content/documents/datamanagemenr.html
@@ -0,0 +1,217 @@
+
+<!DOCTYPE html><html><head><meta charset="utf-8"><title>Untitled Document.md</title><style></style></head><body id="preview">
+<p>&lt;!\u2013<br>
+Licensed to the Apache Software Foundation (ASF) under one<br>
+or more contributor license agreements.  See the NOTICE file<br>
+distributed with this work for additional information<br>
+regarding copyright ownership.  The ASF licenses this file<br>
+to you under the Apache License, Version 2.0 (the<br>
+\u201cLicense\u201d); you may not use this file except in compliance<br>
+with the License.  You may obtain a copy of the License at</p>
+<pre><code>  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+&quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+</code></pre>
+<p>\u2013&gt;</p>
+<h1><a id="Data_Management_19"></a>Data Management</h1>
+<p>This tutorial is going to introduce you to the conceptual details of data management like :</p>
+<ul>
+<li><a href="#loading-data">Loading Data</a></li>
+<li><a href="#deleting-data">Deleting Data</a></li>
+<li><a href="#compacting-data">Compacting data</a></li>
+</ul>
+<h2><a id="Loading_Data_26"></a>Loading Data</h2>
+<ul>
+<li>
+<p><strong>Scenario</strong></p>
+<p>Once the table is created, data can be loaded into table using <a href="">LOAD DATA</a> command and will be available for query.<br>
+When data load is triggered, the data is encoded in Carbon format and copied into HDFS Carbon store path(specified in carbon.properties file)<br>
+in compressed, multi dimensional columnar format for quick analysis queries. The same command can be used to load new data or to<br>
+update the existing data. Only one data load can be triggered for one table. The high cardinality columns of the dictionary encoding are<br>
+automatically recognized and these columns will not be used for dictionary encoding.</p>
+</li>
+<li>
+<p><strong>Procedure</strong></p>
+<p>Data loading is a process that involves execution of multiple steps to read, sort, and encode the date in Carbon store format.<br>
+Each step is executed on different threads. After data loading process is complete, the status (success/partial success) is updated to<br>
+Carbon store metadata. The table below lists the possible load status</p>
+</li>
+</ul>
+<table class="table table-striped table-bordered">
+<thead>
+<tr>
+<th>Status</th>
+<th>Description</th>
+</tr>
+</thead>
+<tbody>
+<tr>
+<td>Success</td>
+<td>All the data is loaded into table and no bad records found.</td>
+</tr>
+<tr>
+<td>Partial Success</td>
+<td>Data is loaded into table and bad records are found. Bad records are stored at carbon.badrecords.location.</td>
+</tr>
+</tbody>
+</table>
+<p>In case of failure, the error will be logged in error log. Details of loads can be seen with <a href="">SHOW SEGMENTS</a> command. The show segment command output consists of :</p>
+<ul>
+<li>SegmentSequenceID</li>
+<li>START_TIME OF LOAD</li>
+<li>END_TIME OF LOAD</li>
+<li>LOAD STATUS</li>
+</ul>
+<p>The latest load will be displayed first in the output.</p>
+<p>For load commands refer to <a href="">DML operations on Carbon Data</a></p>
+<p>##Deleting Data</p>
+<ul>
+<li>
+<p><strong>Scenario</strong></p>
+<p>If you have loaded wrong data into the table, or too many bad records and want to modify and reload the data, you can delete required data loads.<br>
+The load can be deleted using the Segment Sequence Id or if the table contains date field then the data can be deleted using the date field.</p>
+</li>
+<li>
+<p><strong>Procedure</strong></p>
+<p>The loaded data can be deleted in the following two ways :</p>
+<ol>
+<li>
+<p>Delete by Segment ID</p>
+<p>After you get the segment ID of the segment that you want to delete, execute the <a href="">DELETE</a> Command for the selected segment.<br>
+The Status of deleted segment is updated to Marked for delete / Marked for Update</p>
+<table class="table table-striped table-bordered">
+<thead>
+<tr>
+<th>SegmentSequenceId</th>
+<th>Status</th>
+<th>Load Start Time</th>
+<th>Load End Time</th>
+</tr>
+</thead>
+<tbody>
+<tr>
+<td>0</td>
+<td>Success</td>
+<td>2015-11-19 19:14:\u2026</td>
+<td>2015-11-19 19:14:\u2026</td>
+</tr>
+<tr>
+<td>1</td>
+<td>Marked for Update</td>
+<td>2015-11-19 19:54:\u2026</td>
+<td>2015-11-19 20:08:\u2026</td>
+</tr>
+<tr>
+<td>2</td>
+<td>Marked for Delete</td>
+<td>2015-11-19 20:25:\u2026</td>
+<td>2015-11-19 20:49:\u2026</td>
+</tr>
+</tbody>
+</table>
+</li>
+<li>
+<p>Delete by Date Field</p>
+<p>If the table contains date field, you can delete the data based on a specific date.</p>
+<p>For delete commands refer to <a href="">DML operations on Carbon Data</a></p>
+</li>
+</ol>
+<p>Note :</p>
+<ul>
+<li>
+<p>When the delete segment DML is called, segment will not be deleted physically from the file system. Instead the segment status will be marked as \u201cMarked for Delete\u201d. For the query execution, this deleted segment will be excluded.</p>
+</li>
+<li>
+<p>The deleted segment will be deleted physically during the next load operation and only after the maximum query execution time configured using \u201cmax.query.execution.time\u201d. By default it is 60 minutes.</p>
+</li>
+<li>
+<p>If the user wants to force delete the segment physically then he can use <a href="">CLEAN FILES</a> Command. This DML will physically delete the segment which are \u201cMarked for delete\u201d immediately.</p>
+</li>
+</ul>
+</li>
+</ul>
+<p>##Compacting Data</p>
+<ul>
+<li>
+<p><strong>Scenario</strong></p>
+<p>Frequent data ingestion results in several fragmented carbon files in the store directory. Since data is sorted only within each load, the indices perform only within each<br>
+load. This mean that there will be one index for each load and as number of data load increases, the number of indices also increases. As each index works only on one load,<br>
+the performance of indices is reduced. Carbon provides provision for compacting the loads. Compaction process combines several segments into one large segment by merge sorting the data from across the segments.</p>
+</li>
+<li>
+<p><strong>Procedure</strong></p>
+<p>There are two types of compaction Minor and Major compaction.</p>
+<ul>
+<li>
+<p><strong>Minor Compaction</strong></p>
+<p>In minor compaction the user can specify how many loads to be merged. Minor compaction triggers for every data load if the parameter carbon.enable.auto.load.merge is set. If any segments are available to be merged, then compaction will<br>
+run parallel with data load. There are 2 levels in minor compaction.</p>
+<ul>
+<li>Level 1: Merging of the segments which are not yet compacted.</li>
+<li>Level 2: Merging of the compacted segments again to form a bigger segment.</li>
+</ul>
+</li>
+<li>
+<p><strong>Major Compaction</strong></p>
+<p>In Major compaction, many segments can be merged into one big segment. User will specify the compaction size until which segments can be merged. Major compaction is usually done during the off-peak time.</p>
+</li>
+</ul>
+<p>There are number of parameters related to Compaction that can be set in carbon.properties file</p>
+</li>
+</ul>
+<table class="table table-striped table-bordered">
+<thead>
+<tr>
+<th>Parameter</th>
+<th>Default</th>
+<th>Application</th>
+<th>Description</th>
+<th>Valid Values</th>
+</tr>
+</thead>
+<tbody>
+<tr>
+<td>carbon.compaction.level.threshold</td>
+<td>4,3</td>
+<td>Minor</td>
+<td>Thisproperty is for minor compaction which decides how many segments to be merged.Example: if it is set as 2,3 then minor compaction will be triggered for every 2 segments. 3 is the number of level 1 compacted segment which is further compacted to new segment.</td>
+<td>NA</td>
+</tr>
+<tr>
+<td>carbon.major.compaction.size</td>
+<td>1024 MB</td>
+<td>Major</td>
+<td>Major compaction size can be configured using this parameter. Sum of the segments which is below this threshold will be merged.</td>
+<td>NA</td>
+</tr>
+<tr>
+<td>carbon.numberof.preserve.segments</td>
+<td>0</td>
+<td>Minor/Major</td>
+<td>If the user wants to preserve some number of segments from being compacted then he can set this property.Example: carbon.numberof.preserve.segments=2 then 2 latest segments will always be excluded from the <a href="http://compaction.No">compaction.No</a> segments will be preserved by default.</td>
+<td>0-100.</td>
+</tr>
+<tr>
+<td>carbon.allowed.compaction.days</td>
+<td>0</td>
+<td>Minor/Major</td>
+<td>Compaction will merge the segments which are loaded with in the specific number of days configured.Example: if the configuration is 2, then the segments which are loaded in the time frame of 2 days only will get merged. Segments which are loaded 2 days apart will not be merged.This is disabled by default.</td>
+<td>0-100.</td>
+</tr>
+<tr>
+<td>carbon.number.of.cores.while.compacting</td>
+<td>2</td>
+<td>Minor/Major</td>
+<td>Number of cores which is used to write data during compaction.</td>
+<td>0-100.</td>
+</tr>
+</tbody>
+</table>
+<p>For compaction commands refer to <a href="">DDL operations on Carbon Data</a></p>
+
+</body></html>

http://git-wip-us.apache.org/repos/asf/incubator-carbondata-site/blob/a1ad369d/content/documents/ddl.html
----------------------------------------------------------------------
diff --git a/content/documents/ddl.html b/content/documents/ddl.html
new file mode 100644
index 0000000..90af0eb
--- /dev/null
+++ b/content/documents/ddl.html
@@ -0,0 +1,227 @@
+
+<!DOCTYPE html><html><head><meta charset="utf-8"><title>Untitled Document.md</title><style></style></head><body id="preview">
+<p>&lt;!\u2013<br>
+Licensed to the Apache Software Foundation (ASF) under one<br>
+or more contributor license agreements.  See the NOTICE file<br>
+distributed with this work for additional information<br>
+regarding copyright ownership.  The ASF licenses this file<br>
+to you under the Apache License, Version 2.0 (the<br>
+\u201cLicense\u201d); you may not use this file except in compliance<br>
+with the License.  You may obtain a copy of the License at</p>
+<pre><code>  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+&quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+</code></pre>
+<p>\u2013&gt;</p>
+<h1><a id="DDL_Operations_on_CarbonData_19"></a>DDL Operations on CarbonData</h1>
+<p>This tutorial will guide you through the data definition language support provided by CarbonData.</p>
+<h2><a id="Overview_22"></a>Overview</h2>
+<p>The following DDL operations are supported in CarbonData :</p>
+<ul>
+<li><a href="#create-table">CREATE TABLE</a></li>
+<li><a href="#show-table">SHOW TABLE</a></li>
+<li><a href="#drop-table">DROP TABLE</a></li>
+<li><a href="#compaction">COMPACTION</a></li>
+</ul>
+<h2><a id="CREATE_TABLE_30"></a>CREATE TABLE</h2>
+<p>This command can be used to create carbon table by specifying the list of fields along with the table properties.</p>
+<pre><code>CREATE TABLE [IF NOT EXISTS] [db_name.]table_name 
+                 [(col_name data_type , ...)]               
+           STORED BY 'carbondata'
+                 [TBLPROPERTIES (property_name=property_value, ...)]
+                 // All Carbon's additional table options will go into properties
+</code></pre>
+<h3><a id="Parameter_Description_40"></a>Parameter Description</h3>
+<table class="table table-striped table-bordered">
+<thead>
+<tr>
+<th>Parameter</th>
+<th>Description</th>
+<th>Optional</th>
+</tr>
+</thead>
+<tbody>
+<tr>
+<td>db_name</td>
+<td>Name of the Database. Database name should consist of Alphanumeric characters and underscore(_) special character.</td>
+<td>Yes</td>
+</tr>
+<tr>
+<td>field_list</td>
+<td>Comma separated List of fields with data type. The field names should consist of Alphanumeric characters and underscore(_) special character.</td>
+<td>No</td>
+</tr>
+<tr>
+<td>table_name</td>
+<td>The name of the table in Database. Table Name should consist of Alphanumeric characters and underscore(_) special character.</td>
+<td>No</td>
+</tr>
+<tr>
+<td>STORED BY</td>
+<td>\u201corg.apache.carbondata.format\u201d, identifies and creates carbon table.</td>
+<td>No</td>
+</tr>
+<tr>
+<td>TBLPROPERTIES</td>
+<td>List of carbon table properties.</td>
+<td></td>
+</tr>
+</tbody>
+</table>
+<h3><a id="Usage_Guideline_50"></a>Usage Guideline</h3>
+<p>Following are the table properties usage.</p>
+<ul>
+<li>
+<p><strong>Dictionary Encoding Configuration</strong></p>
+<p>By Default dictionary encoding will be enabled for all String columns, and disabled for non-String columns. User can include and exclude columns for dictionary encoding.</p>
+<pre><code class="language-ruby"><span class="hljs-constant">TBLPROPERTIES</span> (<span class="hljs-string">"DICTIONARY_EXCLUDE"</span>=<span class="hljs-string">"column1, column2"</span>) 
+<span class="hljs-constant">TBLPROPERTIES</span> (<span class="hljs-string">"DICTIONARY_INCLUDE"</span>=<span class="hljs-string">"column1, column2"</span>) 
+</code></pre>
+<p>Here, DICTIONARY_EXCLUDE will exclude dictionary creation. This is applicable for high-cardinality columns and is an optional parameter. DICTIONARY_INCLUDE will generate dictionary for the columns specified in the list.</p>
+</li>
+<li>
+<p><strong>Row/Column Format Configuration</strong></p>
+<p>Column groups with more than one column are stored in row format, instead of columnar format. By default, each column is a separate column group.</p>
+<pre><code class="language-ruby"><span class="hljs-constant">TBLPROPERTIES</span> (<span class="hljs-string">"COLUMN_GROUPS"</span>=<span class="hljs-string">"(column1,column3),(Column4,Column5,Column6)"</span>) 
+</code></pre>
+</li>
+<li>
+<p><strong>Table Block Size Configuration</strong></p>
+<p>The block size of table files can be defined using the property TABLE_BLOCKSIZE. It accepts only integer values. The default value is set to 1024MB and supports a range of 1MB to 2048MB.<br>
+If the user does\u2019nt specify this value in the DDL command , default value is used.</p>
+<pre><code>TBLPROPERTIES (&quot;TABLE_BLOCKSIZE&quot;=&quot;512 MB&quot;)
+</code></pre>
+<p>Here 512 MB means the block size of this table is 512 MB, user also can set it as 512M or 512.</p>
+</li>
+<li>
+<p><strong>Inverted Index Configuration</strong></p>
+<p>Inverted index is very useful to improve compression ratio and query speed, especially for those low-cardinality columns who are in reward position.<br>
+By default inverted index is enabled. The user can disable the inverted index creation for some columns.</p>
+<pre><code>TBLPROPERTIES (&quot;NO_INVERTED_INDEX&quot;=&quot;column1,column3&quot;)
+</code></pre>
+<p>No inverted index shall be generated for the columns specified in NO_INVERTED_INDEX. This property is applicable on columns with high-cardinality and is an optional parameter.</p>
+<p><em>Note :</em></p>
+<ul>
+<li>
+<p>By default all columns other than numeric datatype are treated as dimensions and all columns of numeric datatype are treated as measures.</p>
+</li>
+<li>
+<p>All dimensions except complex datatype columns are part of multi dimensional key(MDK). This behavior can be overridden by using TBLPROPERTIES, If the user wants to keep any column (except columns of complex datatype) in multi dimensional key then he can keep the columns either in DICTIONARY_EXCLUDE or DICTIONARY_INCLUDE.</p>
+</li>
+</ul>
+</li>
+</ul>
+<h3><a id="Example_96"></a>Example:</h3>
+<pre><code>CREATE TABLE IF NOT EXISTS productSchema.productSalesTable (
+                             productNumber Int,
+                             productName String, 
+                             storeCity String, 
+                             storeProvince String, 
+                             productCategory String, 
+                             productBatch String,
+                             saleQuantity Int,
+                             revenue Int)       
+                  STORED BY 'carbondata' 
+                  TBLPROPERTIES ('COLUMN_GROUPS'='(productName,productCategory)',
+                                'DICTIONARY_EXCLUDE'='productName',
+                                'DICTIONARY_INCLUDE'='productNumber',
+                                'NO_INVERTED_INDEX'='productBatch')
+</code></pre>
+<h2><a id="SHOW_TABLE_114"></a>SHOW TABLE</h2>
+<p>This command can be used to list all the tables in current database or all the tables of a specific database.</p>
+<pre><code>SHOW TABLES [IN db_Name];
+</code></pre>
+<h3><a id="Parameter_Description_121"></a>Parameter Description</h3>
+<table class="table table-striped table-bordered">
+<thead>
+<tr>
+<th>Parameter</th>
+<th>Description</th>
+<th>Optional</th>
+</tr>
+</thead>
+<tbody>
+<tr>
+<td>IN db_Name</td>
+<td>Name of the database. Required only if tables of this specific database are to be listed.</td>
+<td>Yes</td>
+</tr>
+</tbody>
+</table>
+<h3><a id="Example_126"></a>Example:</h3>
+<pre><code>SHOW TABLES IN ProductSchema;
+</code></pre>
+<h2><a id="DROP_TABLE_132"></a>DROP TABLE</h2>
+<p>This command can be used to delete the existing table.</p>
+<pre><code>DROP TABLE [IF EXISTS] [db_name.]table_name;
+</code></pre>
+<h3><a id="Parameter_Description_140"></a>Parameter Description</h3>
+<table class="table table-striped table-bordered">
+<thead>
+<tr>
+<th>Parameter</th>
+<th>Description</th>
+<th>Optional</th>
+</tr>
+</thead>
+<tbody>
+<tr>
+<td>db_Name</td>
+<td>Name of the database. If not specified, current database will be selected.</td>
+<td>YES</td>
+</tr>
+<tr>
+<td>table_name</td>
+<td>Name of the table to be deleted.</td>
+<td>NO</td>
+</tr>
+</tbody>
+</table>
+<h3><a id="Example_146"></a>Example:</h3>
+<pre><code>DROP TABLE IF EXISTS productSchema.productSalesTable;
+</code></pre>
+<h2><a id="COMPACTION_152"></a>COMPACTION</h2>
+<p>This command will merge the specified number of segments into one segment. This will enhance the query performance of the table.</p>
+<pre><code>ALTER TABLE [db_name.]table_name COMPACT 'MINOR/MAJOR';
+</code></pre>
+<p>To get details about Compaction refer to <a href="">Data Management</a></p>
+<h3><a id="Parameter_Description_162"></a>Parameter Description</h3>
+<table class="table table-striped table-bordered">
+<thead>
+<tr>
+<th>Parameter</th>
+<th>Description</th>
+<th>Optional</th>
+</tr>
+</thead>
+<tbody>
+<tr>
+<td>db_name</td>
+<td>Database name, if it is not specified then it uses current database.</td>
+<td>YES</td>
+</tr>
+<tr>
+<td>table_name</td>
+<td>The name of the table in provided database.</td>
+<td>NO</td>
+</tr>
+</tbody>
+</table>
+<h3><a id="Syntax_169"></a>Syntax</h3>
+<ul>
+<li><strong>Minor Compaction</strong></li>
+</ul>
+<pre><code>ALTER TABLE carbontable COMPACT MINOR;
+</code></pre>
+<ul>
+<li><strong>Major Compaction</strong></li>
+</ul>
+<pre><code>ALTER TABLE carbontable COMPACT MAJOR;
+</code></pre>
+
+</body></html>

http://git-wip-us.apache.org/repos/asf/incubator-carbondata-site/blob/a1ad369d/content/documents/dml.html
----------------------------------------------------------------------
diff --git a/content/documents/dml.html b/content/documents/dml.html
new file mode 100644
index 0000000..b89b982
--- /dev/null
+++ b/content/documents/dml.html
@@ -0,0 +1,258 @@
+
+<!DOCTYPE html><html><head><meta charset="utf-8"><title>Untitled Document.md</title><style></style></head><body id="preview">
+<p>&lt;!\u2013<br>
+Licensed to the Apache Software Foundation (ASF) under one<br>
+or more contributor license agreements.  See the NOTICE file<br>
+distributed with this work for additional information<br>
+regarding copyright ownership.  The ASF licenses this file<br>
+to you under the Apache License, Version 2.0 (the<br>
+\u201cLicense\u201d); you may not use this file except in compliance<br>
+with the License.  You may obtain a copy of the License at</p>
+<pre><code>  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+&quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+</code></pre>
+<p>\u2013&gt;</p>
+<h1><a id="DML_Operations_on_CarbonData_19"></a>DML Operations on CarbonData</h1>
+<p>This tutorial will guide you through the data manipulation language support provided by CarbonData.</p>
+<h2><a id="Overview_22"></a>Overview</h2>
+<p>The following DML operations are supported in CarbonData :</p>
+<ul>
+<li><a href="#load-data">LOAD DATA</a></li>
+<li><a href="#show-segements">SHOW SEGMENTS</a></li>
+<li><a href="#delete-segment-by-id">DELETE SEGMENT BY ID</a></li>
+<li><a href="#delete-segment-by-date">DELETE SEGMENT BY DATE</a></li>
+</ul>
+<h2><a id="LOAD_DATA_30"></a>LOAD DATA</h2>
+<p>This command loads the user data in raw format to the Carbon specific data format store, this allows Carbon to provides good performance while querying the data.<br>
+Please visit <a href="">Data Management</a> for more details on LOAD.</p>
+<h3><a id="Syntax_35"></a>Syntax</h3>
+<pre><code>LOAD DATA [LOCAL] INPATH 'folder_path' INTO TABLE [db_name.]table_name OPTIONS(property_name=property_value, ...)
+</code></pre>
+<p>OPTIONS are not mandatory for data loading process. Inside OPTIONS user can provide either of any options like DELIMITER,QUOTECHAR, ESCAPECHAR,MULTILINE as per requirement.</p>
+<p>Note: The path shall be canonical path.</p>
+<h3><a id="Parameter_Description_45"></a>Parameter Description</h3>
+<table class="table table-striped table-bordered">
+<thead>
+<tr>
+<th>Parameter</th>
+<th>Description</th>
+<th>Optional</th>
+</tr>
+</thead>
+<tbody>
+<tr>
+<td>folder_path</td>
+<td>Path of raw csv data folder or file.</td>
+<td>NO</td>
+</tr>
+<tr>
+<td>db_name</td>
+<td>Database name, if it is not specified then it uses current database.</td>
+<td>YES</td>
+</tr>
+<tr>
+<td>table_name</td>
+<td>The name of the table in provided database.</td>
+<td>NO</td>
+</tr>
+<tr>
+<td>OPTIONS</td>
+<td>Extra options provided to Load</td>
+<td>YES</td>
+</tr>
+</tbody>
+</table>
+<h3><a id="Usage_Guideline_55"></a>Usage Guideline</h3>
+<p>Following are the options that can be used for loading data:</p>
+<ul>
+<li>
+<p><strong>DELIMITER:</strong> Delimiters can be provided in the load command.</p>
+<pre><code>OPTIONS('DELIMITER'=',')
+</code></pre>
+</li>
+<li>
+<p><strong>QUOTECHAR:</strong> Quote Characters can be provided in the load command.</p>
+<pre><code>OPTIONS('QUOTECHAR'='&quot;')
+</code></pre>
+</li>
+<li>
+<p><strong>COMMENTCHAR:</strong> Comment Characters can be provided in the load command if user want to comment lines.</p>
+<pre><code>OPTIONS('COMMENTCHAR'='#')
+</code></pre>
+</li>
+<li>
+<p><strong>FILEHEADER:</strong> Headers can be provided in the LOAD DATA command if headers are missing in the source files.</p>
+<pre><code>OPTIONS('FILEHEADER'='column1,column2') 
+</code></pre>
+</li>
+<li>
+<p><strong>MULTILINE:</strong> CSV with new line character in quotes.</p>
+<pre><code>OPTIONS('MULTILINE'='true') 
+</code></pre>
+</li>
+<li>
+<p><strong>ESCAPECHAR:</strong> Escape char can be provided if user want strict validation of escape character on CSV.</p>
+<pre><code>OPTIONS('ESCAPECHAR'='\') 
+</code></pre>
+</li>
+<li>
+<p><strong>COMPLEX_DELIMITER_LEVEL_1:</strong> Split the complex type data column in a row (eg., a$b$c --&gt; Array = {a,b,c}).</p>
+<pre><code>OPTIONS('COMPLEX_DELIMITER_LEVEL_1'='$') 
+</code></pre>
+</li>
+<li>
+<p><strong>COMPLEX_DELIMITER_LEVEL_2:</strong> Split the complex type nested data column in a row. Applies level_1 delimiter &amp; applies level_2 based on complex data type (eg., a:b$c:d --&gt; Array&gt; = {{a,b},{c,d}}).</p>
+<pre><code>OPTIONS('COMPLEX_DELIMITER_LEVEL_2'=':') 
+</code></pre>
+</li>
+<li>
+<p><strong>ALL_DICTIONARY_PATH:</strong> All dictionary files path.</p>
+<pre><code>OPTIONS('ALL_DICTIONARY_PATH'='/opt/alldictionary/data.dictionary')
+</code></pre>
+</li>
+<li>
+<p><strong>COLUMNDICT:</strong> Dictionary file path for specified column.</p>
+<pre><code>OPTIONS('COLUMNDICT'='column1:dictionaryFilePath1, column2:dictionaryFilePath2')
+</code></pre>
+<p>Note: ALL_DICTIONARY_PATH and COLUMNDICT can\u2019t be used together.</p>
+</li>
+<li>
+<p><strong>DATEFORMAT:</strong> Date format for specified column.</p>
+<pre><code>OPTIONS('DATEFORMAT'='column1:dateFormat1, column2:dateFormat2')
+</code></pre>
+<p>Note: Date formats are specified by date pattern strings. The date pattern letters in Carbon are<br>
+the same as in JAVA. Refer to <a href="http://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html">SimpleDateFormat</a>.</p>
+</li>
+</ul>
+<h3><a id="Example_119"></a>Example:</h3>
+<pre><code>LOAD DATA local inpath '/opt/rawdata/data.csv' INTO table carbontable
+                         options('DELIMITER'=',', 'QUOTECHAR'='&quot;', 'COMMENTCHAR'='#',
+                                 'FILEHEADER'='empno,empname,
+ designation,doj,workgroupcategory,
+ workgroupcategoryname,deptno,deptname,projectcode,
+ projectjoindate,projectenddate,attendance,utilization,salary',
+                                 'MULTILINE'='true', 'ESCAPECHAR'='\', 
+ 'COMPLEX_DELIMITER_LEVEL_1'='$', 
+                                 'COMPLEX_DELIMITER_LEVEL_2'=':',
+                                 'ALL_DICTIONARY_PATH'='/opt/alldictionary/data.dictionary'
+                                 )
+
+</code></pre>
+<h2><a id="SHOW_SEGMENTS_136"></a>SHOW SEGMENTS</h2>
+<p>This command is used to get the segments of carbon table.</p>
+<pre><code>SHOW SEGMENTS FOR TABLE [db_name.]table_name LIMIT number_of_segments;
+</code></pre>
+<h3><a id="Parameter_Description_144"></a>Parameter Description</h3>
+<table class="table table-striped table-bordered">
+<thead>
+<tr>
+<th>Parameter</th>
+<th>Description</th>
+<th>Optional</th>
+</tr>
+</thead>
+<tbody>
+<tr>
+<td>db_name</td>
+<td>Database name, if it is not specified then it uses current database.</td>
+<td>YES</td>
+</tr>
+<tr>
+<td>table_name</td>
+<td>The name of the table in provided database.</td>
+<td>NO</td>
+</tr>
+<tr>
+<td>number_of_segments</td>
+<td>limit the output to this number.</td>
+<td>YES</td>
+</tr>
+</tbody>
+</table>
+<h3><a id="Example_152"></a>Example:</h3>
+<pre><code>SHOW SEGMENTS FOR TABLE CarbonDatabase.CarbonTable LIMIT 4;
+</code></pre>
+<h2><a id="DELETE_SEGMENT_BY_ID_157"></a>DELETE SEGMENT BY ID</h2>
+<p>This command is used to delete segment by using the segment ID. Each segment has a unique segment ID associated with it.<br>
+Using this segment ID, you can remove the segment.</p>
+<p>The following command will get the segmentID.</p>
+<pre><code>SHOW SEGMENTS FOR Table dbname.tablename LIMIT number_of_segments
+</code></pre>
+<p>After you retrieve the segment ID of the segment that you want to delete, execute the following command to delete the selected segment.</p>
+<pre><code>DELETE SEGMENT segment_sequence_id1, segments_sequence_id2, .... FROM TABLE tableName
+</code></pre>
+<h3><a id="Parameter_Description_171"></a>Parameter Description</h3>
+<table class="table table-striped table-bordered">
+<thead>
+<tr>
+<th>Parameter</th>
+<th>Description</th>
+<th>Optional</th>
+</tr>
+</thead>
+<tbody>
+<tr>
+<td>segment_id</td>
+<td>Segment Id of the load.</td>
+<td>NO</td>
+</tr>
+<tr>
+<td>db_name</td>
+<td>Database name, if it is not specified then it uses current database.</td>
+<td>YES</td>
+</tr>
+<tr>
+<td>table_name</td>
+<td>The name of the table in provided database.</td>
+<td>NO</td>
+</tr>
+</tbody>
+</table>
+<h3><a id="Example_178"></a>Example:</h3>
+<pre><code>DELETE SEGMENT 0 FROM TABLE CarbonDatabase.CarbonTable;
+DELETE SEGMENT 0.1,5,8 FROM TABLE CarbonDatabase.CarbonTable;
+</code></pre>
+<p>Note: Here 0.1 is compacted segment sequence id.</p>
+<h2><a id="DELETE_SEGMENT_BY_DATE_185"></a>DELETE SEGMENT BY DATE</h2>
+<p>This command will allow to delete the Carbon segment(s) from the store based on the date provided by the user in the DML command.<br>
+The segment created before the particular date will be removed from the specific stores.</p>
+<pre><code>DELETE FROM TABLE [schema_name.]table_name WHERE[DATE_FIELD]BEFORE [DATE_VALUE]
+</code></pre>
+<h3><a id="Parameter_Description_194"></a>Parameter Description</h3>
+<table class="table table-striped table-bordered">
+<thead>
+<tr>
+<th>Parameter</th>
+<th>Description</th>
+<th>Optional</th>
+</tr>
+</thead>
+<tbody>
+<tr>
+<td>DATE_VALUE</td>
+<td>Valid segement load start time value. All the segments before this specified date will be deleted.</td>
+<td>NO</td>
+</tr>
+<tr>
+<td>db_name</td>
+<td>Database name, if it is not specified then it uses current database.</td>
+<td>YES</td>
+</tr>
+<tr>
+<td>table_name</td>
+<td>The name of the table in provided database.</td>
+<td>NO</td>
+</tr>
+</tbody>
+</table>
+<h3><a id="Example_202"></a>Example:</h3>
+<pre><code>DELETE SEGMENTS FROM TABLE CarbonDatabase.CarbonTable WHERE STARTTIME BEFORE '2017-06-01 12:05:06';  
+</code></pre>
+
+</body></html>

http://git-wip-us.apache.org/repos/asf/incubator-carbondata-site/blob/a1ad369d/content/documents/images/format/CarbonData_logo.png
----------------------------------------------------------------------
diff --git a/content/documents/images/format/CarbonData_logo.png b/content/documents/images/format/CarbonData_logo.png
new file mode 100644
index 0000000..bc09b23
Binary files /dev/null and b/content/documents/images/format/CarbonData_logo.png differ

http://git-wip-us.apache.org/repos/asf/incubator-carbondata-site/blob/a1ad369d/content/documents/images/format/carbon_data_file_structure_new.png
----------------------------------------------------------------------
diff --git a/content/documents/images/format/carbon_data_file_structure_new.png b/content/documents/images/format/carbon_data_file_structure_new.png
new file mode 100644
index 0000000..3f9241b
Binary files /dev/null and b/content/documents/images/format/carbon_data_file_structure_new.png differ

http://git-wip-us.apache.org/repos/asf/incubator-carbondata-site/blob/a1ad369d/content/documents/images/format/carbon_data_format_new.png
----------------------------------------------------------------------
diff --git a/content/documents/images/format/carbon_data_format_new.png b/content/documents/images/format/carbon_data_format_new.png
new file mode 100644
index 0000000..9d0b194
Binary files /dev/null and b/content/documents/images/format/carbon_data_format_new.png differ

http://git-wip-us.apache.org/repos/asf/incubator-carbondata-site/blob/a1ad369d/content/documents/images/format/carbon_data_full_scan.png
----------------------------------------------------------------------
diff --git a/content/documents/images/format/carbon_data_full_scan.png b/content/documents/images/format/carbon_data_full_scan.png
new file mode 100644
index 0000000..46715e7
Binary files /dev/null and b/content/documents/images/format/carbon_data_full_scan.png differ

http://git-wip-us.apache.org/repos/asf/incubator-carbondata-site/blob/a1ad369d/content/documents/images/format/carbon_data_motivation.png
----------------------------------------------------------------------
diff --git a/content/documents/images/format/carbon_data_motivation.png b/content/documents/images/format/carbon_data_motivation.png
new file mode 100644
index 0000000..6e454c6
Binary files /dev/null and b/content/documents/images/format/carbon_data_motivation.png differ

http://git-wip-us.apache.org/repos/asf/incubator-carbondata-site/blob/a1ad369d/content/documents/images/format/carbon_data_olap_scan.png
----------------------------------------------------------------------
diff --git a/content/documents/images/format/carbon_data_olap_scan.png b/content/documents/images/format/carbon_data_olap_scan.png
new file mode 100644
index 0000000..c1dfb18
Binary files /dev/null and b/content/documents/images/format/carbon_data_olap_scan.png differ

http://git-wip-us.apache.org/repos/asf/incubator-carbondata-site/blob/a1ad369d/content/documents/images/format/carbon_data_random_scan.png
----------------------------------------------------------------------
diff --git a/content/documents/images/format/carbon_data_random_scan.png b/content/documents/images/format/carbon_data_random_scan.png
new file mode 100644
index 0000000..7d44d34
Binary files /dev/null and b/content/documents/images/format/carbon_data_random_scan.png differ