Skip to main content

pSpace

info

pSpace ingestion has three modes: historical query, real-time subscription, and query synchronization. The actual reading host needs the matching plugin and Java environment. The modes have different requirements for historical windows, out-of-order lookback, and query intervals. A window under 1 second or truncated to whole seconds may prevent the historical phase from advancing.

Entry point: taosExplorer → Data Ingestion → pSpace.

1. Prerequisites​

Obtain the address, port, account, and one authorized point's LongName, current value, and historical records. Have an authorized TDengine TSDB administrator create an independent test database in the taosExplorer Data Browser or taos CLI, for example CREATE DATABASE pspace_demo PRECISION 'ms';.

PrerequisiteHow to confirm
Execution host and pluginThe taosX or selected taosX-Agent host has the matching pSpace plugin, Java, and vendor access dependencies. Do not check only the browser host.
Network and identityCheck from the reading host using the site service port and a read-only identity. The UI port hint is 8889; it does not replace the actual value supplied by the administrator.
PointsProvide the root node, point ID, LongName, type, quality, and records for a small window. Browsing successfully does not mean historical reads are permitted.
TargetAn independent test database, target write permission, and a model that preserves source time precision.

When using a DSN with taosx run, explicitly enter the port provided by the source administrator. Omitting it uses 5678, unlike the UI hint of 8889. Do not omit the port in a command because the UI is correctly prefilled. Configure the source identity and target TDengine write identity separately.

2. Configure and start​

Under Data Ingestion, click Create New Task, select pSpace, and enter the name, independent target database, and agent. Fill in the areas below with the address, port, and read-only identity from the source administrator, then click Check Connectivity. After connecting successfully, still verify point browsing, historical reads, and target writes.

pSpace source service address, port, and connection timeout

pSpace source user and password

  1. Add a pSpace data source, select pspace_demo and the agent, enter connection authentication, and check connectivity.
  2. Under data points, select the actual root node and set the point name rule to match only the test point. Click View Data Point List and confirm full paths, identifiers, and types. Alternatively, download the point CSV, review it, and upload it. Do not mix inconsistent point lists.
  3. Use pspace_{type} for the supertable and t_{point_id} for child tables if appropriate. Select original_ts as the time source, with time column ts, value column val, and quality column quality. Leave value transformation off initially. Preview or download the point list to record actual expanded names.
  4. Select historical query first. Enter start and end times known to contain data and a small query window. Confirm that the end is later than the start and the window is at least 1 second, then check the time zone, submit, and start. Do not use a zero window or a window below 1 second. Accepted configuration does not mean the task will advance correctly.

3. Three modes​

ModeRuntime resultKey configuration
Historical queryReads a finite time range, then ends.Start, end, and query window.
Real-time subscriptionContinuously receives point changes.Points and model; verify one new value first.
Query synchronizationReads history first, then queries subsequent data at intervals. Shown in the UI as Continuous Query; it does not stop at the entered end time.Start, query window, out-of-order lookback, and query interval.

original_ts, request_ts, and received_ts mean source time, request time, and receive time respectively. Verify using the same time semantics as the selected source. Do not compare row counts under different primary-key settings. Add value transformations and custom tags only after the original-value path passes.

3.1 Data points and mapping fields​

pSpace root node, point name filter, and time, value, quality, and tag mapping

SettingEntry and checks
Root nodeSelect a traversal start from the source node tree and check the scope by LongName. The underlying node identifier is not arbitrary path text.
Data point nameFilters by LongName. Enter the actual full path of the authorized test point first, then View Data Point List. Complex matching follows source-side rules; do not guess using Regex or other connectors' wildcards.
Supertable nameDefault pspace_{type}, expanded from retrieved type information. Confirm separately that type information is complete, and preview actual names and target column types.
Table nameDefault t_{point_id}. Use point IDs to avoid merging same-named points into one table.
Timestamp columnSelect original_ts, request_ts, or received_ts as the primary time.
Timestamp column nameDefault ts; separate from time source selection.
Value column nameDefault val.
Value transformationFor example (val-32)/1.8. Add only after confirming the original unit and output type. It does not modify source data.
Data quality column nameDefault quality. Preserve source quality semantics during verification.
Custom tagsStatic values or point properties, for example {Name}, {LongName}, and {Description}. Inspect the actual generated point list first.

After clicking View Data Point List, check the scope against id, name, data_type, long_name, and desc in the results. The different points below all display as "air temperature", but their IDs and full paths differ. Looking only at short names mixes points from different locations. Locate the authorized full path and ID before saving. This list contains point metadata, not source historical values or target write results.

