Skip to main content

mongodb_history_schema

Function mongodb_history_schema 

Source
pub fn mongodb_history_schema() -> SchemaRef
Expand description

Returns the Arrow schema of MongoDB change-history records.

ColumnTypeNullableContent
event_idUtf8noSHA-256 of deployment, collection UUID and resume token (or snapshot id and key)
event_versionInt32noMONGODB_HISTORY_VERSION
operationUtf8noServer operationType, or snapshot for copied documents
databaseUtf8noNamespace database
collectionUtf8yesNamespace collection (absent for dropDatabase/invalidate)
collection_uuidUtf8noBound collection UUID
document_keyUtf8yesCanonical Extended JSON document key
full_documentUtf8yesCanonical Extended JSON document image
update_descriptionUtf8yesCanonical Extended JSON update delta
event_detailsUtf8yesCanonical Extended JSON of every other event field
resume_tokenUtf8yesOpaque resume token JSON (absent for snapshot rows)
cluster_time_secondsInt64noEvent cluster time, or the snapshot read time
cluster_time_incrementInt64noCluster time increment
wall_timeTimestamp(us)yesServer wall time (millisecond precision)
txn_numberInt64yesTransaction number when the change belongs to a transaction
lsidUtf8yesCanonical Extended JSON transaction session id
snapshot_idUtf8yesSnapshot read time <seconds>.<increment> for snapshot rows