Identifiers¶
An Identifier is a field that can be used to help load the desired data from a table in support of the analysis. There are two types of identifiers that can be declared for a table:
-
Incremental Field: Track records in the table that have already been scanned in order to support Scan operations that only analyze new (not previously scanned) data.
-
Partition Field: Divides the data in the table into distinct dataframes that can be analyzed in parallel.
Show me how
The app can walk you through this. Press H on a container's page and pick Set Incremental Identifiers: the walkthrough highlights each step while you do the real work. See The How-tos Scope for every way to start one.
Managing an Identifier¶
Identifiers are set on the tables of a JDBC datastore or a native datastore, such as Hive Native. File patterns in a DFS datastore have no Identifiers section in their settings, because the incremental strategy for files is automatic (see Incremental Strategy with DFS).
Step 1: Log in to your Qualytics account and select the JDBC or native source datastore that you want to manage from the datastore tree on the left.

Step 2: Click the Tables tab at the top of the datastore page.

Step 3: The tab lists the tables belonging to the selected source datastore.

Step 4: Click Actions at the right end of the table's row and select Settings from the menu. When you are already on the table's page, the same Settings item is in the menu of the Actions button in the top right corner of the page.

The Table Settings dialog opens. Its Identifiers section, at the top, holds the Incremental Strategy picker, the Incremental Field picker once a strategy that needs a field is selected, and, for tables on a JDBC datastore, the Partition Field picker. Click Save in the bottom right corner of the dialog to apply your changes.

Incremental Strategy¶
The Incremental Strategy configuration in Qualytics is crucial for tracking changes at the row level within tables.
This approach is essential for efficient data processing, as it is specifically used to track which records have already been scanned.
This allows for scan operations to focus exclusively on new records that have not been previously scanned, thereby optimizing the scanning process and ensuring that only the most recent and relevant data is analyzed.

| No. | Strategy Option | Description |
|---|---|---|
| 1 | None | No incremental strategy, runs full table scans. |
| 2 | Last Modified | - Available types are Date or Timestamp was last modified. - Uses a "last modified column" to track changes in the data set. - This column typically contains a timestamp or date value indicating when a record was last modified. - The system compares the "last modified column" to a previous timestamp or date, updating only the records modified since that time. |
| 3 | Batch Value | - Available types are Integral or Fractional. - Uses a "batch value column" to track changes in the data set. - This column typically contains an incremental value that increases as new data is added. - The system compares the current "batch value" with the previous one, updating only records with a higher "batch value". - Useful when data comes from a system without a modification timestamp. |
| 4 | Postgres commit timestamp tracking | - Utilizes commit timestamps for change tracking. - Offered only for tables (not views) on a PostgreSQL datastore. |
| 5 | File Last Modified Time | - Needs no incremental field. - Reads the partitions whose files changed since the last scan, judged by when each partition directory in storage last changed. - Works on tables without a detected date partition, unpartitioned tables, and tables partitioned by something other than a date. - Offered only for tables (not views or computed tables) on a Hive Native datastore. - Needs tables stored on HDFS: a table in object storage, such as Amazon S3, is read in full by every Incremental scan. |
When you pick Last Modified or Batch Value, the required Incremental Field picker appears below the strategy, and Save stays disabled until you choose a field. Changing the strategy clears the field you had chosen. The picker checks a field's type against the strategy only once the field has been profiled: a field with no profile yet shows no type under its name and is not checked against the types above. Computed fields are listed but unavailable.
Postgres commit timestamp tracking and File Last Modified Time need no field, so the Incremental Field picker stays hidden for them. With File Last Modified Time selected, the hint under the strategy reads Incremental scans read the partitions whose files changed since the last scan. No field is needed. Switching a table to or from File Last Modified Time clears where its Incremental scans start, so the next one reads every partition. See Incremental scans by File Last Modified Time.
Note
The Incremental Field is also checked against the type the source stores it as. A field the source stores as text is refused for Last Modified and Batch Value, even when its values are numbers or dates and the profile reports a numeric or date type (for example, when Infer the data type for each field and cast it appropriately is on). The picker shows such a field as unavailable, with a warning icon whose tooltip reads Field not available for incremental strategy and a reason such as Stored as text (varchar(32)) in the source.
Hive Native makes two exceptions, both for a table partitioned by a column stored as text:
- Last Modified accepts the table's first partition column when Sync found that it holds dates, such as
20261112or2026-11-12 15:30. Sync also sets it as the Last Modified field when the table has no incremental field. No other text field is offered. - Batch Value accepts a field stored as text, for a first partition column that holds batch numbers such as
1731400000. The picker offers every text field, but a scan fails when the chosen field is not the table's first partition column.
Availability based on technologies:
| Option | Availability |
|---|---|
| Last Modified | All |
| Batch Value | All |
| Postgres commit timestamp tracking | PostgreSQL tables |
| File Last Modified Time | Hive Native tables |
Info
- All options are useful for incremental strategy; it depends on the availability of the data and how it is modeled.
- These options allow you to track and process only the data that has changed since the last time the system was run, reducing the amount of data that needs to be read and processed, and increasing the efficiency of your system.
Incremental Strategy with DFS (Distributed File System)¶
For DFS in Qualytics, the incremental strategy leverages the last modified timestamps from the file metadata.
This automated process means that DFS users do not need to manually configure their incremental strategy, as the system efficiently identifies and processes the most recent changes in the data.
Example¶
Objective: Identify and process new or modified records in the ORDERS table since the last scan using an Incremental Strategy.
Sample Data
| O_ORDERKEY | O_PAYMENT_DETAILS | LAST_MODIFIED |
|---|---|---|
| 1 | {"date": "2023-09-25", "amount": 250.50, "credit_card": "5105105105105100"} | 2023-09-25 10:00:00 |
| 2 | {"date": "2023-09-25", "amount": 150.75, "credit_card": "4111-1111-1111-1111"} | 2023-09-25 10:30:00 |
| 3 | {"date": "2023-09-25", "amount": 200.00, "credit_card": "1234-5678-9012-3456"} | 2023-09-25 11:00:00 |
| 4 | {"date": "2023-09-25", "amount": 175.00, "credit_card": "5555-5555-5555-4444"} | 2023-09-26 09:00:00 |
| 5 | {"date": "2023-09-25", "amount": 300.00, "credit_card": "2222-2222-2222-2222"} | 2023-09-26 09:30:00 |
Incremental Strategy Explanation¶
In this example, an Incremental Strategy would focus on processing records that have a LAST_MODIFIED timestamp after a certain cutoff point. For instance, if the last scan was performed on 2023-09-25 at 11:00:00, then only records with O_ORDERKEY 4 and 5 would be considered for the current scan, as they have been modified after the last scan time.
graph TD
A[Start] --> B[Retrieve Orders Since Last Scan]
B --> C{Record Modified After Last Scan?}
C -->|Yes| D[Process Record]
C -->|No| E[Skip Record]
D --> F[Move to Next Record/End]
E --> F
Partition Field¶
The Partition Field is a fundamental feature for organizing and managing large datasets. It is specifically designed to divide the data within a table into separate, distinct dataframes.
This segmentation is a key strategy for handling and analyzing data more effectively. By creating these individual dataframes, Qualytics allows for parallel processing, which significantly accelerates the analysis.
Each partition can be analyzed independently, enabling simultaneous examination of different segments of the dataset.
This not only increases the efficiency of data processing but also ensures a more streamlined and scalable approach to handling large volumes of data, making it an indispensable tool in data analysis and management.
The ideal Partition Identifier is an Incremental Identifier of type datetime such as a last-modified field, however, alternatives are automatically identified and set during a Sync operation.
The Partition Field picker appears only for tables on a JDBC datastore. Views, computed tables, and tables on a native datastore such as Hive Native do not show it.

