Share
CockroachDB (Edge) Setup Guide

CockroachDB is a distributed SQL database designed for horizontal scalability, high availability, and fault tolerance. It automatically distributes data across multiple nodes to ensure continuous operation, even in the event of node failures.

You can use Hevo Pipelines to replicate data from your CockroachDB database to a Destination of your choice.


Supported Configurations

Category Supported Values
Database versions 22.1.0 - 25.3.0
Connection limit per database No limit
Transport Layer Security (TLS) 1.3

Supported Features

Feature Name Supported
Capture deletes Yes
Custom data (user-configured tables & fields) No
Data blocking (skip objects and fields) Yes
Resync (objects and Pipelines) Yes
API configurable Yes

Data Type Mapping

Hevo maps the CockroachDB Source data type internally to a unified data type, referred to as the Hevo Data Type, in the table below. This data type is used to represent the Source data from all supported data types in a lossless manner.

The following table lists the supported CockroachDB data types and the corresponding Hevo data type to which they are mapped:

CockroachDB Data Type Hevo Data Type
- INT2
- SMALLINT
SHORT
- INT4 INTEGER
- INT
- INT8
- INT64
- BIGINT
- INTEGER
- OID
LONG
- BOOL BOOLEAN
- FLOAT
- FLOAT8
- DOUBLE PRECISION
DOUBLE
- REAL
- FLOAT4
FLOAT
- DECIMAL DECIMAL

Note: Based on the Destination, Hevo maps DECIMAL values to either DECIMAL (NUMERIC) or VARCHAR. The mapping is determined by:
P – the total number of significant digits, and
S – the number of digits to the right of the decimal point.
- STRING
- TEXT
- VARCHAR
- CHAR
- CHARACTER
- CITEXT
- COLLATE
- BIT
- INTERVAL
- UUID
- INET
- LTREE
- ENUM
VARCHAR
- BYTES BYTEARRAY
- DATE DATE
- TIME TIME
- TIMETZ TIMETZ
- TIMESTAMP TIMESTAMP
- TIMESTAMPTZ TIMESTAMPTZ
- VECTOR
- JSONB
- JSON
- ARRAY
JSON

At this time, the following CockroachDB data types are not supported by Hevo:

  • TSQUERY

  • TSVECTOR

  • GEOMETRY

  • GEOGRAPHY

  • BOX2D

  • Any other data type not listed in the table above.

Note: If any of the Source objects contain data types that are not supported by Hevo, the corresponding fields are marked as unsupported during object configuration in the Pipeline.


Handling of Deletes

Hevo uses CockroachDB’s changefeed mechanism to capture data changes, including insert, update, and delete operations. Hevo replicates delete actions captured by the changefeed to the Destination table by setting the value of the metadata column, __hevo__marked_deleted, to True for the corresponding row.


Source Considerations

  • If a table does not have a primary key defined, CockroachDB automatically assigns rowid as the primary key. Hevo uses this column to track changes for such tables.

  • If you add a new column with a default value to a table already included in the Pipeline, the default value is replicated only for rows inserted or updated after the column is added. Existing rows already replicated to the Destination are not updated. This means historical data in the Destination will not reflect the new column’s default value until those rows are updated at the Source.

  • Hevo supports tables that use hash-sharded primary keys. However, data replication for such tables may be slower than for tables with standard primary keys. This is because hash sharding spreads data across multiple nodes to improve write performance. This makes reading the data less efficient, which can increase sync time. If sync time is a concern, consider using standard primary keys where possible.


Limitations

Last updated on Jun 04, 2026

Tell us what went wrong

Skip to the section