PadRight

Appends characters to the input String until it reaches the desired length.

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

and a record such as:

{
  "name" : "john smith"
}

The following record path expression would append '@' characters to the input String:

RecordPath

Return value

padRight(/name, 15, '@')

john smith@@@@@