Skip to content

harness: the Oracle ledger parity cell derives its declared TIMESTAMP(9) column from the ledger row, not from a declarable marker the row no longer carries - #1243

Merged
panchenkoai merged 3 commits into
mainfrom
harness-oracle-ts9-declared-row
Nov 25, 2026
Merged

panchenkoai merged 3 commits into
mainfrom
harness-oracle-ts9-declared-row

Conversation

@panchenkoai

Copy link
Copy Markdown
Collaborator

Why

Nightly Live run 45622453303, job E2E (4/4): live_cdc_type_parity::oracle_batch_and_cdc_deliver_every_ledger_row_alike panics at tests/live/live_cdc_type_parity.rs:147:28 with engines.oracle: no `declarable` row TIMESTAMP(9).

Root cause: #1234 made the undeclared Oracle TIMESTAMP(9) a delivered row (delivery: iso_timestamp_nanos) and dropped its refuses and declarable: true. The test still looked the row up by that marker, so it found nothing. The marker was a second place that had to agree with the row. After #1234 no row in any engine carries it.

What

  • declared_timestamp_row finds the ledger row by native_type alone, with no marker.
  • The test declares the appended column by its index in the ledger (C{declared_at}), not by filtering on the native name. The ledger now also holds the undeclared TIMESTAMP(9) text row, so a name filter would match two columns.
  • Removed the now-dead declarable marker: the guard check and its ROW_KEYS entry (tests/offline/type_capability_matrix_guard.rs), the key doc in docs/type-capability-matrix.yaml, and the clause in dev/release_oracle/property_no_silent_null.py::columns.
  • Sync points removed: 1 marker, consumed in 3 places, plus the name filter and its count assertion. Guards added: 0.

Evidence (devbox, same env as CI: COMPOSE_PROJECT_NAME=rivet, through live_slot + build_lock)

Run Result
RED on main 7b4cc62 panicked at tests/live/live_cdc_type_parity.rs:147:28, test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 3499 filtered out
GREEN on this branch test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 3499 filtered out; finished in 52.18s, with RIVET-ORACLE-PASS lines for the CDC, batch and warehouse grades (diff_columns: [])
Mutant: the declared column is not declared (let declared = "# N") RED: panicked at tests/common/duckdb.rs:78:9, BinderException ... strftime(VARCHAR, STRING_LITERAL), 1 failed. Restored from a snapshot copy; git status clean, mutant text count 0.
pre-push hook (lib + offline suite, including type_capability_matrix_guard) pre-push: ok

Both TIMESTAMP(9) columns (undeclared text and declared timestamp) are now graded in the one table on batch, CDC and the warehouse leg.

Not verified

  • The other engines' ledger cells and the property_no_silent_null stage were not run. The change removes a marker no row carries, and columns() is unchanged for rows without it.
  • No src/ change, so no Invariants section.

Andrii Panchenko and others added 3 commits November 25, 2026 16:05
…(9) column from the ledger row, not from a declarable marker the row no longer carries
… the undeclared text and the declared column, so it stays out of the weak-only count
@panchenkoai
panchenkoai merged commit be47aad into main Nov 25, 2026
24 checks passed
@panchenkoai
panchenkoai deleted the harness-oracle-ts9-declared-row branch November 25, 2026 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant