pub struct IcebergReaderConfig {Show 38 fields
pub catalog_type: Option<IcebergCatalogType>,
pub datetime: Option<String>,
pub end_snapshot_id: Option<i64>,
pub glue_access_key_id: Option<String>,
pub glue_endpoint: Option<String>,
pub glue_id: Option<String>,
pub glue_profile_name: Option<String>,
pub glue_region: Option<String>,
pub glue_secret_access_key: Option<String>,
pub glue_session_token: Option<String>,
pub glue_warehouse: Option<String>,
pub max_retries: Option<i32>,
pub metadata_location: Option<String>,
pub mode: IcebergIngestMode,
pub num_parsers: Option<NonZeroU32>,
pub rest_audience: Option<String>,
pub rest_credential: Option<String>,
pub rest_headers: Option<IcebergReaderConfigRestHeaders>,
pub rest_oauth2_server_uri: Option<String>,
pub rest_prefix: Option<String>,
pub rest_resource: Option<String>,
pub rest_scope: Option<String>,
pub rest_token: Option<String>,
pub rest_uri: Option<String>,
pub rest_warehouse: Option<String>,
pub s3tables_access_key_id: Option<String>,
pub s3tables_endpoint: Option<String>,
pub s3tables_profile_name: Option<String>,
pub s3tables_region: Option<String>,
pub s3tables_secret_access_key: Option<String>,
pub s3tables_session_token: Option<String>,
pub s3tables_table_bucket_arn: Option<String>,
pub snapshot_filter: Option<String>,
pub snapshot_id: Option<i64>,
pub table_name: Option<String>,
pub timestamp_column: Option<String>,
pub transaction_mode: Option<IcebergTransactionMode>,
pub extra: HashMap<String, String>,
}Expand description
Iceberg input connector configuration.
JSON schema
{
"description": "Iceberg input connector configuration.",
"allOf": [
{
"$ref": "#/components/schemas/GlueCatalogConfig"
},
{
"$ref": "#/components/schemas/RestCatalogConfig"
},
{
"$ref": "#/components/schemas/S3TablesCatalogConfig"
},
{
"type": "object",
"required": [
"mode"
],
"properties": {
"catalog_type": {
"oneOf": [
{
"type": "null"
},
{
"allOf": [
{
"$ref": "#/components/schemas/IcebergCatalogType"
}
]
}
]
},
"datetime": {
"description": "Optional timestamp for the snapshot in the ISO-8601/RFC-3339 format, e.g.,\n\"2024-12-09T16:09:53+00:00\".\n\nWhen this option is set, the connector finds and opens the snapshot of the table as of the\nspecified point in time (based on the server time recorded in the transaction\nlog, not the event time encoded in the data). In `snapshot` and `snapshot_and_follow`\nmodes, it retrieves this snapshot. In `follow` and `snapshot_and_follow` modes, it\nfollows transaction log records **after** this snapshot.\n\nNote: at most one of `snapshot_id` and `datetime` options can be specified.\nWhen neither of the two options is specified, the latest committed version of the table\nis used.",
"type": [
"string",
"null"
]
},
"end_snapshot_id": {
"description": "Optional final snapshot id.\n\nValid only in `follow` and `snapshot_and_follow` modes.\n\nWhen set, the connector stops after fully ingesting the snapshot with\nthis id, signaling end-of-input. Iceberg snapshot ids are not ordered, so\nthe bound is an exact match: the id must name a snapshot committed after\nthe starting snapshot and already present in the table's current history.\nThe connector rejects any other value at startup, including a\nnot-yet-committed id, rather than follow forever.",
"type": [
"integer",
"null"
],
"format": "int64"
},
"max_retries": {
"description": "Maximum number of retries for reading the table snapshot.\n\nWhen reading the snapshot fails partway through, for example because an\nobject-store read times out or is throttled, the connector retries the\nentire read with exponential backoff. This is in addition to the\nlower-level retries performed by the object-store client.\n\nDefaults to unlimited retries. Set to 0 to disable retries.",
"type": [
"integer",
"null"
],
"format": "int32",
"minimum": 0.0
},
"metadata_location": {
"description": "Location of the table metadata JSON file.\n\nThis propery is used to access an Iceberg table without a catalog. It is mutually\nexclusive with the `catalog_type` property.",
"type": [
"string",
"null"
]
},
"mode": {
"$ref": "#/components/schemas/IcebergIngestMode"
},
"num_parsers": {
"description": "The number of parallel parsing tasks the connector uses to process data read from the\ntable. Increasing this value can enhance performance by allowing more concurrent processing.\nRecommended range: 1-10. The default is 4.",
"type": "integer",
"format": "int32",
"minimum": 1.0
},
"snapshot_filter": {
"description": "Optional row filter.\n\nThis option is only valid when `mode` is set to `snapshot` or `snapshot_and_follow`.\n\nWhen specified, only rows that satisfy the filter condition are included in the\nsnapshot. The condition must be a valid SQL Boolean expression that can be used in\nthe `where` clause of the `select * from snapshot where ...` query.\n\nThis option can be used to specify the range of event times to include in the snapshot,\ne.g.: `ts BETWEEN '2005-01-01 00:00:00' AND '2010-12-31 23:59:59'`.",
"type": [
"string",
"null"
]
},
"snapshot_id": {
"description": "Optional snapshot id.\n\nWhen this option is set, the connector finds the specified snapshot of the table.\nIn `snapshot` and `snapshot_and_follow` modes, it loads this snapshot.\nIn `follow` and `snapshot_and_follow` modes, it follows table updates\n**after** this snapshot.\n\nNote: at most one of `snapshot_id` and `datetime` options can be specified.\nWhen neither of the two options is specified, the latest committed version of the table\nis used.",
"type": [
"integer",
"null"
],
"format": "int64"
},
"table_name": {
"description": "Specifies the Iceberg table name in the \"namespace.table\" format.\n\nThis option is applicable when an Iceberg catalog is configured using the `catalog_type` property.",
"type": [
"string",
"null"
]
},
"timestamp_column": {
"description": "Table column that serves as an event timestamp.\n\nWhen this option is specified, and `mode` is one of `snapshot` or `snapshot_and_follow`,\ntable rows are ingested in the timestamp order, respecting the\n[`LATENESS`](https://docs.feldera.com/sql/streaming#lateness-expressions)\nproperty of the column: each ingested row has a timestamp no more than `LATENESS`\ntime units earlier than the most recent timestamp of any previously ingested row.\nThe ingestion is performed by partitioning the table into timestamp ranges of width\n`LATENESS`. Each range is processed sequentially, in increasing timestamp order.\n\n# Example\n\nConsider a table with timestamp column of type `TIMESTAMP` and lateness attribute\n`INTERVAL 1 DAY`. Assuming that the oldest timestamp in the table is\n`2024-01-01T00:00:00``, the connector will fetch all records with timestamps\nfrom `2024-01-01`, then all records for `2024-01-02`, `2024-01-03`, etc., until all records\nin the table have been ingested.\n\n# Requirements\n\n* The timestamp column must be of a supported type: integer, `DATE`, or `TIMESTAMP`.\n* The timestamp column must be declared with non-zero `LATENESS`.\n* For efficient ingest, the table must be optimized for timestamp-based\nqueries using partitioning, Z-ordering, or liquid clustering.",
"type": [
"string",
"null"
]
},
"transaction_mode": {
"$ref": "#/components/schemas/IcebergTransactionMode"
}
},
"additionalProperties": {
"description": "Storage options for configuring backend object store.\n\nSee the [list of available options in PyIceberg documentation](https://py.iceberg.apache.org/configuration/#fileio).",
"type": "string"
}
}
]
}Fields§
§catalog_type: Option<IcebergCatalogType>§datetime: Option<String>Optional timestamp for the snapshot in the ISO-8601/RFC-3339 format, e.g., “2024-12-09T16:09:53+00:00”.
When this option is set, the connector finds and opens the snapshot of the table as of the
specified point in time (based on the server time recorded in the transaction
log, not the event time encoded in the data). In snapshot and snapshot_and_follow
modes, it retrieves this snapshot. In follow and snapshot_and_follow modes, it
follows transaction log records after this snapshot.
Note: at most one of snapshot_id and datetime options can be specified.
When neither of the two options is specified, the latest committed version of the table
is used.
end_snapshot_id: Option<i64>Optional final snapshot id.
Valid only in follow and snapshot_and_follow modes.
When set, the connector stops after fully ingesting the snapshot with this id, signaling end-of-input. Iceberg snapshot ids are not ordered, so the bound is an exact match: the id must name a snapshot committed after the starting snapshot and already present in the table’s current history. The connector rejects any other value at startup, including a not-yet-committed id, rather than follow forever.
glue_access_key_id: Option<String>§glue_endpoint: Option<String>§glue_id: Option<String>§glue_profile_name: Option<String>§glue_region: Option<String>§glue_secret_access_key: Option<String>§glue_session_token: Option<String>§glue_warehouse: Option<String>§max_retries: Option<i32>Maximum number of retries for reading the table snapshot.
When reading the snapshot fails partway through, for example because an object-store read times out or is throttled, the connector retries the entire read with exponential backoff. This is in addition to the lower-level retries performed by the object-store client.
Defaults to unlimited retries. Set to 0 to disable retries.
metadata_location: Option<String>Location of the table metadata JSON file.
This propery is used to access an Iceberg table without a catalog. It is mutually
exclusive with the catalog_type property.
mode: IcebergIngestMode§num_parsers: Option<NonZeroU32>The number of parallel parsing tasks the connector uses to process data read from the table. Increasing this value can enhance performance by allowing more concurrent processing. Recommended range: 1-10. The default is 4.
rest_audience: Option<String>§rest_credential: Option<String>§rest_headers: Option<IcebergReaderConfigRestHeaders>§rest_oauth2_server_uri: Option<String>§rest_prefix: Option<String>§rest_resource: Option<String>§rest_scope: Option<String>§rest_token: Option<String>§rest_uri: Option<String>§rest_warehouse: Option<String>§s3tables_access_key_id: Option<String>§s3tables_endpoint: Option<String>§s3tables_profile_name: Option<String>§s3tables_region: Option<String>§s3tables_secret_access_key: Option<String>§s3tables_session_token: Option<String>§s3tables_table_bucket_arn: Option<String>§snapshot_filter: Option<String>Optional row filter.
This option is only valid when mode is set to snapshot or snapshot_and_follow.
When specified, only rows that satisfy the filter condition are included in the
snapshot. The condition must be a valid SQL Boolean expression that can be used in
the where clause of the select * from snapshot where ... query.
This option can be used to specify the range of event times to include in the snapshot,
e.g.: ts BETWEEN '2005-01-01 00:00:00' AND '2010-12-31 23:59:59'.
snapshot_id: Option<i64>Optional snapshot id.
When this option is set, the connector finds the specified snapshot of the table.
In snapshot and snapshot_and_follow modes, it loads this snapshot.
In follow and snapshot_and_follow modes, it follows table updates
after this snapshot.
Note: at most one of snapshot_id and datetime options can be specified.
When neither of the two options is specified, the latest committed version of the table
is used.
table_name: Option<String>Specifies the Iceberg table name in the “namespace.table” format.
This option is applicable when an Iceberg catalog is configured using the catalog_type property.
timestamp_column: Option<String>Table column that serves as an event timestamp.
When this option is specified, and mode is one of snapshot or snapshot_and_follow,
table rows are ingested in the timestamp order, respecting the
LATENESS
property of the column: each ingested row has a timestamp no more than LATENESS
time units earlier than the most recent timestamp of any previously ingested row.
The ingestion is performed by partitioning the table into timestamp ranges of width
LATENESS. Each range is processed sequentially, in increasing timestamp order.
§Example
Consider a table with timestamp column of type TIMESTAMP and lateness attribute
INTERVAL 1 DAY. Assuming that the oldest timestamp in the table is
2024-01-01T00:00:00``, the connector will fetch all records with timestamps from 2024-01-01, then all records for 2024-01-02, 2024-01-03`, etc., until all records
in the table have been ingested.
§Requirements
- The timestamp column must be of a supported type: integer,
DATE, orTIMESTAMP. - The timestamp column must be declared with non-zero
LATENESS. - For efficient ingest, the table must be optimized for timestamp-based queries using partitioning, Z-ordering, or liquid clustering.
transaction_mode: Option<IcebergTransactionMode>§extra: HashMap<String, String>Implementations§
Source§impl IcebergReaderConfig
impl IcebergReaderConfig
pub fn builder() -> IcebergReaderConfig
Trait Implementations§
Source§impl Clone for IcebergReaderConfig
impl Clone for IcebergReaderConfig
Source§impl Debug for IcebergReaderConfig
impl Debug for IcebergReaderConfig
Source§impl<'de> Deserialize<'de> for IcebergReaderConfig
impl<'de> Deserialize<'de> for IcebergReaderConfig
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 From<&IcebergReaderConfig> for IcebergReaderConfig
impl From<&IcebergReaderConfig> for IcebergReaderConfig
Source§fn from(value: &IcebergReaderConfig) -> Self
fn from(value: &IcebergReaderConfig) -> Self
Source§impl From<IcebergReaderConfig> for IcebergReaderConfig
impl From<IcebergReaderConfig> for IcebergReaderConfig
Source§fn from(value: IcebergReaderConfig) -> Self
fn from(value: IcebergReaderConfig) -> Self
Source§impl Serialize for IcebergReaderConfig
impl Serialize for IcebergReaderConfig
Source§impl TryFrom<IcebergReaderConfig> for IcebergReaderConfig
impl TryFrom<IcebergReaderConfig> for IcebergReaderConfig
Source§type Error = ConversionError
type Error = ConversionError
Source§fn try_from(value: IcebergReaderConfig) -> Result<Self, ConversionError>
fn try_from(value: IcebergReaderConfig) -> Result<Self, ConversionError>
Auto Trait Implementations§
impl Freeze for IcebergReaderConfig
impl RefUnwindSafe for IcebergReaderConfig
impl Send for IcebergReaderConfig
impl Sync for IcebergReaderConfig
impl Unpin for IcebergReaderConfig
impl UnsafeUnpin for IcebergReaderConfig
impl UnwindSafe for IcebergReaderConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more