# GridDisk

Returns the center H3 cell together with all cells within `k` grid steps of it.

## Signature

> gridDisk(h3Index, k)

| Arguments | Description                                                                       |
| --------- | --------------------------------------------------------------------------------- |
| `h3Index` | Center H3 index.                                                                  |
| `k`       | Non-negative grid distance from the center cell. `0` returns only the input cell. |

## Usage Examples

```sql
SELECT gridDisk(0x8928308280fffff, 0) AS cells
FROM ignoreMe;
```

| cells                  |
| ---------------------- |
| `[617700169958293503]` |


---

# 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.pinot.apache.org/functions/geospatial/griddisk.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.
