Creating a Local Table (File)
Create a local table (file) to store data in the object store. Load data to your local table (file) via replication flows and transform the data with transformation flows.
Prerequisites
-
Data Warehouse General (-R------) - To access SAP Datasphere.
-
Data Warehouse Data Builder (CRUD----) - To create, edit, and delete Data Builder objects.
-
Space Files (CRUD----) - To create, read, update, and delete objects in your spaces.
Context
-
Local tables – Are stored on disk or in-memory (see Creating a Local Table). These tables can use delta capture and can only be created in a standard space (with SAP HANA Database (Disk and In-Memory) storage (see Create a Space).
-
Local tables (file) – Are stored on files and are intended for file storage with large amounts of data at lower cost. These tables always use delta capture and can only be created in a file space (with SAP HANA Data Lake Files storage (see Create a File Space to Load Big Data).
You cannot create views and analytic models in file spaces, but you can share local tables (file) to standard spaces where they can be consumed by views, flows, and analytic models (see Sharing Entities and Task Chains to Other Spaces). You can also share a local table (file) to another space file.
SAP HANA Cloud, data lake allows SAP Datasphere to store and manage mass-data efficiently in a secured environment. The SAP HANA native SQL on files feature gives you a direct access to the data stored in the object store and enables large data-based business scenarios at lower costs.
-
An active records entity for accessing the delta capture entity through a virtual table. It excludes the delta capture columns and deleted records, and keeps only the active records.
-
A delta capture entity that stores information on changes found in the delta capture table. It serves as target for flows at design time. In addition, every local table (file) has a specific folder in file storage (inbound buffer) to which data updates are stored until they are pushed to the local table (file) by a merge task (see Creating a Task Chain, Monitoring Local Tables (File) and Creating a Replication Flow). You can monitor the buffer merge status using the Local Tables (File) monitor (See Monitoring Local Tables (File).
Create a Local Table (File)
Procedure
-
In the side navigation area, select (Data Builder), select a space if necessary, and select New Table to open the editor.
-
Enter the following properties as appropriate:
Property Description Business Name
Enter a descriptive name to help users identify the object. This name can be changed at any time.
Technical Name
Displays the name used in scripts and code, synchronized by default with the Business Name.
To override the default technical name, enter a new one in the field. Technical names can contain only alphanumeric characters and underscores.Semantic Usage
Select the way your entity should be used for data modeling purposes.
Choose from the following:-
Fact - Contains one or more measures and attributes. A fact typically has associations pointing to one or more dimensions and is consumed by analytic models (see Create a Fact to Contain Measurable Data).
-
Dimension - Contains attributes containing master data like a product list or store directory, and supporting hierarchies (see Create a Dimension to Categorize Data).
-
Text - Contains attributes used to provide textual content in one or more languages (see Create a Text Entity for Attribute Translation).
-
Relational Dataset - [default] Contains columns with no specific analytical purpose.
-
Analytical Dataset (Deprecated) - Use Fact instead (see Analytical Datasets (Deprecated).
Allow Data Transport
[dimensions only] [SAP Business Data Cloud formation tenants only] Allow users to include the table data in a package when transporting the table.
This feature is intended to allow you to transport limited quantities of data for static and slowly changing dimensions, text entities, and relational datasets. If the local table is created by the import (or if it already exists but is empty), the transported data will be imported to it.
Storage
[read-only] Displays the table storage.
For local tables created in a space with SAP HANA Cloud data lake storage, the value is "File".
Status
[read-only] Displays the deployment and error status of the object.
For more information, see Saving and Deploying Objects.
-
-
Review (and update if needed) the Change Tracking section of your local table (file):
-
Delta Capture: If enabled, it tracks the delta changes that are made in the local table adding 2 delta capture columns: Change Type and Change Date. It cannot be changed after deployment.
-
Delta Capture Table: When Delta Capture is enabled, this field is added, and a default name for the delta capture table is defined (Technical name + _Delta).
-
Deletion Vector: Deletion vectors optimize how delete and update operations are processed for local tables (file). When enabled, rows that are deleted or updated are tracked using lightweight metadata markers rather than rewriting the underlying data files. Without deletion vectors, modifying even a single row requires rewriting the entire file that contains that row. With deletion vectors enabled, only metadata is updated to identify changed rows, which can improve replication performance and reduce storage overhead for delta capture operations. The performance benefits depend on the workload. For update operations that affect only a subset of the data, Spark resource consumption and run time can improve by up to approximately 90%, as Parquet files do not need to be rewritten. However, for full-table update scenarios, deletion vectors may increase resource consumption and reduce performance compared to tables that do not use deletion vectors
-
-
Based on the Semantic Usage of your entity, review and modify its ColumnsAttributes, and/or Measures:
-
Fact - Review the lists of measures and attributes (see Create a Fact to Contain Measurable Data).
-
Dimension - Review the list of attributes (see Create a Dimension to Categorize Data).
-
Text - Review the list of attributes (see Create a Text Entity for Attribute Translation).
-
Relational Dataset - Review the list of columns (see Columns).
-
Analytical Dataset (Deprecated) - Use Fact instead (see Analytical Datasets (Deprecated).
Columns can have the following properties:Property Description Key
Select the checkbox to specify that the column is a primary key column. Key columns cannot be null.
Business Name
Enter a descriptive name to help users identify the object. This name can be changed at any time.
Technical Name
Displays the name used in scripts and code, synchronized by default with the Business Name.
To override the default technical name, enter a new one in the field. Technical names can contain only alphanumeric characters and underscores.Data Type
Select the type of data that the column will contain.
Not Null
Select this option to indicate that the column must contain a value.
Change Type
This column will track the type of last change made to a record.
Note that deleting a record will not physically delete it, so that the changes can be propagated to the different objects that consume it in delta mode. It is however filtered out when accessing the local table (using the Active Records Table). The handling of the different change types is implemented internally by SAP Datasphere apps that consume the Delta Capture Table with no need for consideration in modeling. For more information on records deletion, see Load or Delete Local Table Data
Change Date
The column will track the last date and time of the last change to an individual record. Current UTC timestamp.
-
-
Create associations to other entities if needed (see Create an Association to Define a Semantic Relationship Between Entities).
-
Business Purpose - Provide a description, purpose, contacts, and tags to help other users understand your entity.
-
Partition Columns- Define partitions.
Partitions for a local table (file) must be based on columns (and not on range of values as for local tables stored on SAP HANA database). Some data types are not supported for partitioning. The dialog will propose only columns with supported data types. For more information, on data types supported, see Data Types Supported By Local Tables (File).For more information on partitions, see Partitioning Local Tables.
-
Dependent Objects- If your entity is used as a source or a target (for example, table with delta capture enabled) or as association target for other entities, then they are listed here. For more information, see Review the Objects That Depend on Your Table or View.
-
Click to save your entity or click to save and deploy it immediately.
For more information, see Saving and Deploying Objects.
-
Once your local table (file) is deployed, you can consume it or share it.
