Partitioning refers to splitting what is logically one large table into smaller physical pieces based on specific schemes. The table based on the logic is called a partitioned table, and a physical piece is called a partition. Data is stored on these smaller physical pieces, namely, partitions, instead of the larger logical partitioned table.
Follow the steps below to define a table in your database:
On the SQL Preview tab, you can check the automatically generated SQL query. For details, see SQL Preview.
If you create a table in a schema, the current schema will be used as the schema of the table. Perform the following steps to create a partitioned table:
If table orientation is selected as ORC, then an HDFS Partitioned table is created. Enter the ORC version number in ORC Version.
The following table describes the parameters of partitioned tables.
Parameter |
Row Partition |
Column Partition |
ORC Partition |
|---|---|---|---|
Table Type |
x |
x |
x |
If Not Exists |
√ |
√ |
√ |
With OIDS |
x |
x |
x |
Fill Factor |
√ |
x |
x |
The following table describes the parameters of partitioned tables.
Parameter |
Row Partition |
Column Partition |
ORC Partition |
|---|---|---|---|
Array Dimensions |
√ |
x |
x |
Data Type |
√ |
x |
x |
NOT NULL |
√ |
√ |
√ |
Default |
√ |
√ |
√ |
UNIQUE |
√ |
x |
x |
CHECK |
√ |
x |
x |
You can add, delete, and edit columns, and adjust the sequence of columns.
You can change the order of partitions in the table as required. To change the order, select the required partition and click Up or Down.

Data Studio generates a DDL statement based on the inputs provided in Create New table wizard.
You can only view, select, and copy the query. You cannot edit the query.
Click Finish to create the table. On clicking the Finish button, the generated query will be sent to the server. Any errors are displayed in the dialog box and status bar.
The following table describes the parameters of partitioned tables.
Parameter |
Row Partition |
Column Partition |
ORC Partition |
|---|---|---|---|
Partition Type |
By Range |
By Range |
By Value |
Partition Name |
√ |
√ |
x |
Partition Value |
√ |
√ |
x |
You can add, delete, edit and move a column.
Change the partition sequence according to the requirements in the table. To change the order, select the required partition and click Up or Down.

For details about index definitions, see Defining an Index.
Parameter |
Row-store Table |
Column-store Table |
ORC Table |
|---|---|---|---|
Unique Indexes |
√ |
x |
x |
btree |
√ |
√ |
x |
gin |
√ |
√ |
x |
gist |
√ |
√ |
x |
hash |
√ |
√ |
x |
psort |
√ |
√ |
x |
spgist |
√ |
√ |
x |
Fill Factor |
√ |
x |
x |
User Defined Expression |
√ |
x |
x |
Partial Index |
√ |
x |
x |
For details about how to define table constraints, see Defining Table Constraints.
Parameter |
Row Partition |
Column Partition |
ORC Table |
|---|---|---|---|
Check |
√ |
x |
x |
Unique |
√ |
x |
x |
Primary Key |
√ |
x |
x |
For details about how to configure a distribution type, see Selecting Data Distribution.
Parameter |
Row Partition |
Column Partition |
ORC Partition |
|---|---|---|---|
DEFAULT DISTRIBUTION |
√ |
√ |
x |
Hash |
√ |
√ |
√ |
Replication |
√ |
√ |
x |
Drop Partition Table dialog box is displayed.
The partition is deleted from the table. Data Studio displays the status of the operation in the status bar.
Rename Partition Table dialog box is displayed prompting you to provide the new name for the partition.
Data Studio displays the status of the operation in the status bar.