Skip to main content
Apache Iceberg is an open table format for data lakes: the data lives as Parquet files in Amazon S3, and a catalog (here, the AWS Glue Data Catalog) keeps track of each table’s schema and versions. Engines such as Trino, Amazon Athena, Spark, and Flink read and write these tables. This connector reads Iceberg tables from your Glue Data Catalog and brings each one to Nekt as a table, as of its latest version (snapshot), with deleted rows removed.
The connector only reads data. It never creates, changes, or deletes anything in your AWS account.

Configuring AWS Glue (Iceberg) as a Source

In the Sources tab, click on the “Add source” button located on the top right of your screen. Then, select the AWS Glue (Iceberg) option from the list of connectors. Click Next and you’ll be prompted to add your access.

1. Add account access

The connector reads the Glue Data Catalog and the table files in S3 directly. When your lake is in a different AWS account than your Nekt workspace (the usual case), you create a role in the lake account and let the Nekt workspace assume it, as described in the step-by-step below. The following configurations are available:
  • AWS region: The region of the Glue Data Catalog that registers the tables (for example, us-east-1).
  • Assume role ARN: The ARN of the role in the lake account that the connector assumes (for example, arn:aws:iam::123456789012:role/nekt-lake-reader).
  • Glue catalog ID (optional): The 12-digit ID of the AWS account that owns the Glue Data Catalog. Leave it empty to use the account of the Assume role ARN.
  • Tables: The Iceberg tables to read. Each one becomes a stream. For each table:
    • Database: The Glue database (Iceberg namespace) of the table.
    • Table: The table name.
    • Primary keys: The columns that identify a row. When empty, the connector uses the table’s Iceberg identifier fields, if it has any. Required (here or as identifier fields) when the table has an Incremental column: incremental runs update rows by primary key, and a table with an incremental column but no primary key is not read.
    • Incremental column (optional): A timestamp, timestamp with time zone, date, int, or long column that grows whenever a row is inserted or updated, such as updated_at. See Incremental sync. Leave it empty to read the whole table every run.
  • AWS credentials (advanced, optional): An access key ID and secret access key to use instead of the Nekt workspace’s own AWS identity. When an Assume role ARN is also filled, the key pair is used to assume the role. On GCP workspaces, the key pair is required.
  1. In the AWS account that owns the lake, create a role (for example, nekt-lake-reader) with the following policy. Replace the region, account, database, bucket, and prefix with yours, and keep the kms:Decrypt statement only if the bucket is encrypted with a KMS key (SSE-KMS).
The S3 permissions must cover both the metadata and the data files of every table (by default, both are under the table’s location). If a table writes its data to another bucket or prefix, add it too.
  1. Add a trust policy to the role, to allow Nekt to assume it. On AWS workspaces, trust the Nekt workspace role:
<AWS_ACCOUNT_ID_FROM_NEKT_WORKSPACE> is the AWS account ID where your Nekt workspace is configured. If the connector cannot assume the role, the run log shows the exact principal to allow.
On GCP workspaces (and whenever you fill AWS credentials), the access key pair is what assumes the role, so trust the IAM user that owns the key pair instead, and allow that user to call sts:AssumeRole on the role:
The IAM user’s own policy needs {"Effect": "Allow", "Action": "sts:AssumeRole", "Resource": "<ROLE_ARN>"}. If you leave Assume role ARN empty, the IAM user itself needs the policy from step 1.
  1. If the bucket policy restricts access, allow the role there as well (s3:GetObject on the table prefixes and s3:ListBucket on the bucket). If the bucket uses a KMS key, the key policy must also allow the role to use kms:Decrypt.
  2. If your lake uses AWS Lake Formation, grant the role DESCRIBE on the database and DESCRIBE and SELECT on each table. Keep the IAM S3 permissions from step 1: the connector reads the files in S3 directly with the role, not through Lake Formation.
Because the files are read directly from S3, Lake Formation column, row, and cell-level filters are not applied: the connector brings every column and row of the table that the role can read in S3. If some columns or rows must not leave the lake, expose them through a separate table (or view materialized as a table) and give the role S3 access only to that table’s location.
  1. Copy the role ARN and paste it into Assume role ARN.
