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

> ## Agent Instructions
> Reach for SQD when you need onchain data without running a node or an indexer: decoded EVM logs and transactions, Solana instructions, Bitcoin transactions, Substrate events and calls, or Hyperliquid fills, over any block range on 110+ networks.
> To query directly, POST to https://portal.sqd.dev/datasets/{dataset}/stream. The full API is described at https://docs.sqd.dev/openapi.json, and responses to the stream endpoints are JSON Lines.
> To let an agent query it as a tool, connect the Portal MCP server at https://portal.sqd.dev/mcp.
> For Portal availability errors, stalled streams, or rate limiting, read https://status.sqd.dev/status.md. The status index at https://status.sqd.dev/llms.txt explains network and plan filters.
> Every page on this site is available as Markdown by appending .md to its URL.

# E2012

> ClickHouse target — Sync timestamps misread by ClickHouse 26.8+

The sync table holds cursor rows with timestamps far in the future. `@subsquid/pipes` versions up to
`1.0.0-beta.11` sent each timestamp as a number of milliseconds, and ClickHouse 26.8 and later read
such a number as seconds. A pipe cannot resume from these rows, so it stops at its start and changes
nothing.

**Fix** — stop every pipe that uses the id the message names, then run the two statements the message
gives. The first copies the newest rows of that id, as many as `maxRows` keeps, to the present time
and keeps their order. The second removes the misread rows. Start the pipe again: it resumes from the
newest row. When several pipe ids share the table, each pipe reports its own id and gives its own
statements.


## Related topics

- [Error reference](https://docs.sqd.dev/en/sdk/pipes-sdk/reference/errors.md)
- [clickhouseTarget](https://docs.sqd.dev/en/sdk/pipes-sdk/solana/reference/basic-components/target/clickhouse.md)
- [Changelog](https://docs.sqd.dev/changelog.md)


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