pSpace point IDs, types, full paths, and distinction between same-named points under a root node

Split LongName is a separate mapping option, not a source point name filter. When enabled, it generates tags such as c0 and c1 from path segments. A leading backslash does not occupy an empty segment; other empty segments retain their positions. For example, \北京\朝阳\气温 corresponds to c0=北京, c1=朝阳, and c2=气温. If custom tags with the same names already exist, do not rely on automatic overwriting. Download the point list first and check final tags and hierarchy.

Custom tags can use {LongName[0]} to obtain the first path segment, returning an empty string for an out-of-range index. If path depths differ, do not force business levels to align by assuming all tags are nonempty. Check both source samples and actual targets.

3.2 Use CSV mapping​

After selecting Upload CSV Configuration File, click Download Data Points to generate a point list from the root node and point name scope. Check the following table before uploading through Choose File. point_id must be the actual source identifier, not LongName text. Different point types may generate different supertables and column types; do not change all values to DOUBLE.

CSV columnpSpace requirements
point_idRequired, actual point ID; match each entry against the downloaded point list.
stable, tbnameRequired, target supertable and child table. Use independent test objects first and avoid sharing child tables between same-named points.
typeExplicit target value type. If omitted, follows the plugin output type; it does not unconditionally preserve the original source type. Before changing it, check source type information, output, range, and precision. A target declaration cannot fix an earlier conversion.
value_col, value_transformValue column alias and transformation; the value column defaults to val. Establish a baseline with original values before transforming.
quality_colQuality column alias, default quality. Do not interpret an empty field as automatically dropping quality.
ts_col, request_ts_col, received_ts_colColumn names for source, request, and receive times. See primary-key selection rules below.
ts_transform, request_ts_transform, received_ts_transformCorresponding time transformations. Check result units, time zones, nulls, and same-key overwrites.
tag::类型::名称Multiple tags can be configured, for example tag::VARCHAR(128)::name. Each row contains that point's tag value, not historical point values.

pSpace CSV time primary keys are selected from nonempty settings in this order: ts_col, request_ts_col, then received_ts_col, not their left-to-right CSV header order. If none is configured, source time is used with the name ts. For example, if both ts_col=source_ts and received_ts_col=receive_ts are configured, source_ts is primary. To use receive time as the primary key, do not also configure a higher-priority time column. After changes, confirm the result in target structure and source samples. Do not directly apply another connector's shared point-list primary-key description.

Some point-list help still describes the old enable setting. pSpace does not use enable or enabled columns to stop collection; setting one to 0 does not guarantee that the point stops being read. To stop the entire task, follow Daily operations. To narrow the point scope, retain the original point list, adjust configuration during a maintenance window and restart the original task, then check the actual collection scope and target historical data.

The CSV defines mapping and contains no historical point values. A successful upload does not mean migration is complete. Keep the original file and a modified copy. Check actual target names, types, and tags with just one point before expanding the scope. Point-list changes do not replace collection mode configuration either.

3.3 Confirm types before expanding the scope​

Without source type information, the plugin may output DOUBLE. Non-numeric strings and booleans may fail conversion, and large integers may lose precision. Adding type in the CSV affects only subsequent target mapping. It does not change the plugin output type retroactively or fix conversions that have already occurred.

When using a direct DSN and source types must be preserved, explicitly set include_data_type=true and confirm that the source identity may read the relevant type properties. By default the plugin does not actively retrieve this information. In the UI, a type shown in the point list does not establish that the production task uses the same read conditions. Check numeric, string, boolean, and required large-integer samples in the actual target separately. Check the actual task configuration to determine whether the UI sets this option; do not rely only on the direct DSN default. Until type information and actual values are confirmed, do not change all points to DOUBLE and expand to production scope.

3.4 Set query windows and waits separately​

For historical queries, first specify the start time, end time, and a small window. Real-time subscriptions have no historical window configuration; generate a separate new value for verification. In query synchronization, the query window is for the initial historical phase, out-of-order lookback defines the subsequent polling lookback range, and the query interval defines the wait for subsequent queries. Use the units shown on the page. Do not combine all three into one "synchronization period". In a direct DSN, durations require explicit units, for example time_window=1m, time_excursion=0s, and query_interval=10s. Do not copy these options unchanged into a pure real-time subscription and expect backfill.

warning

These durations are passed to the plugin in whole seconds; fractional seconds are truncated. Set time_window to at least 1 second. A zero or subsecond window may cause the historical phase to query repeatedly without advancing its start. Set query_interval to at least 1 second as recommended to avoid increasing source load through zero-wait continuous queries. Do not expect 500ms to make the plugin use half-second historical windows or polls.