Info
- Partition Field Selection: When selecting a partition field for a table during a sync operation, we will attempt to select a field with no nulls where possible.
- When Sync selects one: On JDBC datastores, Sync only selects a partition field when the table has none, when its partition field no longer exists, or when that field can no longer be partitioned. A table keeps its partition field across syncs even when other columns change. When it looks, Sync prefers the column the source partitions or clusters the table by, then the leading column of an index, then the column whose values are spread most evenly across the table, so a table is left without one only when none of its columns can be selected automatically. On PostgreSQL, MySQL, and SQL Server, a table whose only candidates are text columns is left without one until you set it yourself. See Partition Field Detection.
- User-Specified Partition Fields: Users are permitted to specify partition fields manually. Once a field has been profiled, the picker disables fields of an unsupported type (
Allowed types: ...) and fields with null values (Must be fully complete (NULL values are not allowed)). Text partition fields are the exception: they are accepted even with nulls. The API checks the type but not completeness, so a partition field set through the API should also have no or a low percentage of nulls to avoid unbalanced partitioning. - Text Partition Fields: On PostgreSQL, MySQL, SQL Server, and Hive datastores, you can set a field the source stores as text as the partition field, and Qualytics splits the read into ranges of its sorted values. The accepted source types are
varchar,text, andcitexton PostgreSQL,varcharandtexton MySQL,varcharandnvarcharon SQL Server, andstringandvarcharon Hive. On PostgreSQL, MySQL, and SQL Server, Sync does not select a text field by itself, but it keeps one you set. On Hive, Sync can select one, such as a text column the table is partitioned by. Other text types, such aschar,clob, or SQL Server'stext, are refused even when their values profile as numbers or dates; the picker shows them as unavailable with a message such as Stored as text (char(8)) in the source.
Warning
If no appropriate partition identifier can be selected, then repeatable ordering candidates (order by fields) are used for less efficient processing of containers with a very large number of rows.
Example¶
Objective: Identify an efficient process and analyze the ORDERS table by partitioning the data based on the O_ORDERDATE field, allowing parallel processing of different date segments.
Sample Data
| O_ORDERKEY | O_CUSTKEY | O_ORDERSTATUS | O_TOTALPRICE | O_ORDERDATE |
|---|---|---|---|---|
| 1 | 123 | 'O' | 173665.47 | 2023-09-01 |
| 2 | 456 | 'O' | 46929.18 | 2023-09-01 |
| 3 | 789 | 'F' | 193846.25 | 2023-09-02 |
| 4 | 101 | 'O' | 32151.78 | 2023-09-02 |
| 5 | 202 | 'F' | 144659.20 | 2023-09-03 |
Partition Field Explanation¶
In this example, the O_ORDERDATE field is used to partition the ORDERS table. Each partition represents a distinct date, allowing for the parallel processing of orders based on their order date. This strategy enhances the efficiency of data analysis by distributing the workload across different partitions.
graph TD
A[Start] --> B[Retrieve Orders Data]
B --> C{Partition by O_ORDERDATE}
C --> D[Distribute Partitions for Parallel Processing]
C --> E[Identify Date Segments]
D --> F[Analyze Each Partition Independently]
E --> F
F --> G[Combine Results/End]