# Coalesce

## ![](/files/BuM0rQ8VkrNvhIz0IhkM) Coalesce

### Description <a href="#description" id="description"></a>

The Coalesce transform lets you list multiple fields and returns the first non-null value.

| Hop Engine | <sup>✓</sup> |
| ---------- | ------------ |
| Spark      | ?            |
| Flink      | ?            |
| Dataflow   | ?            |

### Options

| Option                          | Description                                                                                               |
| ------------------------------- | --------------------------------------------------------------------------------------------------------- |
| Transform name                  | <p>Name of the transform. <br><strong>Note</strong>: This name has to be unique in a single pipeline.</p> |
| Considered empty string as null | The transform can consider empty string as null.                                                          |

### Fields

Pick a list of fields to evaluate and specify a field name and type for the field output.

| Option       | Description                                                                                           |
| ------------ | ----------------------------------------------------------------------------------------------------- |
| Name         | The result field name, can overwrite an existing one.                                                 |
| Type         | The formats to convert the value into the chosen data type.                                           |
| Remove       | Remove input fields from the stream.                                                                  |
| Input fields | The order of the input fields listed in the columns determines the order in which they are evaluated. |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.primeur.com/data-shaper-1.21/knowing-the-data-shaper-designer/pipelines/transforms/coalesce.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
