Skip to content

Handle dropped FK parent tables in constraint verification and merge - #5838

Merged
timsehn merged 2 commits into
masterfrom
fix/5808-fk-dropped-parent
Nov 29, 2026
Merged

timsehn merged 2 commits into
masterfrom
fix/5808-fk-dropped-parent

Conversation

@timsehn

@timsehn timsehn commented Nov 28, 2026

Copy link
Copy Markdown
Collaborator

Fixes #5808

Summary

  • In src/doltlite_merge_constraints_fk.c:
    • When a foreign-key parent table is absent from aCur (and not nonlocal) with no schema conflict on the child table, skip backfillParentPk, omit the AND NOT EXISTS (SELECT 1 FROM main."%w" AS p ...) clause (and parent catalog lookup), and tolerate NULL azTo slots in buildFkViolationInfo when the FK omitted explicit parent column names.
    • Empty child tables and rows with NULL FK values cleanly produce 0 violations without failing with no such table; non-NULL child rows are recorded as foreign key violations.
  • In src/doltlite_verify_constraints.c:
    • Collect user tables dropped since HEAD (present in aAnc but absent from aCur) and pass them to appendFkChildren so unchanged child tables referencing a dropped parent are scanned by default dolt_verify_constraints().
  • In test/doltlite_fk_metadata.test:
    • Added regression tests covering both implicit (REFERENCES p) and explicit (REFERENCES p(id)) foreign keys with dropped parent tables for empty child tables, NULL FK rows, and non-NULL orphaned rows under dolt_verify_constraints(), dolt_verify_constraints('--all'), and dolt_merge().

Testing

  • Built build/doltlite and build/testfixture.
  • Passed TCL test suites: doltlite_fk_metadata, doltlite_fk_lookup, doltlite_fk_parent_affinity, doltlite_merge_dropped_fk, doltlite_constraint_violation_json, doltlite_constraint_rowid, doltlite_constraint_temp_shadow, doltlite_merge_constraint_prune, doltlite_nonlocal_tables, doltlite_workspace_fk, doltlite_workspace_shadowed_fk.
  • Passed lint checks: lint_layers.sh, lint_no_raw_os_fileio.sh, lint_ref_writers.sh, lint_prolly_guards.sh, lint_suite_finish_exit.sh, lint_new_table_am.sh, lint_native_test_helpers.sh.

When a foreign-key parent table is absent from the current catalog (and
not a nonlocal table), skip parent PK backfill and omit the NOT EXISTS
subquery against the missing parent table so empty child tables and rows
with NULL FK columns yield 0 violations without error, while non-NULL
orphaned child rows are recorded as foreign key violations (tolerating
NULL ReferencedColumns entries when the FK omitted explicit parent
column names).

In dolt_verify_constraints(), also pass tables dropped since HEAD to
appendFkChildren() so unchanged child tables referencing a dropped
parent are included in the default scan.

Fixes #5808
@github-actions

github-actions Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Gate: success · CI run

Engine counters: success

Performance hotspots

PR-base gates: 1.25× per workload and 1.15× per section/suite, with a 10 ms minimum regression and confirmation across three attempts. Stock ratios expose standing gaps and are reported separately.

Retained workloads report fixed batches; xN in a workload name is the number of repetitions.

A workload marked ×N times N repetitions as one batch, each after the same untimed warm-up, so small workloads clear the 10 ms floor; its ms are the batch total.

Add Column With Default

#3233: deferred to the storage-format upgrade.

Workload PR base ms Candidate ms Candidate/base Stock ms Candidate/stock
add_column_default 78.940 78.867 1.00× 3.499 22.54×

Wide Row Trade-offs

Wide values are read from disk whenever they are fetched until they move out of band: #3325. 8,192 rows per table, 4 MiB cache (768 KiB for wide_thrash_*). *_small reads only the small columns; *_blob reads the payload. Stock is SQLite.

Workload PR base ms Candidate ms Candidate/base Stock ms Candidate/stock
wide_p4096_scan_small ×200 175.372 174.317 0.99× 246.053 0.71×
wide_p4096_point_small ×50 152.046 150.208 0.99× 151.003 0.99×
wide_p4096_point_blob ×5 159.940 157.502 0.98× 43.429 3.63×
wide_p16384_scan_blob ×3 244.243 243.941 1.00× 88.717 2.75×
wide_p16384_point_blob ×3 247.291 244.914 0.99× 58.181 4.21×
wide_p16384_update_small ×8 194.018 193.506 1.00× 134.724 1.44×
wide_p16384_index_fetch_small ×160 140.032 135.376 0.97× 73.280 1.85×
wide_thrash_p16384_index_fetch_small ×10 267.009 266.355 1.00× 8.349 31.90×

Uncached Reads

