pub enum DatabricksReplication {
Full,
Incremental {
column: String,
initial_value: Value,
},
}Expand description
How the source replicates rows across runs.
Serializes as { type: full } or
{ type: incremental, column: "...", initial_value: ... }.
Variants§
Full
Every run fetches the full result set (default).
Incremental
Only rows not yet read, in column order, resuming from the stored
bookmark (or initial_value on the first run).
The source wraps the SQL as
SELECT * FROM (<sql>) AS q WHERE q.`column` >= :_faucet_bookmark ORDER BY q.`column`
and drops the rows it already emitted at the bookmark value, so rows
that share a cursor value (ties, late commits) are never skipped.
Every page carries a bookmark, so a crash replays at most one page.
Write ${bookmark} in the SQL (with >=) to apply the cursor further
inside it; a strict > is refused. Rows whose column is NULL are
never read.
Trait Implementations§
Source§impl Clone for DatabricksReplication
impl Clone for DatabricksReplication
Source§impl Debug for DatabricksReplication
impl Debug for DatabricksReplication
Source§impl Default for DatabricksReplication
impl Default for DatabricksReplication
Source§impl<'de> Deserialize<'de> for DatabricksReplication
impl<'de> Deserialize<'de> for DatabricksReplication
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for DatabricksReplication
impl JsonSchema for DatabricksReplication
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more