Skip to main content

CdcSourceRuntimeFlags

Trait CdcSourceRuntimeFlags 

Source
pub trait CdcSourceRuntimeFlags: CdcSourceTypeTrait {
    const CAN_BACKFILL: bool = false;
    const CAN_BACKFILL_IN_PARALLEL: bool = false;
    const CAN_USE_TRANSACTION_METADATA: bool = false;
    const CAN_AUTO_SCHEMA_CHANGE: bool = false;
    const CAN_AUTO_INITIALIZE_HEARTBEAT_TABLE: bool = false;
    const NEEDS_NON_EMPTY_INITIAL_OFFSET: bool = false;
    const NEEDS_OFFSET_COMMIT_ON_CHECKPOINT: bool = false;
    const NEEDS_PARSING_NUMBER_IN_DEBEZIUM_EVENT_AS_STRING: bool = false;
}
Expand description

Behavior switches.

Provided Associated Constants§

Source

const CAN_BACKFILL: bool = false

When true, only shared sources are supported; otherwise only direct sources are supported.

Source

const CAN_BACKFILL_IN_PARALLEL: bool = false

When true, the planner may choose parallelized backfill.

Source

const CAN_USE_TRANSACTION_METADATA: bool = false

When true, a shared source sets Debezium’s provide.transaction.metadata, so that all rows of one upstream transaction go into a single chunk.

Source

const CAN_AUTO_SCHEMA_CHANGE: bool = false

When true, the connector accepts auto.schema.change = true, which makes Debezium emit schema change events that RisingWave applies to the CDC tables of the source. Set it only when Debezium consumes the option for the connector and RisingWave can apply the resulting DDL events.

Source

const CAN_AUTO_INITIALIZE_HEARTBEAT_TABLE: bool = false

When true, the connector accepts heartbeat.table.auto.initialize = true, which makes source validation create the heartbeat table named by heartbeat.table.name in the upstream database if it does not exist yet.

Source

const NEEDS_NON_EMPTY_INITIAL_OFFSET: bool = false

When true, the source executor waits for a non-empty split offset before reporting the initial CDC offset.

Source

const NEEDS_OFFSET_COMMIT_ON_CHECKPOINT: bool = false

When true, the consumed offset is committed back to the upstream database on each checkpoint via a JNI call. The CDC reader passes the flag to the Java engine, which then holds back Debezium’s acknowledgement of each record until that commit.

Source

const NEEDS_PARSING_NUMBER_IN_DEBEZIUM_EVENT_AS_STRING: bool = false

When true, the Debezium JSON parser accepts a numeric value that arrives as a JSON string, such as "42" for an integer column or "123.45" for a decimal column, and converts it to the column type instead of rejecting it.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§