[
https://issues.apache.org/jira/browse/TAJO-1740?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15037357#comment-15037357
]
ASF GitHub Bot commented on TAJO-1740:
--------------------------------------
Github user dkhwangbo commented on a diff in the pull request:
https://github.com/apache/tajo/pull/896#discussion_r46516840
--- Diff: tajo-docs/src/main/sphinx/partitioning/column_partitioning.rst ---
@@ -11,22 +11,50 @@ How to Create a Column Partitioned Table
You can create a partitioned table by using the ``PARTITION BY`` clause.
For a column partitioned table, you should use
the ``PARTITION BY COLUMN`` clause with partition keys.
-For example, assume there is a table ``orders`` composed of the following
schema. ::
+For example, assume a table with the following schema.
- id INT,
- item_name TEXT,
- price FLOAT
+.. code-block:: sql
+
+ id INT,
+ name TEXT,
+ gender char(1),
+ grade TEXT,
+ country TEXT,
+ city TEXT,
+ phone TEXT
+ );
-Also, assume that you want to use ``order_date TEXT`` and ``ship_date
TEXT`` as the partition keys.
-Then, you should create a table as follows:
+Now you want to partition on country. Your Tajo definition would be this:
--- End diff --
looks better!
> Update Partition Table document
> -------------------------------
>
> Key: TAJO-1740
> URL: https://issues.apache.org/jira/browse/TAJO-1740
> Project: Tajo
> Issue Type: Sub-task
> Components: Documentation
> Reporter: Jaehwa Jung
> Assignee: Jaehwa Jung
> Fix For: 0.12.0, 0.11.1
>
> Attachments: TAJO-1740.patch
>
>
> Currently, Tajo doesn't provide enough informations about partition table.
> Thus, we need to add more informations to following documentation.
> http://tajo.apache.org/docs/current/partitioning/column_partitioning.html
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)