Skippr is now Manifold.

Skip to content

Athena Iceberg ​

Use Athena Iceberg when you want Iceberg tables that Athena can query: merge, replace a day, and schema evolution without rewriting Hive DDL yourself. The destination publishes the Iceberg table on the first compact.

For Hive tables on S3, use Athena. For a Manifold-managed catalog, use ManifoldLake.

Before you begin ​

  • An S3 warehouse prefix Mfd can write (s3://bucket/path/).
  • A Glue database and an Athena workgroup.
  • A results bucket name for Athena.
  • IAM for S3 on the warehouse prefix plus Glue Iceberg table APIs.
bash
export AWS_ACCESS_KEY_ID="..."
export AWS_SECRET_ACCESS_KEY="..."
export AWS_DEFAULT_REGION="us-east-1"

Configure ​

python
from mfd import Config, DataSinkAthenaIceberg, Pipeline

cfg = Config.discover()
lake = cfg.data_sink(
    "lake",
    DataSinkAthenaIceberg(
        warehouse="s3://my-iceberg-warehouse/",
        glue_database_name="analytics",
        athena_workgroup_name="primary",
        athena_results_s3_bucket="my-athena-results",
        region="us-east-1",
    ),
)
cfg.pipeline("reports", Pipeline(data_source=cfg.get_data_source("sample"), data_sink=lake))
cfg.save()
bash
mfd connect data-sink athenaiceberg \
  --pipeline reports \
  --name lake \
  --warehouse s3://my-iceberg-warehouse/ \
  --glue-database-name analytics \
  --athena-workgroup-name primary \
  --athena-results-s3-bucket my-athena-results \
  --region us-east-1
yaml
data_sinks:
  lake:
    AthenaIceberg:
      warehouse: s3://my-iceberg-warehouse/
      glue_database_name: analytics
      athena_workgroup_name: primary
      athena_results_s3_bucket: my-athena-results
      region: us-east-1

Options ​

KeyTypeRequired/DefaultDescription
warehouseURIRequiredIceberg warehouse root (s3://…)
glue_database_namestringRequiredGlue database
athena_workgroup_namestringRequiredAthena workgroup
athena_results_s3_bucketstringRequiredAthena results bucket name
regionstringNot setAWS region
catalog_idstringNot setGlue catalog id when it is not the account default
object_storeobjectAWS S3Override the file store (see ManifoldLake for s3 / r2 shapes)

How data lands ​

Each source namespace becomes an Iceberg table in glue_database_name on the first compact. Ingest alone does not create the table. Mfd maintains snapshots: recent commits are kept, older ones expire, and small files are rewritten. Do not rely on time travel to old snapshots.

With transform.batch_time_fields and transform.batch_time_unit, Mfd adds one hidden Iceberg time transform (year, month, day, or hour) on the event-time column, plus identity partitions from batch_partition_fields. It does not write year/month/day int columns unless transform.identity_date_columns is true. Then it materializes UTC calendar ints and identity-partitions them at that depth (day → year,month,day) so Athena accepts WHERE year = 2026 AND month = 11. Do not use Iceberg’s year() transform as a column named year (that stores years since 1970). minute is rejected (Iceberg has no minute()). POSIX millis and micros in numeric columns resolve as event time, then the transform runs on the timestamp. Deadletter Iceberg tables stay unpartitioned. Default filter is WHERE event_ts >= TIMESTAMP '2026-11-07 00:00:00' AND event_ts < TIMESTAMP '2026-11-08 00:00:00'. Recreate an existing Iceberg table if the live spec does not match (hidden transform vs identity calendar ints). Snapshot present plus spec mismatch fail-closes; drop the table first.

Supports append, merge_by_key, replace_partition, and replace_table. mfd query reads the Iceberg table plus in-flight WAL rows.

Troubleshooting ​

SymptomFix
Glue / Iceberg permission errorsGrant Iceberg table APIs on the database, not only Hive CreateTable
AccessDenied on the warehouseGrant s3:PutObject and list on the warehouse prefix
Source refuses to start (replace_partition)You are on Hive Athena by mistake — this page is the Iceberg destination

Next steps ​