65,536 rows with 1024 B payloads, about 68 MB, under a 4 MiB cache: every chunk read is verified against its BLAKE3 content address, while SQLite reads the same pages from the OS cache (#3408). Stock is SQLite.

Workload PR base ms Candidate ms Candidate/base Stock ms Candidate/stock
uncached_scan_small 81.786 80.891 0.99× 24.094 3.36×
uncached_scan_payload 85.524 84.234 0.98× 28.386 2.97×
uncached_point_lookups 97.414 98.229 1.01× 30.909 3.18×
uncached_index_fetch 71.812 72.626 1.01× 21.146 3.43×
uncached_update 89.618 89.425 1.00× 24.560 3.64×

Primary Key Index Rewrites

Secondary index entries carry the primary key, so changing a non-integer key rewrites every index entry of the row, while SQLite's indexes point at an unchanged rowid; the no-index and integer-key cases are the controls (#3419). Fixed workloads use 65,536 rows with 256 B payloads; retained workloads use the parameters in their linked issues. Each timed statement runs in a transaction that rolls back. Stock is SQLite.

Workload PR base ms Candidate ms Candidate/base Stock ms Candidate/stock
pk_rewrite_text_no_indexes 134.435 136.662 1.02× 100.318 1.36×
pk_rewrite_text_three_indexes 424.798 423.801 1.00× 100.111 4.23×
pk_rewrite_integer_three_indexes 343.962 332.573 0.97× 247.909 1.34×

Text Key Index Fetches

Rows are clustered by their primary key and there is no rowid, so a non-covering index fetch searches the table by the key the index entry carries; a text key costs a byte-wise search where SQLite seeks an integer rowid. The integer-key case is the control (#3492). Fixed workloads use 65,536 rows with 256 B payloads; retained workloads use the parameters in their linked issues. Each timed statement runs in a transaction that rolls back. Stock is SQLite.

Workload PR base ms Candidate ms Candidate/base Stock ms Candidate/stock
key_fetch_text ×15 152.018 151.035 0.99× 69.468 2.17×
key_fetch_integer ×20 147.918 143.348 0.97× 90.520 1.58×

Pending Edit Map

Uncommitted edits live in a sorted pending map: writes pay to fill it, and reads in the transaction merge it with the tree and skip its deletes. The file-backed update and live-row probes are the controls (#3418). Fixed workloads use 65,536 rows with 256 B payloads; retained workloads use the parameters in their linked issues. Each timed statement runs in a transaction that rolls back. Stock is SQLite.

Workload PR base ms Candidate ms Candidate/base Stock ms Candidate/stock
pending_update_memory ×4 227.300 223.374 0.98× 92.427 2.42×
pending_update_payload_memory ×3 205.865 206.211 1.00× 99.575 2.07×
pending_update_file ×4 229.675 224.712 0.98× 155.181 1.45×
pending_index_probes_live ×14 147.870 146.076 0.99× 79.395 1.84×
pending_index_probes_deleted ×16 177.152 175.437 0.99× 58.555 3.00×
wide_text_update_memory_x1 688.864 697.239 1.01× 205.997 3.38×

In Transaction with Mutations

Each timed statement follows an untimed mutation in the same transaction; rollback is untimed.

Workload PR base ms Candidate ms Candidate/base Stock ms Candidate/stock
text_pk_range_after_update_x4 375.115 371.648 0.99× 82.263 4.52×

@github-actions

github-actions Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

DoltLite performance vs PR base

  • Baseline: a216cf452f827821f8d9bc04452dff69da2e46c8
  • Candidate: 571124bcae5ef3496c379ef59b5c932b5f6cf7e5
  • Overall mean ratio: 0.986x
  • Gate result: PASS
  • Gates: individual > 1.25x with more than 10.00ms regression; section, suite, or overall mean of workload ratios > 1.15x with the same minimum total delta
  • vc individual gate: > 1.50x with more than 50.00ms regression
  • Confirmed failed gates: none
  • Automatic retries: none
Suite Workloads Mean ratio Result
blobpk 69 0.984x PASS
compositepk 69 0.989x PASS
int 69 0.986x PASS
textpk 69 0.982x PASS
vc 17 0.996x PASS
blobpk details
Section Test Baseline Candidate Delta Ratio Result
mem_reads oltp_point_select 24.26ms 24.22ms -36us 0.999x PASS
mem_reads oltp_range_select 11.97ms 11.61ms -352us 0.971x PASS
mem_reads oltp_sum_range 11.43ms 11.02ms -404us 0.965x PASS
mem_reads oltp_order_range 2.54ms 2.46ms -80us 0.968x PASS
mem_reads oltp_distinct_range 3.24ms 3.16ms -79us 0.976x PASS
mem_reads oltp_index_scan 4.68ms 4.64ms -41us 0.991x PASS
mem_reads select_random_points 16.65ms 16.46ms -191us 0.989x PASS
mem_reads select_random_ranges 4.50ms 4.52ms +21us 1.005x PASS
mem_reads covering_index_scan 7.63ms 7.50ms -121us 0.984x PASS
mem_reads groupby_scan 25.38ms 24.64ms -736us 0.971x PASS
mem_reads index_join 8.40ms 8.36ms -40us 0.995x PASS
mem_reads index_join_scan 5.77ms 5.60ms -172us 0.970x PASS
mem_reads types_table_scan 640.06ms 590.35ms -49.71ms 0.922x PASS
mem_reads table_scan 721.49ms 646.48ms -75.01ms 0.896x PASS
mem_reads oltp_read_only 101.04ms 101.12ms +78us 1.001x PASS
mem_writes oltp_bulk_insert 199.72ms 201.20ms +1.48ms 1.007x PASS
mem_writes oltp_insert 24.65ms 24.79ms +144us 1.006x PASS
mem_writes oltp_update_index 94.89ms 94.30ms -593us 0.994x PASS
mem_writes oltp_update_non_index 55.10ms 55.30ms +196us 1.004x PASS
mem_writes oltp_delete_insert 69.17ms 69.85ms +686us 1.010x PASS
mem_writes oltp_write_only 40.06ms 39.65ms -408us 0.990x PASS
mem_writes types_delete_insert 33.22ms 33.67ms +451us 1.014x PASS
mem_writes oltp_read_write 96.78ms 96.75ms -33us 1.000x PASS
file_reads oltp_point_select 29.91ms 29.70ms -209us 0.993x PASS
file_reads oltp_range_select 12.81ms 12.62ms -192us 0.985x PASS
file_reads oltp_sum_range 12.26ms 11.95ms -309us 0.975x PASS
file_reads oltp_order_range 2.72ms 2.65ms -72us 0.974x PASS
file_reads oltp_distinct_range 3.39ms 3.31ms -76us 0.978x PASS
file_reads oltp_index_scan 5.39ms 5.38ms -2us 1.000x PASS
file_reads select_random_points 18.63ms 18.54ms -88us 0.995x PASS
file_reads select_random_ranges 5.17ms 5.28ms +108us 1.021x PASS
file_reads covering_index_scan 8.29ms 8.19ms -104us 0.987x PASS
file_reads groupby_scan 25.82ms 24.89ms -924us 0.964x PASS
file_reads index_join 9.06ms 8.96ms -95us 0.990x PASS
file_reads index_join_scan 5.94ms 5.69ms -251us 0.958x PASS
file_reads types_table_scan 651.26ms 599.33ms -51.94ms 0.920x PASS
file_reads table_scan 730.71ms 659.65ms -71.05ms 0.903x PASS
file_reads oltp_read_only 109.86ms 109.14ms -718us 0.993x PASS
file_writes oltp_bulk_insert 209.72ms 212.42ms +2.70ms 1.013x PASS
file_writes oltp_insert 28.17ms 28.31ms +143us 1.005x PASS
file_writes oltp_update_index 104.89ms 101.66ms -3.23ms 0.969x PASS
file_writes oltp_update_non_index 65.69ms 65.56ms -136us 0.998x PASS
file_writes oltp_delete_insert 78.87ms 78.76ms -110us 0.999x PASS
file_writes oltp_write_only 49.23ms 48.92ms -305us 0.994x PASS
file_writes types_delete_insert 40.22ms 39.62ms -596us 0.985x PASS
file_writes oltp_read_write 103.48ms 103.36ms -117us 0.999x PASS
ac_reads oltp_point_select 29.43ms 29.21ms -214us 0.993x PASS
ac_reads oltp_range_select 12.77ms 12.34ms -430us 0.966x PASS
ac_reads oltp_sum_range 12.10ms 11.74ms -358us 0.970x PASS
ac_reads oltp_order_range 2.67ms 2.59ms -81us 0.970x PASS
ac_reads oltp_distinct_range 3.37ms 3.26ms -103us 0.969x PASS
ac_reads oltp_index_scan 5.27ms 5.23ms -36us 0.993x PASS
ac_reads select_random_points 17.82ms 17.83ms +19us 1.001x PASS
ac_reads select_random_ranges 5.05ms 5.11ms +56us 1.011x PASS
ac_reads covering_index_scan 8.25ms 8.08ms -166us 0.980x PASS
ac_reads groupby_scan 25.54ms 24.75ms -793us 0.969x PASS
ac_reads index_join 8.57ms 8.41ms -155us 0.982x PASS
ac_reads index_join_scan 5.46ms 5.71ms +252us 1.046x PASS
ac_reads types_table_scan 628.95ms 580.55ms -48.40ms 0.923x PASS
ac_reads table_scan 713.84ms 645.66ms -68.18ms 0.904x PASS
ac_reads oltp_read_only 107.67ms 105.17ms -2.50ms 0.977x PASS
ac_writes oltp_bulk_insert_ac 12.70ms 12.68ms -24us 0.998x PASS
ac_writes oltp_insert_ac 22.26ms 22.43ms +167us 1.008x PASS
ac_writes oltp_update_index_ac 31.64ms 31.40ms -236us 0.993x PASS
ac_writes oltp_update_non_index_ac 16.48ms 16.58ms +94us 1.006x PASS
ac_writes oltp_delete_insert_ac 23.81ms 24.06ms +250us 1.011x PASS
ac_writes oltp_write_only_ac 23.34ms 23.16ms -179us 0.992x PASS
ac_writes types_delete_insert_ac 16.56ms 16.67ms +116us 1.007x PASS
ac_writes oltp_read_write_ac 27.85ms 28.24ms +390us 1.014x PASS
compositepk details
Section Test Baseline Candidate Delta Ratio Result
mem_reads oltp_point_select 23.48ms 23.43ms -56us 0.998x PASS
mem_reads oltp_range_select 12.39ms 11.73ms -664us 0.946x PASS
mem_reads oltp_sum_range 11.95ms 11.82ms -129us 0.989x PASS
mem_reads oltp_order_range 2.22ms 2.19ms -22us 0.990x PASS
mem_reads oltp_distinct_range 2.72ms 2.69ms -26us 0.990x PASS
mem_reads oltp_index_scan 3.60ms 3.60ms +3us 1.001x PASS
mem_reads select_random_points 16.25ms 16.45ms +207us 1.013x PASS
mem_reads select_random_ranges 4.68ms 4.60ms -78us 0.983x PASS
mem_reads covering_index_scan 5.60ms 5.49ms -110us 0.980x PASS
mem_reads groupby_scan 21.11ms 20.55ms -559us 0.974x PASS
mem_reads index_join 6.22ms 6.05ms -165us 0.973x PASS
mem_reads index_join_scan 4.37ms 4.46ms +95us 1.022x PASS
mem_reads types_table_scan 484.91ms 478.71ms -6.20ms 0.987x PASS
mem_reads table_scan 546.96ms 538.90ms -8.05ms 0.985x PASS
mem_reads oltp_read_only 85.23ms 83.58ms -1.65ms 0.981x PASS
mem_writes oltp_bulk_insert 192.79ms 191.68ms -1.11ms 0.994x PASS
mem_writes oltp_insert 20.02ms 19.30ms -713us 0.964x PASS
mem_writes oltp_update_index 69.82ms 69.72ms -99us 0.999x PASS
mem_writes oltp_update_non_index 47.45ms 45.46ms -1.99ms 0.958x PASS
mem_writes oltp_delete_insert 50.22ms 49.80ms -414us 0.992x PASS
mem_writes oltp_write_only 30.49ms 30.34ms -151us 0.995x PASS
mem_writes types_delete_insert 25.37ms 25.35ms -23us 0.999x PASS
mem_writes oltp_read_write 76.50ms 76.04ms -460us 0.994x PASS
file_reads oltp_point_select 34.76ms 34.82ms +57us 1.002x PASS
file_reads oltp_range_select 13.26ms 12.91ms -347us 0.974x PASS
file_reads oltp_sum_range 12.83ms 12.75ms -76us 0.994x PASS
file_reads oltp_order_range 2.40ms 2.35ms -52us 0.978x PASS
file_reads oltp_distinct_range 2.90ms 2.85ms -51us 0.982x PASS
file_reads oltp_index_scan 5.16ms 5.01ms -142us 0.972x PASS
file_reads select_random_points 18.25ms 17.86ms -385us 0.979x PASS
file_reads select_random_ranges 6.11ms 6.20ms +91us 1.015x PASS
file_reads covering_index_scan 7.33ms 7.22ms -107us 0.985x PASS
file_reads groupby_scan 21.32ms 20.95ms -372us 0.983x PASS
file_reads index_join 7.37ms 7.63ms +257us 1.035x PASS
file_reads index_join_scan 4.60ms 4.45ms -145us 0.968x PASS
file_reads types_table_scan 464.18ms 459.22ms -4.96ms 0.989x PASS
file_reads table_scan 522.28ms 525.19ms +2.91ms 1.006x PASS
file_reads oltp_read_only 104.35ms 103.15ms -1.20ms 0.988x PASS
file_writes oltp_bulk_insert 229.92ms 229.45ms -474us 0.998x PASS
file_writes oltp_insert 30.07ms 28.28ms -1.78ms 0.941x PASS
file_writes oltp_update_index 127.90ms 123.83ms -4.06ms 0.968x PASS
file_writes oltp_update_non_index 91.58ms 91.49ms -95us 0.999x PASS
file_writes oltp_delete_insert 107.67ms 107.78ms +112us 1.001x PASS
file_writes oltp_write_only 79.60ms 79.30ms -302us 0.996x PASS
file_writes types_delete_insert 59.74ms 59.79ms +55us 1.001x PASS
file_writes oltp_read_write 126.42ms 126.19ms -226us 0.998x PASS
ac_reads oltp_point_select 36.78ms 36.23ms -542us 0.985x PASS
ac_reads oltp_range_select 13.91ms 13.39ms -523us 0.962x PASS
ac_reads oltp_sum_range 13.49ms 13.10ms -394us 0.971x PASS
ac_reads oltp_order_range 2.52ms 2.52ms -9us 0.996x PASS
ac_reads oltp_distinct_range 3.02ms 2.96ms -51us 0.983x PASS
ac_reads oltp_index_scan 5.53ms 5.57ms +34us 1.006x PASS
ac_reads select_random_points 18.84ms 18.21ms -627us 0.967x PASS
ac_reads select_random_ranges 6.24ms 6.42ms +181us 1.029x PASS
ac_reads covering_index_scan 7.26ms 7.20ms -70us 0.990x PASS
ac_reads groupby_scan 21.67ms 21.18ms -492us 0.977x PASS
ac_reads index_join 7.74ms 7.97ms +235us 1.030x PASS
ac_reads index_join_scan 4.92ms 4.91ms -4us 0.999x PASS
ac_reads types_table_scan 481.77ms 467.15ms -14.62ms 0.970x PASS
ac_reads table_scan 537.01ms 532.74ms -4.27ms 0.992x PASS
ac_reads oltp_read_only 108.27ms 106.89ms -1.38ms 0.987x PASS
ac_writes oltp_bulk_insert_ac 24.69ms 24.60ms -89us 0.996x PASS
ac_writes oltp_insert_ac 34.56ms 34.46ms -97us 0.997x PASS
ac_writes oltp_update_index_ac 47.98ms 47.84ms -141us 0.997x PASS
ac_writes oltp_update_non_index_ac 29.92ms 29.49ms -434us 0.985x PASS
ac_writes oltp_delete_insert_ac 38.55ms 38.94ms +387us 1.010x PASS
ac_writes oltp_write_only_ac 37.75ms 37.66ms -90us 0.998x PASS
ac_writes types_delete_insert_ac 35.70ms 35.70ms +3us 1.000x PASS
ac_writes oltp_read_write_ac 41.60ms 40.54ms -1.06ms 0.975x PASS
int details
Section Test Baseline Candidate Delta Ratio Result
mem_reads oltp_point_select 29.22ms 29.00ms -213us 0.993x PASS
mem_reads oltp_range_select 12.79ms 11.62ms -1.18ms 0.908x PASS
mem_reads oltp_sum_range 11.09ms 10.79ms -297us 0.973x PASS
mem_reads oltp_order_range 2.79ms 2.77ms -18us 0.994x PASS
mem_reads oltp_distinct_range 3.91ms 3.83ms -79us 0.980x PASS
mem_reads oltp_index_scan 5.13ms 5.15ms +16us 1.003x PASS
mem_reads select_random_points 11.39ms 11.44ms +42us 1.004x PASS
mem_reads select_random_ranges 5.04ms 5.00ms -43us 0.991x PASS
mem_reads covering_index_scan 11.26ms 11.10ms -161us 0.986x PASS
mem_reads groupby_scan 32.98ms 30.81ms -2.18ms 0.934x PASS
mem_reads index_join 8.17ms 8.30ms +126us 1.015x PASS
mem_reads index_join_scan 5.35ms 5.38ms +21us 1.004x PASS
mem_reads types_table_scan 770.11ms 771.39ms +1.28ms 1.002x PASS
mem_reads table_scan 913.98ms 868.63ms -45.35ms 0.950x PASS
mem_reads oltp_read_only 119.05ms 115.57ms -3.47ms 0.971x PASS
mem_writes oltp_bulk_insert 271.03ms 275.04ms +4.01ms 1.015x PASS
mem_writes oltp_insert 26.50ms 26.40ms -102us 0.996x PASS
mem_writes oltp_update_index 90.43ms 90.57ms +143us 1.002x PASS
mem_writes oltp_update_non_index 55.53ms 55.33ms -207us 0.996x PASS
mem_writes oltp_delete_insert 74.40ms 74.57ms +170us 1.002x PASS
mem_writes oltp_write_only 44.01ms 43.62ms -391us 0.991x PASS
mem_writes types_delete_insert 32.51ms 32.33ms -184us 0.994x PASS
mem_writes oltp_read_write 103.96ms 102.90ms -1.05ms 0.990x PASS
file_reads oltp_point_select 46.32ms 46.35ms +30us 1.001x PASS
file_reads oltp_range_select 14.64ms 13.44ms -1.20ms 0.918x PASS
file_reads oltp_sum_range 12.97ms 12.70ms -277us 0.979x PASS
file_reads oltp_order_range 3.08ms 3.03ms -48us 0.984x PASS
file_reads oltp_distinct_range 4.22ms 4.07ms -147us 0.965x PASS
file_reads oltp_index_scan 7.29ms 7.26ms -30us 0.996x PASS
file_reads select_random_points 13.26ms 13.14ms -125us 0.991x PASS
file_reads select_random_ranges 6.98ms 6.89ms -81us 0.988x PASS
file_reads covering_index_scan 13.46ms 13.22ms -234us 0.983x PASS
file_reads groupby_scan 33.07ms 31.42ms -1.64ms 0.950x PASS
file_reads index_join 9.77ms 9.77ms -7us 0.999x PASS
file_reads index_join_scan 5.71ms 5.72ms +4us 1.001x PASS
file_reads types_table_scan 774.55ms 775.60ms +1.05ms 1.001x PASS
file_reads table_scan 910.59ms 870.07ms -40.52ms 0.955x PASS
file_reads oltp_read_only 145.27ms 140.78ms -4.49ms 0.969x PASS
file_writes oltp_bulk_insert 288.67ms 285.89ms -2.78ms 0.990x PASS
file_writes oltp_insert 30.20ms 30.09ms -105us 0.997x PASS
file_writes oltp_update_index 105.41ms 105.69ms +278us 1.003x PASS
file_writes oltp_update_non_index 62.27ms 62.20ms -66us 0.999x PASS
file_writes oltp_delete_insert 85.03ms 82.58ms -2.45ms 0.971x PASS
file_writes oltp_write_only 54.61ms 54.81ms +202us 1.004x PASS
file_writes types_delete_insert 38.92ms 38.95ms +22us 1.001x PASS
file_writes oltp_read_write 116.70ms 115.49ms -1.21ms 0.990x PASS
ac_reads oltp_point_select 46.28ms 45.89ms -388us 0.992x PASS
ac_reads oltp_range_select 14.46ms 13.38ms -1.08ms 0.925x PASS
ac_reads oltp_sum_range 12.96ms 12.83ms -132us 0.990x PASS
ac_reads oltp_order_range 3.09ms 3.03ms -56us 0.982x PASS
ac_reads oltp_distinct_range 4.22ms 4.08ms -139us 0.967x PASS
ac_reads oltp_index_scan 7.27ms 7.31ms +40us 1.006x PASS
ac_reads select_random_points 13.28ms 13.25ms -33us 0.998x PASS
ac_reads select_random_ranges 6.95ms 6.89ms -54us 0.992x PASS
ac_reads covering_index_scan 13.61ms 13.16ms -442us 0.968x PASS
ac_reads groupby_scan 32.82ms 31.19ms -1.63ms 0.950x PASS
ac_reads index_join 9.81ms 9.88ms +74us 1.008x PASS
ac_reads index_join_scan 5.68ms 5.65ms -24us 0.996x PASS
ac_reads types_table_scan 775.65ms 774.73ms -928us 0.999x PASS
ac_reads table_scan 909.43ms 865.96ms -43.47ms 0.952x PASS
ac_reads oltp_read_only 144.86ms 140.97ms -3.89ms 0.973x PASS
ac_writes oltp_bulk_insert_ac 31.06ms 30.81ms -251us 0.992x PASS
ac_writes oltp_insert_ac 41.14ms 41.90ms +766us 1.019x PASS
ac_writes oltp_update_index_ac 55.49ms 56.60ms +1.11ms 1.020x PASS
ac_writes oltp_update_non_index_ac 36.95ms 37.31ms +361us 1.010x PASS
ac_writes oltp_delete_insert_ac 46.81ms 46.63ms -179us 0.996x PASS
ac_writes oltp_write_only_ac 45.82ms 45.08ms -749us 0.984x PASS
ac_writes types_delete_insert_ac 36.29ms 36.61ms +318us 1.009x PASS
ac_writes oltp_read_write_ac 52.38ms 53.09ms +714us 1.014x PASS
textpk details
Section Test Baseline Candidate Delta Ratio Result
mem_reads oltp_point_select 25.38ms 24.91ms -470us 0.981x PASS
mem_reads oltp_range_select 12.33ms 12.15ms -183us 0.985x PASS
mem_reads oltp_sum_range 12.13ms 11.61ms -526us 0.957x PASS
mem_reads oltp_order_range 2.62ms 2.56ms -57us 0.978x PASS
mem_reads oltp_distinct_range 3.35ms 3.25ms -94us 0.972x PASS
mem_reads oltp_index_scan 4.79ms 4.72ms -66us 0.986x PASS
mem_reads select_random_points 17.85ms 17.89ms +41us 1.002x PASS
mem_reads select_random_ranges 4.73ms 4.61ms -126us 0.973x PASS
mem_reads covering_index_scan 7.83ms 7.64ms -186us 0.976x PASS
mem_reads groupby_scan 26.02ms 25.05ms -968us 0.963x PASS
mem_reads index_join 8.36ms 8.35ms -12us 0.999x PASS
mem_reads index_join_scan 5.80ms 5.64ms -163us 0.972x PASS
mem_reads types_table_scan 631.10ms 580.88ms -50.22ms 0.920x PASS
mem_reads table_scan 721.24ms 654.03ms -67.20ms 0.907x PASS
mem_reads oltp_read_only 101.16ms 100.12ms -1.03ms 0.990x PASS
mem_writes oltp_bulk_insert 201.60ms 201.52ms -81us 1.000x PASS
mem_writes oltp_insert 24.36ms 24.43ms +73us 1.003x PASS
mem_writes oltp_update_index 96.46ms 94.64ms -1.82ms 0.981x PASS
mem_writes oltp_update_non_index 57.27ms 57.34ms +75us 1.001x PASS
mem_writes oltp_delete_insert 69.20ms 68.66ms -545us 0.992x PASS
mem_writes oltp_write_only 40.29ms 40.19ms -103us 0.997x PASS
mem_writes types_delete_insert 34.16ms 34.00ms -162us 0.995x PASS
mem_writes oltp_read_write 97.41ms 97.76ms +357us 1.004x PASS
file_reads oltp_point_select 30.16ms 29.91ms -251us 0.992x PASS
file_reads oltp_range_select 13.02ms 12.65ms -370us 0.972x PASS
file_reads oltp_sum_range 12.62ms 12.26ms -358us 0.972x PASS
file_reads oltp_order_range 2.69ms 2.65ms -44us 0.984x PASS
file_reads oltp_distinct_range 3.42ms 3.31ms -109us 0.968x PASS
file_reads oltp_index_scan 5.14ms 5.14ms -7us 0.999x PASS
file_reads select_random_points 18.00ms 17.74ms -263us 0.985x PASS
file_reads select_random_ranges 5.12ms 5.16ms +43us 1.008x PASS
file_reads covering_index_scan 8.23ms 8.12ms -108us 0.987x PASS
file_reads groupby_scan 25.93ms 24.98ms -956us 0.963x PASS
file_reads index_join 8.63ms 8.38ms -252us 0.971x PASS
file_reads index_join_scan 5.66ms 5.83ms +166us 1.029x PASS
file_reads types_table_scan 639.49ms 589.67ms -49.81ms 0.922x PASS
file_reads table_scan 725.53ms 657.29ms -68.24ms 0.906x PASS
file_reads oltp_read_only 110.61ms 109.20ms -1.41ms 0.987x PASS
file_writes oltp_bulk_insert 215.48ms 215.56ms +85us 1.000x PASS
file_writes oltp_insert 29.06ms 29.09ms +28us 1.001x PASS
file_writes oltp_update_index 111.19ms 110.44ms -752us 0.993x PASS
file_writes oltp_update_non_index 67.43ms 67.19ms -242us 0.996x PASS
file_writes oltp_delete_insert 80.88ms 80.41ms -470us 0.994x PASS
file_writes oltp_write_only 51.23ms 50.41ms -821us 0.984x PASS
file_writes types_delete_insert 41.93ms 41.84ms -93us 0.998x PASS
file_writes oltp_read_write 105.86ms 105.18ms -678us 0.994x PASS
ac_reads oltp_point_select 30.08ms 29.89ms -197us 0.993x PASS
ac_reads oltp_range_select 13.03ms 12.72ms -303us 0.977x PASS
ac_reads oltp_sum_range 12.58ms 12.22ms -359us 0.971x PASS
ac_reads oltp_order_range 2.71ms 2.63ms -84us 0.969x PASS
ac_reads oltp_distinct_range 3.41ms 3.33ms -88us 0.974x PASS
ac_reads oltp_index_scan 5.23ms 5.25ms +26us 1.005x PASS
ac_reads select_random_points 18.03ms 18.12ms +94us 1.005x PASS
ac_reads select_random_ranges 5.11ms 5.11ms +8us 1.002x PASS
ac_reads covering_index_scan 8.35ms 8.18ms -172us 0.979x PASS
ac_reads groupby_scan 26.07ms 25.17ms -900us 0.965x PASS
ac_reads index_join 8.48ms 8.34ms -139us 0.984x PASS
ac_reads index_join_scan 5.92ms 5.69ms -222us 0.962x PASS
ac_reads types_table_scan 638.50ms 589.45ms -49.05ms 0.923x PASS
ac_reads table_scan 731.35ms 662.99ms -68.36ms 0.907x PASS
ac_reads oltp_read_only 109.88ms 109.82ms -57us 0.999x PASS
ac_writes oltp_bulk_insert_ac 12.92ms 12.87ms -50us 0.996x PASS
ac_writes oltp_insert_ac 19.24ms 19.09ms -156us 0.992x PASS
ac_writes oltp_update_index_ac 32.02ms 32.01ms -14us 1.000x PASS
ac_writes oltp_update_non_index_ac 16.74ms 16.63ms -109us 0.993x PASS
ac_writes oltp_delete_insert_ac 26.02ms 26.15ms +133us 1.005x PASS
ac_writes oltp_write_only_ac 24.23ms 23.95ms -277us 0.989x PASS
ac_writes types_delete_insert_ac 17.10ms 17.58ms +482us 1.028x PASS
ac_writes oltp_read_write_ac 30.36ms 29.50ms -866us 0.971x PASS
vc details
Section Test Baseline Candidate Delta Ratio Result
vc status_clean_many_tables 21.60ms 21.69ms +93us 1.004x PASS
vc status_dirty_many_tables 24.09ms 23.99ms -94us 0.996x PASS
vc diff_regular_working_one_table 20.79ms 20.42ms -368us 0.982x PASS
vc diff_regular_working_many_tables 27.13ms 26.94ms -184us 0.993x PASS
vc diff_stat_working_many_tables 26.84ms 26.92ms +77us 1.003x PASS
vc diff_schema_working_many_tables 27.02ms 27.17ms +146us 1.005x PASS
vc branch_list_many_branches 14.99ms 14.90ms -87us 0.994x PASS
vc branch_create_delete 16.02ms 15.97ms -50us 0.997x PASS
vc at_literal_deep_history 15.89ms 15.87ms -20us 0.999x PASS
vc diff_literal_deep_history 15.85ms 15.80ms -54us 0.997x PASS
vc history_literal_deep_history 16.43ms 16.31ms -124us 0.992x PASS
vc checkout_branch_clean 21.84ms 21.32ms -514us 0.976x PASS
vc merge_data_no_conflicts 17.65ms 17.62ms -38us 0.998x PASS
vc merge_data_secondary_index 571.73ms 569.98ms -1.75ms 0.997x PASS
vc merge_schema_no_conflicts 14.43ms 14.41ms -17us 0.999x PASS
vc merge_data_conflicts 19.87ms 19.90ms +24us 1.001x PASS
vc merge_data_conflicts_with_resolve 20.45ms 20.41ms -46us 0.998x PASS
file_remote copy_fsync 46.04ms 45.55ms -495us 0.989x CONTROL
file_remote push_initial 289.60ms 291.12ms +1.52ms 1.005x PASS
file_remote clone_initial 259.06ms 259.71ms +659us 1.003x PASS
file_remote push_noop 392us 356us -36us 0.908x PASS
file_remote fetch_noop 96us 87us -9us 0.906x PASS
file_remote push_incremental 40.27ms 40.14ms -127us 0.997x PASS
file_remote fetch_incremental 49.06ms 48.68ms -382us 0.992x PASS
file_remote pull_fast_forward 50.98ms 50.28ms -703us 0.986x PASS

File remotes: 100 MB, 5 paired runs; 25% + 5ms individual / 15% aggregate gates, three-attempt confirmation.

All relative performance gates passed.

@github-actions

Copy link
Copy Markdown
Contributor

DoltLite source coverage

Metric Covered Total Coverage
Lines 89851 101742 88.31%
Branches 47267 65838 71.79%
Functions 3891 4095 95.02%

Merged 152 pooled raw profiles from the distributed Linux correctness jobs.

Per-file coverage (108 files)
File Lines Branches Functions
src/btree_orig_api.c 93.99% 87.50% 95.40%
src/chunk_file.c 100.00% 100.00% 100.00%
src/chunk_index.c 93.45% 78.68% 94.59%
src/chunk_index_spool.c 97.38% 84.62% 100.00%
src/chunk_refs.c 97.61% 81.84% 100.00%
src/chunk_staging.c 98.20% 83.13% 100.00%
src/chunk_store.c 91.51% 76.83% 100.00%
src/chunk_store_commit.c 90.72% 71.56% 100.00%
src/chunk_store_lock.c 92.95% 75.20% 100.00%
src/chunk_store_refs_api.c 94.91% 80.04% 100.00%
src/chunk_wal.c 87.60% 65.90% 94.44%
src/doltlite.c 100.00% 100.00% 100.00%
src/doltlite_add.c 89.55% 71.19% 100.00%
src/doltlite_ancestor.c 92.65% 78.10% 100.00%
src/doltlite_at.c 90.36% 71.10% 100.00%
src/doltlite_blame.c 82.84% 64.55% 100.00%
src/doltlite_branch.c 86.15% 77.90% 100.00%
src/doltlite_branches.c 91.12% 74.58% 93.75%
src/doltlite_checkout.c 86.90% 71.16% 94.59%
src/doltlite_checkout_dot.c 94.61% 76.89% 100.00%
src/doltlite_cherry_pick.c 92.45% 74.26% 100.00%
src/doltlite_chunk_source.c 88.34% 72.26% 97.67%
src/doltlite_chunk_walk.c 93.78% 67.57% 100.00%
src/doltlite_clean.c 95.64% 71.84% 100.00%
src/doltlite_cmd.c 84.59% 75.06% 86.73%
src/doltlite_commit.c 95.70% 79.58% 100.00%
src/doltlite_commit_ancestors.c 97.72% 76.60% 100.00%
src/doltlite_commit_cmd.c 84.10% 73.66% 100.00%
src/doltlite_config.c 85.71% 77.05% 100.00%
src/doltlite_conflicts.c 90.76% 69.10% 97.53%
src/doltlite_constraint_violations.c 91.80% 63.87% 94.74%
src/doltlite_core.c 88.20% 74.51% 98.48%
src/doltlite_creds.c 89.79% 61.77% 100.00%
src/doltlite_dbpage.c 71.38% 48.48% 75.00%
src/doltlite_diff.c 90.30% 71.11% 97.06%
src/doltlite_diff_stat.c 92.51% 72.76% 96.61%
src/doltlite_diff_table.c 92.86% 76.26% 100.00%
src/doltlite_docs.c 79.10% 37.50% 93.33%
src/doltlite_dump.c 89.06% 71.16% 100.00%
src/doltlite_engine_stats.c 88.89% 76.47% 90.91%
src/doltlite_framed.c 81.88% 66.50% 100.00%
src/doltlite_gc.c 78.67% 58.55% 88.00%
src/doltlite_hashof.c 81.31% 76.03% 100.00%
src/doltlite_history.c 88.94% 80.17% 100.00%
src/doltlite_http_remote.c 89.28% 67.24% 95.00%
src/doltlite_ignore.c 70.51% 51.53% 89.66%
src/doltlite_log.c 94.21% 76.04% 100.00%
src/doltlite_merge.c 94.73% 72.35% 100.00%
src/doltlite_merge_cmd.c 83.68% 70.08% 90.91%
src/doltlite_merge_constraints.c 91.89% 77.43% 100.00%
src/doltlite_merge_constraints_check.c 89.49% 68.37% 100.00%
src/doltlite_merge_constraints_fk.c 85.06% 62.21% 95.74%
src/doltlite_merge_constraints_notnull.c 95.31% 60.71% 100.00%
src/doltlite_merge_constraints_strict.c 90.76% 65.00% 100.00%
src/doltlite_merge_constraints_unique.c 86.71% 61.26% 100.00%
src/doltlite_merge_generated.c 97.51% 84.85% 100.00%
src/doltlite_merge_index_key.c 87.64% 68.50% 100.00%
src/doltlite_merge_pass1.c 93.54% 76.30% 100.00%
src/doltlite_merge_pass2.c 86.88% 71.65% 100.00%
src/doltlite_merge_predetect.c 91.21% 74.69% 97.14%
src/doltlite_merge_rebuild.c 95.90% 77.07% 100.00%
src/doltlite_merge_rows.c 90.19% 73.88% 100.00%
src/doltlite_merge_schema.c 92.21% 73.86% 98.08%
src/doltlite_merge_status.c 91.98% 73.53% 92.31%
src/doltlite_merge_vbase.c 76.39% 64.80% 94.74%
src/doltlite_nonlocal.c 94.90% 77.88% 100.00%
src/doltlite_patch.c 87.78% 65.84% 96.77%
src/doltlite_rebase.c 82.87% 62.47% 98.57%
src/doltlite_record.c 88.04% 72.98% 100.00%
src/doltlite_ref.c 97.41% 79.21% 100.00%
src/doltlite_remote.c 89.38% 68.55% 94.62%
src/doltlite_remote_sql.c 81.72% 70.83% 97.47%
src/doltlite_remotesrv.c 82.66% 73.41% 96.25%
src/doltlite_reset.c 90.01% 75.24% 100.00%
src/doltlite_revert.c 93.66% 75.29% 100.00%
src/doltlite_schema_diff.c 93.34% 69.63% 97.22%
src/doltlite_schemas.c 33.67% 25.69% 36.11%
src/doltlite_status.c 89.37% 73.56% 96.15%
src/doltlite_tag.c 90.69% 74.34% 94.44%
src/doltlite_tests.c 87.36% 72.94% 97.30%
src/doltlite_tls.c 87.06% 67.72% 100.00%
src/doltlite_verify_constraints.c 80.41% 65.95% 100.00%
src/doltlite_workspace.c 87.30% 69.07% 97.92%
src/pager_shim.c 65.00% 69.79% 41.61%
src/prolly_btree.c 89.91% 72.93% 94.74%
src/prolly_btree_catalog.c 84.54% 70.98% 98.02%
src/prolly_btree_cursor.c 95.66% 74.06% 100.00%
src/prolly_btree_cursor_count.c 81.60% 61.69% 100.00%
src/prolly_btree_cursor_payload.c 82.32% 64.09% 96.67%
src/prolly_btree_cursor_seek.c 90.32% 72.59% 100.00%
src/prolly_btree_mutation.c 90.57% 72.04% 98.25%
src/prolly_btree_orig.c 96.27% 78.12% 95.89%
src/prolly_btree_state.c 91.90% 65.93% 97.30%
src/prolly_btree_txn.c 88.23% 72.35% 99.12%
src/prolly_cache.c 95.68% 83.28% 100.00%
src/prolly_check.c 71.12% 68.06% 100.00%
src/prolly_chunker.c 95.39% 81.48% 100.00%
src/prolly_cursor.c 95.19% 90.34% 100.00%
src/prolly_diff.c 91.29% 79.53% 100.00%
src/prolly_hash.c 100.00% 100.00% 100.00%
src/prolly_hashset.c 94.39% 86.11% 100.00%
src/prolly_mutate.c 85.01% 74.40% 100.00%
src/prolly_mutmap.c 98.41% 89.47% 100.00%
src/prolly_node.c 91.07% 77.93% 100.00%
src/prolly_three_way_diff.c 95.88% 89.58% 100.00%
src/prolly_three_way_merge.c 88.54% 75.31% 100.00%
src/prolly_xxhash.c 100.00% 100.00% 100.00%
src/sortkey.c 94.43% 83.91% 100.00%

Download HTML and LCOV artifacts from this workflow run.

@timsehn
timsehn merged commit 74c7dd3 into master Nov 29, 2026
64 checks passed
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.

doltlite_merge_constraints_fk / dolt_verify_constraints: dropped parent table causes no-such-table error and default scan misses orphaned children

1 participant