Skip to main content

Data Integrity FAQ

If data appears missing, duplicated, or unexpectedly restored in a VeloDB Cloud warehouse, preserve the source records and load evidence before attempting repairs. These checks apply to SaaS and BYOC warehouses. Service-side repair and recovery require VeloDB Cloud support.

What should I check first?โ€‹

  1. Identify the affected warehouse, database, table, and cluster. Save the Core version, timestamp with time zone, SQL text, and query ID when available.
  2. Use SHOW CREATE TABLE to confirm the table model, Key columns, Sequence column, and auto-increment definition. Duplicate Key tables retain duplicate rows by design. A repeated business identifier is not necessarily a repeated table key.
  3. Check load responses and job status. Save load labels or transaction IDs, source offsets or file names, row counts, and rejected-row details. A submitted or acknowledged load does not always mean that its rows are visible yet. See the Load FAQ.
  4. Recheck the exact Key columns with a focused query. Check whether concurrent loads, updates, deletes, or schema changes could explain the difference. For an external table, also record the catalog and source snapshot or refresh state.
  5. Save a small, redacted set of source rows and the expected and actual results. Avoid repeating writes or deleting the affected table while the cause is unknown.

Send this evidence to VeloDB Cloud support if the result still contradicts the expected table semantics. VeloDB Cloud support can determine whether the issue is caused by input ordering, load state, query behavior, or a service-side defect.

Why can an older update replace a newer value?โ€‹

A Unique Key table resolves rows using the table's update semantics, not the business timestamp implied by an arbitrary Value column. If source events can arrive out of order, configure a Sequence column that distinguishes changes to the same key. A larger Sequence value takes precedence. Equal Sequence values do not define a deterministic event order.

Partial column updates also depend on whether the key already exists and which columns the load supplies. Compare the load configuration with Update Unique Key Tables through Loading. For unexpected auto-increment values, distinguish values explicitly supplied by the source from values generated by the service. See Auto-Increment Columns.

Should I run compaction or change node files to repair the data?โ€‹

Contact VeloDB Cloud support before attempting service-side repair. A procedure for a self-managed Apache Doris deployment does not establish a safe repair for a Cloud warehouse. Compaction is not a universal remedy for missing rows, incorrect updates, or bad source data.

Keep the original input and affected results available so that VeloDB Cloud support can diagnose the failure and choose a recovery plan. Do not edit engine metadata, delete node identity files, or restart managed nodes as a data-repair step.

Which known fixes apply to my warehouse?โ€‹

Use the Core 26.0 release notes and Core 26.1 release notes for Cloud release information. Match the affected operation and conditions to the fix description. Ask VeloDB Cloud support to confirm whether a particular issue affects your warehouse and which upgrade or recovery action applies.

The historical issues below come from Apache Doris. Their affected and fixed versions belong to Apache Doris and cannot be used as VeloDB Cloud version ranges. The table preserves the symptoms and original public investigations for migration and incident comparison. It does not assert that a current Cloud warehouse is affected, or that an upgrade alone repairs data already written incorrectly. The Apache Doris Data Integrity FAQ contains the upstream version history.

Historical symptomConditions reported upstreamUpstream investigation
Previously deleted rows reappear after a partial updateA merge-on-write Unique Key load supplies __DORIS_DELETE_SIGN__ and historical rows include delete markers.#46194
Duplicate visible keys in a merge-on-write Unique Key tableConcurrent loads in a deployment with separated storage and compute.#46039
Duplicate visible keys in a merge-on-write Unique Key tableConcurrent loads, or a load concurrent with compaction, in a deployment with separated storage and compute.#44975
Generated auto-increment values are zero or duplicatedCommunication failures between frontend and backend processes.#43774
A Stream Load delete condition does not remove the matching rowsA merge-on-write Unique Key load combines merge_type: MERGE, partial_columns: true, and delete.#40730
A partial update unexpectedly changes an auto-increment Value columnThe partial update omits the auto-increment column.#39996
Duplicate visible keys after enabling Sequence behaviorNew loads follow ALTER TABLE ... ENABLE FEATURE "SEQUENCE_LOAD" on an existing merge-on-write Unique Key table.#39958
Duplicate visible keys in a merge-on-write Unique Key tableConcurrent loads, or concurrent loading and compaction, in a deployment with separated storage and compute.#39018
Data corruption during partial updatesConcurrent partial updates and a backend restart during the load.#38331
Duplicate visible keys in a merge-on-write Unique Key tableConcurrent loading and compaction in a deployment with separated storage and compute.#37670, #41309, #39791
Duplicate visible keys in a merge-on-write Unique Key table with a Sequence columnA large load triggers segment compaction.#38369
Duplicate visible keys after a failed full cloneA self-managed deployment with integrated storage and compute.#37001
Duplicate visible keys after a Stream Load retryInternal retries in a deployment with separated storage and compute.#36670
Inconsistent results across replicasA partial update supplies __DORIS_DELETE_SIGN__ while base compaction progresses differently across self-managed replicas.#36210
Duplicate visible keys during partial updatesConcurrent partial updates and backend restarts.#35739

Enter to send ยท Shift+Enter for a new line