User Details
- User Since
- Jun 9 2022, 6:42 PM (217 w, 4 d)
- Availability
- Available
- LDAP User
- Unknown
- MediaWiki User
- XCollazo-WMF [ Global Accounts ]
Jun 12 2026
This is as far as I can get this before my leave. Docs may need to be updated with any changes that land before we to go prod with v1.
Associated brief diagram of the pipeline now at https://gerrit.wikimedia.org/r/c/analytics/refinery/source/+/1301381.
A first iteration of docs now available at https://wikitech.wikimedia.org/wiki/Data_Platform/Data_Lake/Edits/Mediawiki_history_incremental_v1.
(https://gerrit.wikimedia.org/r/c/analytics/refinery/source/+/1300876 is merged but still needs to be released and put in prod via refinery source bump on Airflow DAGs)
(I'm now boldly closing this phase I task. There will be opportunities to make this all more ergonomic on T428273: Incremental MediaWiki History Phase II, and indeed the feedback provided here will be the guiding principles for that work.)
Current schema for mediawiki_history_incremental_v1 (full reference)
Schema update — what changed since the original spec
I suspect this one is zh_min_nanwiki bad data.
Jun 11 2026
CC @AKhatun_WMF, as FYI, and to acknowledge that the whole row_update_dt dance from T428503 could definitely be better. Please chime in whether you think this approach would better address your use case?
While drafting this ticket, I realized that an implementation of this is significantly more complicated that I originally though.
Opening this as part of Phase I for consideration, but I think it would be totally fine if we move this for Phase II.
Opening this as part of Phase I for consideration, but I think it would be totally fine if we move this for Phase II.
For seeing this work thru, I am boldly assigning it to @APizzata-WMF, and setting @JAllemandou as co-assignee.
Re-opening and attaching to Phase II, as we continue to trip on the unstructured map. see T428503#12011591.
WAD in production. Love the new branching pattern, we should do similarly for MWCH, and for any new Iceberg tables that have multi-step data ingest!
Q: Are the daily back-patch MERGEs in MWHistoryDeltaWriter meant to guard against out-of-order re-runs, or is the monthly reconcile the only consistency backstop?
...
Mainly trying to understand whether downstream consumers can safely re-read/backfill a window between monthly reconciles.
Both DAGs WAD in production at https://airflow.wikimedia.org/home?tags=mediawiki_incremental_history.
CC @BTullis, for visibility.
Note that TABLESAMPLE is not deterministic, so we may want to do our own way of sampling here so that reruns are repeatable?
@Ottomata did you intent to move this one to Phase II?
@Ottomata Did you intent to move this one to Phase II as well?
We can wait the beginning of July and close the task?
Jun 10 2026
In short, if monthly load gets snapshot data till 31st May, and lands on 3rd June. Any visibility change events applied to old revisions 1 or 2 June gets lost. This is corrected in the next monthly load.
Similar to monthly reconcile logic, should the incremental row_update_dt also be -1 second?
Jun 9 2026
Implemented the populate-on-reconcile change discussed above:
We discussed the semantics of row_update_dt on today's sync up and agreed that to make this column more useful to other folks we should populate it when doing monthly reconciles as well (instead of setting it to NULL). The value should be the data_interval_end of the monthly reconcile job, or perhaps one second before? Will think about it a bit more.
Jun 8 2026
We have done multiple test runs ingesting data from event.mediawiki_user_change_dev0, and so far have found no data quality issues.
Jun 6 2026
Implemented WAP (Write-Audit-Publish) branching for both MWHistoryDeltaWriter and MWHistorySnapshotMerger.
Jun 5 2026
Added four fields to both MWHistoryDeltaWriter and MWHistorySnapshotMerger: