> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Apache Pinot SQL observations

> Read bounded ordered observations from a Pinot table.

Mount [`@bijectionhq/app-rest`](https://docs.bijection.com/integrations/native-rest#mount-and-bind) once
per table. Pass as `receivers.provider` a receiver bound to a TLS-enabled Pinot broker and use the
broker's single-stage SQL endpoint.

```ts theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
export const remote = providerEndpoint(
  "pinot.sql.observations", "https://pinot.example", "/query/sql", auth, data,
);
```

Use a principal limited to querying the selected table and seal its
credential for the receiver. Bind the receiver and the mount under the same `data` label.

```ts theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
{ profile: { mode: "provider", provider: "pinot.sql.observations",
  collection: "events", selection: "id", fields: ["city"], limit: 16 } }
```

Use a unique, non-null INT or LONG key in the JSON safe integer range and
up to fifteen additional columns. The connector submits one bounded SELECT
per page and checks broker exceptions and server participation before
landing up to 32 rows and 36 KiB. Each full page advances the exclusive key
boundary. A short page ends the sweep and the next sweep starts again.
Pages can observe concurrent writes. Missing keys remain.

[Pinot broker query API](https://docs.pinot.apache.org/reference/api-reference/query-api)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.