Skip to main content

IcebergReaderConfig

Struct IcebergReaderConfig 

Source
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, or TIMESTAMP.
  • 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§

Trait Implementations§

Source§

impl Clone for IcebergReaderConfig

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for IcebergReaderConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for IcebergReaderConfig

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl From<&IcebergReaderConfig> for IcebergReaderConfig

Source§

fn from(value: &IcebergReaderConfig) -> Self

Converts to this type from the input type.
Source§

impl From<IcebergReaderConfig> for IcebergReaderConfig

Source§

fn from(value: IcebergReaderConfig) -> Self

Converts to this type from the input type.
Source§

impl Serialize for IcebergReaderConfig

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl TryFrom<IcebergReaderConfig> for IcebergReaderConfig

Source§

type Error = ConversionError

The type returned in the event of a conversion error.
Source§

fn try_from(value: IcebergReaderConfig) -> Result<Self, ConversionError>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> Serialize for T
where T: Serialize + ?Sized,

Source§

fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more