# Datatable Operator

## Overview

Provide sample data as a table source (instead of referencing a live Snowflake table) with `datatable`.

```kusto
datatable [{...}, {...}, ...]
```

The `datatable` operator will likely be most useful during testing, but it can also be used in other situations, for example, when performing a `join` to create a simple Lookup Table. See an example of how to use the `join` operator with `datatable` on [Join Operator](/pantherflow/operators/join.md).

Because JSON is valid PantherFlow, it's possible to copy and paste a JSON object into a `datatable` statement.

A `datatable` is one of the [possible PantherFlow data sources](/pantherflow/statements.md#data-sources) and as such, can be used in any place a table is allowed.

## Example

```kusto
datatable [
    {"name": "paul.paulson", "favorite_food": "pineapple"},
    {"name": "samantha.samson", "favorite_food": "carrot"}
]
| where favorite_food == 'pineapple'
```

Result:

| favorite\_food | name         |
| -------------- | ------------ |
| pineapple      | paul.paulson |


---

# 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.panther.com/pantherflow/operators/datatable.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.
