hash

Converts a String using a hash algorithm. For example, given a schema such as:


{
  "type": "record",
  "name": "events",
  "fields": [
    { "name": "name", "type": "string" }
  ]
}

and a record such as:


{
  "name" : "John"
}

The following record path expression would hash the String using one of these, [SHA-384, SHA-224, SHA-256, MD2, SHA, SHA-512, MD5] algorithms.

RecordPath

Return value

hash(/name, 'MD5')

527bd5b5d689e2c32ae974c6229ff785