> ## 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 Druid SQL observations

> Read bounded ordered observations from a Druid datasource.

Mount [`@bijectionhq/app-rest`](https://docs.bijection.com/integrations/native-rest#mount-and-bind) once
per datasource and pass this receiver as `receivers.provider`.

```ts theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
const provider = providerEndpoint(
  "druid.sql.observations", "https://druid.example", "/druid/v2/sql", auth, data,
);
```

Use a TLS-enabled router or broker with a principal restricted to reading the
selected datasource. Seal any credential for the receiver. Pass the same label to the receiver binder and as the app's `data`.

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

Declare a unique, non-null integral key in the JSON safe integer range and
up to fifteen additional columns. The connector submits a read-only SELECT to
Druid, using a typed exclusive key parameter after the first page. Each
successful reply lands up to 32 rows and 36 KiB together with its position.
A short page ends a sweep. The next sweep starts at the beginning. Queries
observe the datasource as it exists at each read. Missing keys remain.

[Druid SQL API](https://druid.apache.org/docs/latest/querying/sql-api/)


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