All Products
Search
Document Center

DataWorks:Create a Hologres internal table

Last Updated:Mar 26, 2026

Create a Hologres internal table in the DataWorks console to store and query MaxCompute data. Internal tables physically store data in Hologres, which delivers faster query performance than external tables.

To create a Hologres internal table using SQL instead, see CREATE TABLE.

Prerequisites

Before you begin, make sure you have:

Region support

Creating a Hologres internal table in the DataWorks console is only supported in the China (Shanghai) and China (Beijing) regions.

Internal tables vs. external tables

Hologres tables come in two types:

TypeStores MaxCompute dataBest for
Internal tableYesFast OLAP queries and analysis
External tableNo — maps to MaxCompute data in placeQueries without data import overhead

Use internal tables when query speed matters. Use external tables when you want to avoid copying data into Hologres.

Create a Hologres internal table

Step 1: Create a workflow (optional)

Skip this step if you already have a workflow.

  1. Hover over the 新建 icon and select Create Workflow.

  2. In the Create Workflow dialog box, enter a Workflow Name.

  3. Click Create.

Step 2: Create the table

  1. Hover over the 新建 icon and choose Create Table > Hologres > Table.

  2. In the Create Table dialog box, set Table Type to Internal Table and configure Engine Instance, Path, and Name.

    输入表信息

Step 3: Configure the table

On the table configuration tab, set parameters across three sections.

General

基础属性
ParameterDescription
Storage modeThe storage layout of the table. Default: Column storage (columnar storage). See details below.
Life cycleThe time-to-live (TTL) for the table data, in seconds. Default: permanent. The TTL countdown starts when data is first written. After the TTL expires, data is deleted at an unspecified time.
BinlogEnables binary logging for the table. When enabled, configure Binlog Lifecycle (default: permanent). Only Hologres V0.9 and later support subscription to the binary logs of a single table. For details, see Subscribe to Hologres binary logs.

Storage mode options:

  • Column storage (columnar storage): Optimized for online analytical processing (OLAP). Supports complex queries, joins, scans, filtering, and aggregations. Insert and update performance is lower than row-oriented storage.

  • Row deposit (row-oriented storage): Optimized for key-value lookups and supports point queries and scans based on primary keys. Insert and update performance is higher than columnar storage.

  • Row-row coexistence (hybrid row-column storage): Supports both point queries and OLAP. Incurs higher storage costs and internal synchronization overhead.

For details on storage modes, see the orientation parameter in CREATE TABLE.

Physical model

业务描述

Physical model settings are for table management and organization only. They do not affect the underlying table logic.

ParameterDescription
ThemeThe level-1 and level-2 folders that categorize the table by business domain. Folders are managed in DataWorks.
LayerThe data layer the table belongs to (for example, data import, data sharing, or data analysis). For details on managing data layers, see Manage settings for tables.
CategoryThe business category of the table (for example, basic service, advanced service). For details on managing categories, see Manage settings for tables.

Schema

配置表结构
TabDescription
Field designAdd and define table fields. For supported data types, see Data types.
Storage designConfigure how data is physically stored and indexed. See storage design options below.
PartitionDefine a partition field. If the table has a primary key, the primary key must include the partition field.

Storage design options:

  • Distribution column: The distribution key used to distribute data across shards for computing and scanning.

  • Segmented column: A time-type column used as an event time filter. When event time columns are included in query conditions, Hologres can find the storage location of data based on these columns. Suitable for logs, traffic data, and time-series workloads.

  • Cluster column: Columns for which Hologres builds clustered indexes. Data is sorted by these indexes to accelerate RANGE and FILTER queries.

  • Dictionary encoding column: Columns for which Hologres builds dictionary mappings. Converts string comparisons to numeric comparisons to speed up GROUP BY and FILTER operations.

  • Bitmap column: Columns for which Hologres builds bitmap indexes. Bitmap indexes help filter data that equals a specified value in a stored file. We recommend converting equality filter conditions to bitmap indexes.

For details on all storage options, see CREATE TABLE.

Step 4: Commit and deploy

After configuration, commit the table to make it available in the Hologres database.

In a workspace running in basic mode, commit to the production environment only. For details on basic and standard mode workspaces, see Differences between workspaces in basic mode and workspaces in standard mode.

OperationDescription
Commit to development environmentCreates the table in the Hologres database in the development environment. The table schema then appears in the Hologres folder of the workflow in DataStudio — the folder you specified when you created the table.
Load from development environmentLoads table configuration from the development environment to the current page, overwriting any unsaved changes. Available only after the table is committed to the development environment.
Commit to production environmentCreates the table in the Hologres database in the production environment.
Load from production environmentLoads table configuration from the production environment to the current page, overwriting any unsaved changes. Available only after the table is committed to the production environment.

What's next

After creating the internal table, you can: