Close Menu

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    Google isn’t waiting for a settlement — the 30 percent Android app store fee is dead

    Apple’s new MacBook Neo is its cheapest, most colorful laptop so far — here’s how it compares to the Pro and Air

    FBI seizes LeakBase cybercrime forum, data of 142,000 members

    Facebook X (Twitter) Instagram
    • Artificial Intelligence
    • Business Technology
    • Cryptocurrency
    • Gadgets
    • Gaming
    • Health
    • Software and Apps
    • Technology
    Facebook X (Twitter) Instagram Pinterest Vimeo
    Tech AI Verse
    • Home
    • Artificial Intelligence

      What the polls say about how Americans are using AI

      February 27, 2026

      Tensions between the Pentagon and AI giant Anthropic reach a boiling point

      February 21, 2026

      Read the extended transcript: President Donald Trump interviewed by ‘NBC Nightly News’ anchor Tom Llamas

      February 6, 2026

      Stocks and bitcoin sink as investors dump software company shares

      February 4, 2026

      AI, crypto and Trump super PACs stash millions to spend on the midterms

      February 2, 2026
    • Business

      Weighing up the enterprise risks of neocloud providers

      March 3, 2026

      A stolen Gemini API key turned a $180 bill into $82,000 in two days

      March 3, 2026

      These ultra-budget laptops “include” 1.2TB storage, but most of it is OneDrive trial space

      March 1, 2026

      FCC approves the merger of cable giants Cox and Charter

      February 28, 2026

      Finding value with AI and Industry 5.0 transformation

      February 28, 2026
    • Crypto

      Strait of Hormuz Shutdown Shakes Asian Energy Markets

      March 3, 2026

      Wall Street’s Inflation Alarm From Iran — What It Means for Crypto

      March 3, 2026

      Ethereum Price Prediction: What To Expect From ETH In March 2026

      March 3, 2026

      Was Bitcoin Hijacked? How Institutional Interests Shaped Its Narrative Since 2015

      March 3, 2026

      XRP Whales Now Hold 83.7% of All Supply – What’s Next For Price?

      March 3, 2026
    • Technology

      Google isn’t waiting for a settlement — the 30 percent Android app store fee is dead

      March 4, 2026

      Apple’s new MacBook Neo is its cheapest, most colorful laptop so far — here’s how it compares to the Pro and Air

      March 4, 2026

      FBI seizes LeakBase cybercrime forum, data of 142,000 members

      March 4, 2026

      ‘Apple’s gonna sell these by the boatload’: why the new MacBook Neo is already the most important product of 2026

      March 4, 2026

      Here are the 6 best Google Pixel 10 upgrades coming in the next Pixel Drop update

      March 4, 2026
    • Others
      • Gadgets
      • Gaming
      • Health
      • Software and Apps
    Check BMI
    Tech AI Verse
    You are at:Home»Technology»Preview: Amazon S3 Tables and Lakehouse in DuckDB
    Technology

    Preview: Amazon S3 Tables and Lakehouse in DuckDB

    TechAiVerseBy TechAiVerseMarch 18, 2025No Comments6 Mins Read4 Views
    Facebook Twitter Pinterest Telegram LinkedIn Tumblr Email Reddit
    Preview: Amazon S3 Tables and Lakehouse in DuckDB
    Share
    Facebook Twitter LinkedIn Pinterest WhatsApp Email

    Preview: Amazon S3 Tables and Lakehouse in DuckDB

    Sam Ansmink, Tom Ebergen, Gabor Szarnyas

    Published on
    2025-03-14

    TL;DR: We are happy to announce a new preview feature that adds support for Apache Iceberg REST Catalogs, enabling DuckDB users to connect to Amazon S3 Tables and Amazon SageMaker Lakehouse with ease.

    Iceberg Ahead!

    In recent years, the Iceberg open table format has become increasingly popular. Major data warehouse platforms such as
    Databricks,
    Snowflake,
    Google BigQuery
    and
    AWS
    have all announced or already implemented support for Iceberg tables. These platforms also support Iceberg catalogs, which are responsible for tracking current metadata for a collection of Iceberg tables grouped by namespaces.

    DuckDB has supported reading Iceberg tables since September 2023 via the iceberg extension. Today, we are happy to introduce a new preview feature in this extension, which allows attaching to Iceberg REST catalogs. This preview release coincides with two AWS announcements yesterday: support for Iceberg tables in Amazon S3 Tables and the GA release of the integration between S3 Tables and SageMaker Lakehouse (AWS Glue Data Catalog). In practice, these developments mean that DuckDB now provides an end-to-end solution for reading Iceberg tables in S3 Tables and SageMaker Lakehouse.

    DuckDB’s support for Iceberg REST Catalog endpoints in Amazon S3 Tables is the result of a collaboration between AWS and DuckDB Labs.

    Using Apache Iceberg REST Catalogs in DuckDB

    Steps for Installing

    To connect to Apache Iceberg REST Catalogs in DuckDB,
    make sure you are running the latest stable DuckDB release (version 1.2.1).
    For our example steps, we’ll use the DuckDB CLI client.
    You can obtain this client from the installation page and start it with:

    Next, we need to install the “bleeding edge” versions of the required extensions from the core_nightly repository.

    FORCE INSTALL aws FROM core_nightly;
    FORCE INSTALL httpfs FROM core_nightly;
    FORCE INSTALL iceberg FROM core_nightly;
    

    For more information on using the core_nightly repository, please see the notes at the end of the post.

    With these extensions installed, your DuckDB is now capable of using Apache Iceberg REST Catalogs.
    Let’s find some data.

    Setting up an Amazon S3 Table Bucket

    (If you already have Iceberg tables in Amazon S3 Tables, you can skip to the “Reading Iceberg Catalogs with DuckDB” section.)

    In this post, we demonstrate how to read data from Amazon S3 Tables.
    To follow along, make sure that your account has s3tables permissions
    and create a new S3 table bucket.
    Note that Amazon S3 Tables is currently only supported in selected AWS regions.

    Populating an Amazon S3 Table Bucket

    If you don’t have an S3 table bucket with tables already, we found the easiest way to get going is to create a table using Amazon Athena.
    See their instructions.
    For our example, we created a simple table with three columns using the Athena query editor:

    CREATE TABLE duck_species (
        id INT,
        english_name STRING,
        latin_name STRING
    ) TBLPROPERTIES ('table_type' = 'ICEBERG');
    

    Let’s insert some data to the table:

    INSERT INTO duck_species VALUES
        (0, 'Anas nivis', 'Snow duck');
    

    Reading Amazon S3 Tables with DuckDB

    Querying S3 Tables with DuckDB is really easy.
    The first step is to get your AWS credentials into DuckDB.
    You can achieve this in two ways.
    First, you can let DuckDB detect your AWS credentials and configuration based on the default profile in your ~/.aws directory by creating the following secret using the Secrets Manager:

    CREATE SECRET (
        TYPE s3,
        PROVIDER credential_chain
    );
    

    Alternatively, you can set the AWS key, secret, and region values manually. For example:

    CREATE SECRET (
        TYPE s3,
        KEY_ID 'AKIAIOSFODNN7EXAMPLE',
        SECRET 'wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY',
        REGION 'us-east-1'
    );
    

    Tip To see the secrets in your session, run FROM duckdb_secrets();

    Next, point DuckDB to your S3 table bucket.
    You can do so by copy-pasting the S3 Tables ARN value directly from the AWS Management Console and using it in the ATTACH command:

    ATTACH 'arn:aws:s3tables:us-east-1:111122223333:bucket/bucket_name'
        AS s3_tables_db (
            TYPE iceberg,
            ENDPOINT_TYPE s3_tables
        );
    

    And that’s all! Now, DuckDB is connected to Amazon S3 Tables.
    To show the available tables, run:

    ┌──────────────┬─────────┬───────────────┬──────────────┬──────────────┬───────────┐
    │   database   │ schema  │     name      │ column_names │ column_types │ temporary │
    │   varchar    │ varchar │    varchar    │  varchar[]   │  varchar[]   │  boolean  │
    ├──────────────┼─────────┼───────────────┼──────────────┼──────────────┼───────────┤
    │ s3_tables_db │ ducks   │ duck_species  │ [__]         │ [INTEGER]    │ false     │
    └──────────────┴─────────┴───────────────┴──────────────┴──────────────┴───────────┘
    

    You can query tables as if they were ordinary DuckDB tables:

    FROM s3_tables_db.ducks.duck_species;
    
    ┌───────┬──────────────┬────────────┐
    │  id   │ english_name │ latin_name │
    │ int32 │   varchar    │  varchar   │
    ├───────┼──────────────┼────────────┤
    │   0   │ Anas nivis   │ Snow duck  │
    └───────┴──────────────┴────────────┘
    

    You also have an alternative option to connect to S3 Tables using the Amazon SageMaker Lakehouse (AWS Glue Data Catalog) Iceberg REST Catalog endpoint.
    To do so, run:

    ATTACH 'account_id:s3tablescatalog/namespace_name'
    AS (
        TYPE iceberg,
        ENDPOINT_TYPE glue
    );
    

    Tip If you need basic read access to tabular data in a single S3 table bucket, use the s3_tables endpoint type.
    If you want a unified view across all of your tabular data in AWS, use the glue endpoint type.

    Schema Evolution

    A key feature of the Iceberg format is schema evolution,
    i.e., the ability to follow changes in the table’s schema.
    To demonstrate this, we go back to the Athena query editor and add a new column to the duck_species table:

    ALTER TABLE duck_species
        ADD COLUMNS (conservation_status STRING);
    

    Then, we insert a few more duck species:

    INSERT INTO duck_species VALUES
        (1, 'Anas eatoni', 'Eaton''s pintail', 'Vulnerable'),
        (2, 'Histrionicus histrionicus', 'Harlequin duck', 'Least concern');
    

    Let’s run the query again from DuckDB:

    FROM s3_tables_db.ducks.duck_species;
    

    The query now returns a table with the additional fourth column, which has a NULL value in the row inserted before the change in the schema
    – as expected.

    ┌───────┬───────────────────────────┬─────────────────┬─────────────────────┐
    │  id   │       english_name        │   latin_name    │ conservation_status │
    │ int32 │          varchar          │     varchar     │       varchar       │
    ├───────┼───────────────────────────┼─────────────────┼─────────────────────┤
    │     1 │ Anas eatoni               │ Eaton's pintail │ Vulnerable          │
    │     2 │ Histrionicus histrionicus │ Harlequin duck  │ Least concern       │
    │     0 │ Anas nivis                │ Snow duck       │ NULL                │
    └───────┴───────────────────────────┴─────────────────┴─────────────────────┘
    

    Conclusion

    The latest preview release of the DuckDB iceberg extension enables directly reading tables using Iceberg REST endpoints.
    This allows you to query Amazon S3 Tables and Amazon SageMaker Lakehouse (AWS Glue Data Catalog) with ease.
    As of today, the extension is in an experimental state and is under active development.
    We will publish a stable release later this year.

    Cleaning Up

    If you created a new S3 table bucket to follow the examples,
    don’t forget to clean up by deleting your S3 table bucket.

    Using the core_nightly Repository

    The extensions used in this blog post are currently experimental, and hence they are distributed through the core_nightly repository. If you want to switch back to using extensions from the core repository, follow the extension documentation.

    Note that DuckDB does not support reloading extensions. Therefore, if you experience any issues, try restarting DuckDB after updating the extensions.

    Share. Facebook Twitter Pinterest LinkedIn Reddit WhatsApp Telegram Email
    Previous ArticleUnderrated Soft Skill for Developers: Charisma
    Next Article Fedora 42 Beta now available
    TechAiVerse
    • Website

    Jonathan is a tech enthusiast and the mind behind Tech AI Verse. With a passion for artificial intelligence, consumer tech, and emerging innovations, he deliver clear, insightful content to keep readers informed. From cutting-edge gadgets to AI advancements and cryptocurrency trends, Jonathan breaks down complex topics to make technology accessible to all.

    Related Posts

    Google isn’t waiting for a settlement — the 30 percent Android app store fee is dead

    March 4, 2026

    Apple’s new MacBook Neo is its cheapest, most colorful laptop so far — here’s how it compares to the Pro and Air

    March 4, 2026

    FBI seizes LeakBase cybercrime forum, data of 142,000 members

    March 4, 2026
    Leave A Reply Cancel Reply

    Top Posts

    Ping, You’ve Got Whale: AI detection system alerts ships of whales in their path

    April 22, 2025703 Views

    Lumo vs. Duck AI: Which AI is Better for Your Privacy?

    July 31, 2025288 Views

    6.7 Cummins Lifter Failure: What Years Are Affected (And Possible Fixes)

    April 14, 2025164 Views

    6 Best MagSafe Phone Grips (2025), Tested and Reviewed

    April 6, 2025124 Views
    Don't Miss
    Technology March 4, 2026

    Google isn’t waiting for a settlement — the 30 percent Android app store fee is dead

    Google isn’t waiting for a settlement — the 30 percent Android app store fee is…

    Apple’s new MacBook Neo is its cheapest, most colorful laptop so far — here’s how it compares to the Pro and Air

    FBI seizes LeakBase cybercrime forum, data of 142,000 members

    ‘Apple’s gonna sell these by the boatload’: why the new MacBook Neo is already the most important product of 2026

    Stay In Touch
    • Facebook
    • Twitter
    • Pinterest
    • Instagram
    • YouTube
    • Vimeo

    Subscribe to Updates

    Get the latest creative news from SmartMag about art & design.

    About Us
    About Us

    Welcome to Tech AI Verse, your go-to destination for everything technology! We bring you the latest news, trends, and insights from the ever-evolving world of tech. Our coverage spans across global technology industry updates, artificial intelligence advancements, machine learning ethics, and automation innovations. Stay connected with us as we explore the limitless possibilities of technology!

    Facebook X (Twitter) Pinterest YouTube WhatsApp
    Our Picks

    Google isn’t waiting for a settlement — the 30 percent Android app store fee is dead

    March 4, 20262 Views

    Apple’s new MacBook Neo is its cheapest, most colorful laptop so far — here’s how it compares to the Pro and Air

    March 4, 20261 Views

    FBI seizes LeakBase cybercrime forum, data of 142,000 members

    March 4, 20262 Views
    Most Popular

    7 Best Kids Bikes (2025): Mountain, Balance, Pedal, Coaster

    March 13, 20250 Views

    VTOMAN FlashSpeed 1500: Plenty Of Power For All Your Gear

    March 13, 20250 Views

    Best TV Antenna of 2025

    March 13, 20250 Views
    © 2026 TechAiVerse. Designed by Divya Tech.
    • Home
    • About Us
    • Contact Us
    • Privacy Policy
    • Terms & Conditions

    Type above and press Enter to search. Press Esc to cancel.