Repository: tajo Updated Branches: refs/heads/branch-0.11.1 903fc69de -> 556015c11
TAJO-1856: Add a description about the relationship of tablespace, managed table, and external table to Tablespace section of Table Management chapter. Signed-off-by: Jihoon Son <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/tajo/repo Commit: http://git-wip-us.apache.org/repos/asf/tajo/commit/556015c1 Tree: http://git-wip-us.apache.org/repos/asf/tajo/tree/556015c1 Diff: http://git-wip-us.apache.org/repos/asf/tajo/diff/556015c1 Branch: refs/heads/branch-0.11.1 Commit: 556015c11e583dd2bc2bd2c5a287ef73302991b0 Parents: 903fc69 Author: Jongyoung Park <[email protected]> Authored: Fri Nov 27 11:56:00 2015 +0900 Committer: Jihoon Son <[email protected]> Committed: Fri Nov 27 11:56:00 2015 +0900 ---------------------------------------------------------------------- CHANGES | 4 ++++ .../sphinx/table_management/tablespaces.rst | 21 +++++++++++++++++++- 2 files changed, 24 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tajo/blob/556015c1/CHANGES ---------------------------------------------------------------------- diff --git a/CHANGES b/CHANGES index 13db65b..46615b3 100644 --- a/CHANGES +++ b/CHANGES @@ -65,6 +65,10 @@ Release 0.11.1 - unreleased SUB TASKS + TAJO-1856: Add a description about the relationship of tablespace, managed table, + and external table to Tablespace section of Table Management chapter. + (Contributed by Jongyoung Park. Committed by jihoon) + Release 0.11.0 - Released http://git-wip-us.apache.org/repos/asf/tajo/blob/556015c1/tajo-docs/src/main/sphinx/table_management/tablespaces.rst ---------------------------------------------------------------------- diff --git a/tajo-docs/src/main/sphinx/table_management/tablespaces.rst b/tajo-docs/src/main/sphinx/table_management/tablespaces.rst index 9316154..6f43af1 100644 --- a/tajo-docs/src/main/sphinx/table_management/tablespaces.rst +++ b/tajo-docs/src/main/sphinx/table_management/tablespaces.rst @@ -2,8 +2,27 @@ Tablespaces *********** -Tablespaces in Tajo allow users to define locations in the storage system where the files or data objects representing database objects can be stored. Once defined, a tablespace can be referred to by name when creating a database or a table. Especially, it is very useful when a Tajo cluster instance should use heterogeneous storage systems such as HDFS, MySQL, and Oracle. +Tablespaces in Tajo allow users to define locations in the storage system where the files or data objects representing database objects can be stored. +Once defined, a tablespace can be referred to by name when creating a database or a table. +Especially, it is very useful when a Tajo cluster instance should use heterogeneous storage systems such as HDFS, MySQL, and Oracle. +============================================ +External Table, Managed Table and Tablespace +============================================ + +Tajo has two types of table. One is external table. It needs **location** property when the table is created. Using this property, you can create an external table indicating existing external data source. +For example, if there is already your data as Text/JSON files or HBase table, you can register it as tajo external table. +Other one is managed table, which means internal table, that is created in a speficied tablespace. + +Tablespace is a pre-defined physical location where data stored on. It is supported for only managed tables. +When you create a managed table, you can use the **tablespace** keyword to specify the location of data will be stored. +If the tablespace is not specified, the default tablespace of the table's database is used. + +.. note:: + + For creating a table, see :doc:`/sql_language/ddl`. + +============= Configuration =============
