pub struct DatabricksSourceConfig {
pub workspace_url: String,
pub warehouse_id: String,
pub sql: String,
pub auth: AuthSpec<DatabricksAuth>,
pub catalog: Option<String>,
pub schema: Option<String>,
pub parameters: Vec<DatabricksParam>,
pub wait_timeout_secs: u64,
pub poll_interval_secs: u64,
pub batch_size: usize,
pub replication: DatabricksReplication,
pub state_key: Option<String>,
}Expand description
Configuration for the Databricks SQL query source.
Runs sql against a Databricks SQL Warehouse via the Statement Execution
REST API and streams the result rows as typed JSON objects.
Fields§
§workspace_url: StringWorkspace base URL, e.g. https://dbc-abc123.cloud.databricks.com.
warehouse_id: StringTarget SQL Warehouse id.
sql: StringThe SQL statement to run. May contain :name parameter markers (see
parameters) and a ${bookmark} token for
incremental replication.
auth: AuthSpec<DatabricksAuth>Authentication (PAT / OAuth bearer), inline or via a shared auth: { ref }.
catalog: Option<String>Default Unity Catalog catalog for the statement.
schema: Option<String>Default schema for the statement.
parameters: Vec<DatabricksParam>Named SQL parameters (:name markers).
wait_timeout_secs: u64Server-side wait before the statement goes async (seconds). Databricks
accepts 0 (fully async) or 5–50. Defaults to 50.
poll_interval_secs: u64Client poll cadence while the statement is PENDING/RUNNING (seconds).
batch_size: usizePage size — rows accumulated before a StreamPage is emitted.
replication: DatabricksReplicationReplication mode. Defaults to DatabricksReplication::Full.
state_key: Option<String>Explicit state-store key for the incremental bookmark. When unset, a key is derived from the workspace/warehouse and a query fingerprint.
Implementations§
Source§impl DatabricksSourceConfig
impl DatabricksSourceConfig
Sourcepub fn validate(&self) -> Result<(), FaucetError>
pub fn validate(&self) -> Result<(), FaucetError>
Validate the config; returns a human-readable error if invalid.
Trait Implementations§
Source§impl Clone for DatabricksSourceConfig
impl Clone for DatabricksSourceConfig
Source§fn clone(&self) -> DatabricksSourceConfig
fn clone(&self) -> DatabricksSourceConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'de> Deserialize<'de> for DatabricksSourceConfig
impl<'de> Deserialize<'de> for DatabricksSourceConfig
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 DatabricksSourceConfig
impl JsonSchema for DatabricksSourceConfig
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