If a historical query has no end time, this run reads only up to the current time determined by the plugin and does not become continuous synchronization. Continuous query first backfills to the boundary determined during startup, then polls subsequent data. The query window is for historical backfill. Out-of-order lookback applies only to subsequent polls, not the initial historical phase, and is not AVEVA's delayed query upper bound. Even if end_time is entered through a DSN, it cannot set the continuous query stop time. Stop through task management and check the stop boundary.

Under Collection Configuration → Task Mode, select Historical Query and enter a finite time range. For Continuous Query, enter the start time and subsequent polling settings. The continuous query form initially has a 1-day window, 0 seconds of out-of-order lookback, and a 10-second query interval. Actively reduce the window to the authorized scope for the first run.

pSpace continuous query start, window, out-of-order lookback, and query interval

After selecting Real-time Subscription, there are no historical range fields. Their disappearance does not mean that the source has no history. If backfill is needed, run and verify it separately in historical mode. Do not rely on real-time subscription to reconstruct past changes.

pSpace real-time subscription mode entry

3.5 Advanced options and submission​

pSpace logging, raw data, concurrency, batches, and health settings

The new form initially sets log level to info, concurrency to 0, batch size to 1000, and raw data saving to off. Batch size controls plugin output batches sent to taosX, not the maximum rows in each source SDK historical query. Common read/write concurrency and batch delay fields do not control the plugin's source queries. Their presence in the form does not mean they tune source concurrency, rate limiting, or polling frequency. To reduce source pressure, first narrow the point scope and historical window and configure a reasonable query interval. Follow Tuning and resource control to compare source load and target data, and retain the old configuration before changes.

If data must be retained for Troubleshooting, see Viewing pSpace raw data retention for directories, TSV format, commands for both platforms, and automatic cleanup boundaries. Do not treat retention as a backup or proof of ingestion.

After confirming that the point list or rules cover only test points, the primary time source is explicit, and the target model is correct, click Submit. Return to the list, find the original task, confirm it has started, and record the task ID, actual expanded child tables, and test window before verifying data. A successful mapping file upload or source connection does not mean historical migration is complete.

4. Verification​

In the taosExplorer Data Browser or taos CLI, query ts, val, and quality from the child tables corresponding to the point list, and compare the same source window. For real-time mode, also check newly generated values. Completion of a historical task does not prove that real-time subscription is working.

5. Troubleshooting​

SymptomChecks
Plugin or Java fails to startCheck the matching plugin, runtime environment, and service paths on the actual reading host.
No points or garbled point namesCheck the root node, LongName filter, permissions, and character encoding. Do not use garbled names for production mapping.
No history or shifted timesCheck collection mode, source range, time source, and time zone.
Historical phase does not advance for a long timeCheck whether logs repeat the same query window and whether time_window is zero or truncated to whole seconds. First use an authorized short positive window rather than increasing concurrency.
Continues running despite an end timeCheck whether Continuous Query is selected. This mode does not use end_time to stop subsequent polling. For a finite range, use historical query, stop the original task, and check actual boundaries.
taosx run cannot connect but UI configuration worksCheck that the command explicitly uses the actual port, runs on the same collection host, and uses the same identity and agent path. Do not reuse an unverified DSN default port.
Strings fail or large integers differCheck whether production reads retrieve source types, plugin output, and target column types. Changing only CSV type is insufficient. Retain source/target samples and error logs and confirm results before expanding the point scope.

For other task, write, and runtime issues, see Troubleshooting by symptom.

6. Stopping, recovery, and limitations​

Retain the original task, point list, and execution state, and check the failure window after recovery. After source points are added or removed, recheck the point list during a maintenance window and restart the ingestion task to apply configuration. Do not assume the scope expands automatically. Restarting does not delete target history. Real-time subscription does not guarantee backfill of all changes during offline periods.

Historical and continuous query window boundaries are held in the running process, not durable checkpoints. Configuration files also cannot establish the time boundary already read. Before recovery, record the last successfully verified source time. Use target gaps to determine an authorized short historical window, verify the gap with an independent backfill task, then continue the original task. Backfill may overwrite identical primary keys. Do not rely only on successful process exit or cumulative row counts; verify historical completeness and continuous new values separately.

For named parameter types, defaults, units, and entry points, see pSpace read parameters. Enumeration, download, and production collection are described separately there; do not infer behavior from same-named parameters in other sources.