pub fn mongodb_history_schema() -> SchemaRefExpand description
Returns the Arrow schema of MongoDB change-history records.
| Column | Type | Nullable | Content |
|---|---|---|---|
event_id | Utf8 | no | SHA-256 of deployment, collection UUID and resume token (or snapshot id and key) |
event_version | Int32 | no | MONGODB_HISTORY_VERSION |
operation | Utf8 | no | Server operationType, or snapshot for copied documents |
database | Utf8 | no | Namespace database |
collection | Utf8 | yes | Namespace collection (absent for dropDatabase/invalidate) |
collection_uuid | Utf8 | no | Bound collection UUID |
document_key | Utf8 | yes | Canonical Extended JSON document key |
full_document | Utf8 | yes | Canonical Extended JSON document image |
update_description | Utf8 | yes | Canonical Extended JSON update delta |
event_details | Utf8 | yes | Canonical Extended JSON of every other event field |
resume_token | Utf8 | yes | Opaque resume token JSON (absent for snapshot rows) |
cluster_time_seconds | Int64 | no | Event cluster time, or the snapshot read time |
cluster_time_increment | Int64 | no | Cluster time increment |
wall_time | Timestamp(us) | yes | Server wall time (millisecond precision) |
txn_number | Int64 | yes | Transaction number when the change belongs to a transaction |
lsid | Utf8 | yes | Canonical Extended JSON transaction session id |
snapshot_id | Utf8 | yes | Snapshot read time <seconds>.<increment> for snapshot rows |