# Sample Rows

## &#x20;![](/files/jAdIESTTCBV7CufjsY33)Sample Rows

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

The Sample Rows transform retains a sample set of rows.

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

### Options

| Option            | Description                                                                                                                                                                                                           |
| ----------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Transform name    | the name for this transform                                                                                                                                                                                           |
| Lines range       | Specify a comma separated list of rows you want to sample. This list can contain single line numbers or line number ranges, e.g. `10,20,30,40,50..60` to sample rows 10, 20, 30, and 40, and all lines from 50 to 60. |
| Line nr fieldname | fieldname to store the line number                                                                                                                                                                                    |


---

# 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/samplerows.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.