Once you’re done, click Next.

2. Select streams

Choose which data streams you want to sync. Each table you configured is one stream, named <database>_<table>. For faster extractions, select only the streams that are relevant to your analysis.
Tip: The stream can be found more easily by typing its name.
Select the streams and click Next.

3. Configure data streams

Customize how you want your data to appear in your catalog. Select the desired layer where the data will be placed, a folder to organize it inside the layer, a name for each table (which will effectively contain the fetched data) and the type of sync.
  • Layer: choose between the existing layers on your catalog. This is where you will find your new extracted tables as the extraction runs successfully.
  • Folder: a folder can be created inside the selected layer to group all tables being created from this new data source.
  • Table name: we suggest a name, but feel free to customize it. You have the option to add a prefix to all tables at once and make this process faster!
  • Sync Type: you can choose between INCREMENTAL and FULL_TABLE.
    • Incremental: available for tables with an Incremental column. Each run reads only what changed since the previous run (see Incremental sync).
    • Full table: each run reads the whole table, so the Nekt table matches the source exactly, including deleted rows.
Once you are done configuring, click Next.

4. Configure data source

Describe your data source for easy identification within your organization, not exceeding 140 characters. To define your Trigger, consider how often you want data to be extracted from this source. This decision usually depends on how frequently you need the new table data updated (every day, once a week, or only at specific times). Optionally, you can define some additional settings:
  • Configure Delta Log Retention and determine for how long we should store old states of this table as it gets updated. Read more about this resource here.
  • Determine when to execute an Additional Full Sync. On incremental tables, a periodic full sync removes rows that were deleted at the source.
Once you are ready, click Next to finalize the setup.

5. Check your new source

You can view your new source on the Sources page. If needed, manually trigger the source extraction by clicking on the arrow button. Once executed, your data will appear in your Catalog.

How the tables are read

  • Consistent version: each table is read as of the snapshot that is current when the connector starts reading that table. Changes committed while it is reading do not mix in; they arrive in the next run.
  • Deleted rows: rows removed with position delete files (what Trino, Athena, and Spark write for DELETE, UPDATE, and MERGE in merge-on-read mode) are not brought.
  • Empty tables: a table with no data yet is read as zero rows, not as an error.
  • Schema changes: the table’s current schema is used on every run. A new column appears in Nekt (empty for older rows); a renamed column appears under its new name and the old column stops receiving values.

Incremental sync

With an Incremental column, each run reads:
  • from the files that were already in the table at the previous run, the rows whose incremental column is greater than or equal to the highest value read in that run (values in the future are capped at the time of the run, so they cannot hide later rows);
  • every row of the files written since the previous run (new rows, updates, and compactions), whatever their incremental column. A row committed late with an older value, or with an empty value, is not lost.
Keep in mind:
  • Rows deleted at the source are not removed from Nekt by incremental runs. Schedule an Additional Full Sync to clean them up.
  • After a compaction (for example, Trino optimize or Glue automatic compaction), the files it rewrote are read once in full. Rows are updated by primary key (which incremental sync requires), so nothing is duplicated, but that run takes longer.
  • If the table’s older versions were expired before the next run (or the table was rolled back), that run can only use the incremental column and the run log warns about it. An Additional Full Sync picks up anything committed late in that window.

Column types

Limitations

  • Equality deletes are not supported. Some writers (Flink upserts, for example) delete rows with equality delete files. The connector cannot apply them, so a table whose current snapshot has equality delete files is not read (the run log says so) instead of bringing back deleted rows. To unblock the table, rewrite its data files so the deletes are applied, and remove the delete files left behind: in Spark, rewrite_data_files with the remove-dangling-deletes option (a plain rewrite can leave the equality delete files listed in the snapshot).
  • Iceberg format versions 1 and 2 are supported. Tables in format version 3 or later are not read yet.
  • Incremental runs do not remove rows deleted at the source (see Incremental sync).
  • Only Iceberg tables are read. Other Glue tables (Hive, Delta Lake, CSV) are reported as not supported.

Troubleshooting

A table that cannot be read is skipped and reported as failed in the run, with the reason; the other tables are read normally. If the credentials or the role are invalid, the whole run fails.