merge
Combines two records into a single record by merging their fields.
Description
The merge
function takes two records and returns a new record containing all
fields from both records. If both records contain the same field, the value from
the second record takes precedence.
Examples
Basic record merging
Handling overlapping fields
When fields exist in both records, the second record's values take precedence:
Handling null values
If either input is null, the input will be ignored.