---
updatedAt: 2025-12-05T18:41:41.000Z
agentTools:
  projectIndex: https://docs.observeinc.com/llms.txt
---

# make_fields

```
make_fields(column: object, [entries: expression]+) -> object
```

Extend an existing object with new fields.

If one of the keys passed to `make_fields` already exists in the object, that key's old value will be overwritten by the value passed into `make_fields`.

# Domain

This is a scalar function (calculates a single output value for a single input row).

# Categories

* [Semistructured](function#semistructured-functions)

# Examples

<OpalCodeBlock code={
`make_col larger:make_fields(obj, key1:'value1', key2:'value2')
`}/>

Create a column 'larger' based on column 'obj' with two key value pairs added (existing fields with the same name will be replaced).