blob: 436fdeeed4214ab8bbf207e394cbc7cbdffecff8 [file] [log] [blame]
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="prev" href="../community/">
<link rel="next" href="../view-spec/">
<link rel="icon" href="../assets/images/favicon-96x96.png">
<meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.3">
<title>Spec - Apache Iceberg</title>
<link rel="stylesheet" href="../assets/stylesheets/main.50c56a3b.min.css">
<link rel="stylesheet" href="../assets/stylesheets/palette.06af60db.min.css">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Nunito+Sans:300,300i,400,400i,700,700i%7CRoboto+Mono:400,400i,700,700i&display=fallback">
<style>:root{--md-text-font:"Nunito Sans";--md-code-font:"Roboto Mono"}</style>
<link rel="stylesheet" href="../assets/stylesheets/extra.css">
<link rel="stylesheet" href="../assets/stylesheets/bootstrap-grid.css">
<link rel="stylesheet" href="../assets/stylesheets/bootstrap-buttons.css">
<link rel="stylesheet" href="../assets/stylesheets/home.css">
<script>__md_scope=new URL("..",location),__md_hash=e=>[...e].reduce((e,_)=>(e<<5)-e+_.charCodeAt(0),0),__md_get=(e,_=localStorage,t=__md_scope)=>JSON.parse(_.getItem(t.pathname+"."+e)),__md_set=(e,_,t=localStorage,a=__md_scope)=>{try{t.setItem(a.pathname+"."+e,JSON.stringify(_))}catch(e){}}</script>
</head>
<body dir="ltr" data-md-color-scheme="iceberg" data-md-color-primary="indigo" data-md-color-accent="indigo">
<input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
<input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
<label class="md-overlay" for="__drawer"></label>
<div data-md-component="skip">
<a href="#iceberg-table-spec" class="md-skip">
Skip to content
</a>
</div>
<div data-md-component="announce">
</div>
<!--
Copyright (c) 2016-2023 Martin Donath <martin.donath@squidfunk.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.
-->
<!-- Determine classes -->
<!-- Header -->
<header class="md-header md-header--shadow md-header--lifted" data-md-component="header">
<nav class="md-header__inner md-grid" aria-label="Header">
<!-- Link to home -->
<a
href=".."
title="Apache Iceberg"
class="md-header__button md-logo"
aria-label="Apache Iceberg"
data-md-component="logo"
>
<img src="../assets/images/Iceberg-logo.svg" alt="logo">
</a>
<!-- Button to open drawer -->
<label class="md-header__button md-icon" for="__drawer">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2Z"/></svg>
</label>
<!-- Header title -->
<div class="md-header__title" data-md-component="header-title">
<div class="md-header__ellipsis">
<div class="md-header__topic">
<span class="md-ellipsis"> </span>
</div>
<div class="md-header__topic" data-md-component="header-topic">
<span class="md-ellipsis">
Spec
</span>
</div>
</div>
</div>
<!-- Button to open search modal -->
<label class="md-header__button md-icon" for="__search">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5Z"/></svg>
</label>
<!-- Search interface -->
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
<input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" required>
<label class="md-search__icon md-icon" for="__search">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5Z"/></svg>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12Z"/></svg>
</label>
<nav class="md-search__options" aria-label="Search">
<button type="reset" class="md-search__icon md-icon" title="Clear" aria-label="Clear" tabindex="-1">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41Z"/></svg>
</button>
</nav>
<div class="md-search__suggest" data-md-component="search-suggest"></div>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
<div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
Initializing search
</div>
<ol class="md-search-result__list" role="presentation"></ol>
</div>
</div>
</div>
</div>
</div>
<div class="md-social">
<a href="https://iceberg.apache.org/community/" target="_blank" rel="noopener" title="iceberg.apache.org" class="md-social__link">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><!--! Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2023 Fonticons, Inc.--><path d="M88.2 309.1c9.8-18.3 6.8-40.8-7.5-55.8C59.4 230.9 48 204 48 176c0-63.5 63.8-128 160-128s160 64.5 160 128-63.8 128-160 128c-13.1 0-25.8-1.3-37.8-3.6-10.4-2-21.2-.6-30.7 4.2-4.1 2.1-8.3 4.1-12.6 6-16 7.2-32.9 13.5-49.9 18 2.8-4.6 5.4-9.1 7.9-13.6 1.1-1.9 2.2-3.9 3.2-5.9zM0 176c0 41.8 17.2 80.1 45.9 110.3-.9 1.7-1.9 3.5-2.8 5.1-10.3 18.4-22.3 36.5-36.6 52.1-6.6 7-8.3 17.2-4.6 25.9C5.8 378.3 14.4 384 24 384c43 0 86.5-13.3 122.7-29.7 4.8-2.2 9.6-4.5 14.2-6.8 15.1 3 30.9 4.5 47.1 4.5 114.9 0 208-78.8 208-176S322.9 0 208 0 0 78.8 0 176zm432 304c16.2 0 31.9-1.6 47.1-4.5 4.6 2.3 9.4 4.6 14.2 6.8C529.5 498.7 573 512 616 512c9.6 0 18.2-5.7 22-14.5 3.8-8.8 2-19-4.6-25.9-14.2-15.6-26.2-33.7-36.6-52.1-.9-1.7-1.9-3.4-2.8-5.1 28.8-30.3 46-68.6 46-110.4 0-94.4-87.9-171.5-198.2-175.8 4.1 15.2 6.2 31.2 6.2 47.8v.6c87.2 6.7 144 67.5 144 127.4 0 28-11.4 54.9-32.7 77.2-14.3 15-17.3 37.6-7.5 55.8 1.1 2 2.2 4 3.2 5.9 2.5 4.5 5.2 9 7.9 13.6-17-4.5-33.9-10.7-49.9-18-4.3-1.9-8.5-3.9-12.6-6-9.5-4.8-20.3-6.2-30.7-4.2-12.1 2.4-24.7 3.6-37.8 3.6-61.7 0-110-26.5-136.8-62.3-16 5.4-32.8 9.4-50 11.8C279 439.8 350 480 432 480z"/></svg>
</a>
<a href="https://github.com/apache/iceberg" target="_blank" rel="noopener" title="github.com" class="md-social__link">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><!--! Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2023 Fonticons, Inc.--><path d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"/></svg>
</a>
<a href="https://www.youtube.com/@ApacheIceberg" target="_blank" rel="noopener" title="www.youtube.com" class="md-social__link">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2023 Fonticons, Inc.--><path d="M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z"/></svg>
</a>
<a href="https://join.slack.com/t/apache-iceberg/shared_invite/zt-287g3akar-K9Oe_En5j1UL7Y_Ikpai3A" target="_blank" rel="noopener" title="join.slack.com" class="md-social__link">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2023 Fonticons, Inc.--><path d="M94.12 315.1c0 25.9-21.16 47.06-47.06 47.06S0 341 0 315.1c0-25.9 21.16-47.06 47.06-47.06h47.06v47.06zm23.72 0c0-25.9 21.16-47.06 47.06-47.06s47.06 21.16 47.06 47.06v117.84c0 25.9-21.16 47.06-47.06 47.06s-47.06-21.16-47.06-47.06V315.1zm47.06-188.98c-25.9 0-47.06-21.16-47.06-47.06S139 32 164.9 32s47.06 21.16 47.06 47.06v47.06H164.9zm0 23.72c25.9 0 47.06 21.16 47.06 47.06s-21.16 47.06-47.06 47.06H47.06C21.16 243.96 0 222.8 0 196.9s21.16-47.06 47.06-47.06H164.9zm188.98 47.06c0-25.9 21.16-47.06 47.06-47.06 25.9 0 47.06 21.16 47.06 47.06s-21.16 47.06-47.06 47.06h-47.06V196.9zm-23.72 0c0 25.9-21.16 47.06-47.06 47.06-25.9 0-47.06-21.16-47.06-47.06V79.06c0-25.9 21.16-47.06 47.06-47.06 25.9 0 47.06 21.16 47.06 47.06V196.9zM283.1 385.88c25.9 0 47.06 21.16 47.06 47.06 0 25.9-21.16 47.06-47.06 47.06-25.9 0-47.06-21.16-47.06-47.06v-47.06h47.06zm0-23.72c-25.9 0-47.06-21.16-47.06-47.06 0-25.9 21.16-47.06 47.06-47.06h117.84c25.9 0 47.06 21.16 47.06 47.06 0 25.9-21.16 47.06-47.06 47.06H283.1z"/></svg>
</a>
</div>
<!-- Color palette toggle -->
<!-- User preference: color palette -->
<!-- Site language selector -->
<!-- Repository information -->
</nav>
<!-- Navigation tabs (sticky) -->
<nav class="md-tabs" aria-label="Tabs" data-md-component="tabs">
<div class="md-grid">
<ul class="md-tabs__list">
<li class="md-tabs__item">
<a href=".." class="md-tabs__link">
Home
</a>
</li>
<li class="md-tabs__item">
<a href="../spark-quickstart/" class="md-tabs__link">
Quickstart
</a>
</li>
<li class="md-tabs__item">
<a href="../docs/latest/" class="md-tabs__link">
Docs
</a>
</li>
<li class="md-tabs__item">
<a href="../releases/" class="md-tabs__link">
Releases
</a>
</li>
<li class="md-tabs__item">
<a href="../roadmap/" class="md-tabs__link">
Roadmap
</a>
</li>
<li class="md-tabs__item">
<a href="../blogs/" class="md-tabs__link">
Blogs
</a>
</li>
<li class="md-tabs__item">
<a href="../talks/" class="md-tabs__link">
Talks
</a>
</li>
<li class="md-tabs__item">
<a href="../vendors/" class="md-tabs__link">
Vendors
</a>
</li>
<li class="md-tabs__item md-tabs__item--active">
<a href="../community/" class="md-tabs__link">
Project
</a>
</li>
<li class="md-tabs__item">
<a href="../catalog/" class="md-tabs__link">
Concepts
</a>
</li>
<li class="md-tabs__item">
<a href="https://www.apache.org/foundation/sponsorship.html" class="md-tabs__link">
ASF
</a>
</li>
</ul>
</div>
</nav>
</header>
<div class="md-container" data-md-component="container">
<main class="md-main" data-md-component="main">
<div class="md-main__inner md-grid">
<div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
<nav class="md-nav md-nav--primary md-nav--lifted" aria-label="Navigation" data-md-level="0">
<label class="md-nav__title" for="__drawer">
<a href=".." title="Apache Iceberg" class="md-nav__button md-logo" aria-label="Apache Iceberg" data-md-component="logo">
<img src="../assets/images/Iceberg-logo.svg" alt="logo">
</a>
Apache Iceberg
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href=".." class="md-nav__link">
<span class="md-ellipsis">
Home
</span>
</a>
</li>
<li class="md-nav__item md-nav__item--section md-nav__item--nested">
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_2" >
<label class="md-nav__link" for="__nav_2" id="__nav_2_label" tabindex="">
<span class="md-ellipsis">
Quickstart
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_2_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_2">
<span class="md-nav__icon md-icon"></span>
Quickstart
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../spark-quickstart/" class="md-nav__link">
<span class="md-ellipsis">
Spark
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../hive-quickstart/" class="md-nav__link">
<span class="md-ellipsis">
Hive
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--section md-nav__item--nested">
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_3" >
<label class="md-nav__link" for="__nav_3" id="__nav_3_label" tabindex="">
<span class="md-ellipsis">
Docs
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_3_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_3">
<span class="md-nav__icon md-icon"></span>
Docs
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_3_1" >
<label class="md-nav__link" for="__nav_3_1" id="__nav_3_1_label" tabindex="0">
<span class="md-ellipsis">
latest
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="2" aria-labelledby="__nav_3_1_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_3_1">
<span class="md-nav__icon md-icon"></span>
latest
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../docs/latest/" class="md-nav__link">
<span class="md-ellipsis">
Introduction
</span>
</a>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_3_1_2" >
<label class="md-nav__link" for="__nav_3_1_2" id="__nav_3_1_2_label" tabindex="0">
<span class="md-ellipsis">
Tables
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="3" aria-labelledby="__nav_3_1_2_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_3_1_2">
<span class="md-nav__icon md-icon"></span>
Tables
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../docs/latest/branching/" class="md-nav__link">
<span class="md-ellipsis">
Branching and Tagging
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/latest/configuration/" class="md-nav__link">
<span class="md-ellipsis">
Configuration
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/latest/evolution/" class="md-nav__link">
<span class="md-ellipsis">
Evolution
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/latest/maintenance/" class="md-nav__link">
<span class="md-ellipsis">
Maintenance
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/latest/metrics-reporting/" class="md-nav__link">
<span class="md-ellipsis">
Metrics Reporting
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/latest/partitioning/" class="md-nav__link">
<span class="md-ellipsis">
Partitioning
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/latest/performance/" class="md-nav__link">
<span class="md-ellipsis">
Performance
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/latest/reliability/" class="md-nav__link">
<span class="md-ellipsis">
Reliability
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/latest/schemas/" class="md-nav__link">
<span class="md-ellipsis">
Schemas
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_3_1_3" >
<label class="md-nav__link" for="__nav_3_1_3" id="__nav_3_1_3_label" tabindex="0">
<span class="md-ellipsis">
Spark
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="3" aria-labelledby="__nav_3_1_3_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_3_1_3">
<span class="md-nav__icon md-icon"></span>
Spark
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../docs/latest/spark-getting-started/" class="md-nav__link">
<span class="md-ellipsis">
Getting Started
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/latest/spark-configuration/" class="md-nav__link">
<span class="md-ellipsis">
Configuration
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/latest/spark-ddl/" class="md-nav__link">
<span class="md-ellipsis">
DDL
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/latest/spark-procedures/" class="md-nav__link">
<span class="md-ellipsis">
Procedures
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/latest/spark-queries/" class="md-nav__link">
<span class="md-ellipsis">
Queries
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/latest/spark-structured-streaming/" class="md-nav__link">
<span class="md-ellipsis">
Structured Streaming
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/latest/spark-writes/" class="md-nav__link">
<span class="md-ellipsis">
Writes
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_3_1_4" >
<label class="md-nav__link" for="__nav_3_1_4" id="__nav_3_1_4_label" tabindex="0">
<span class="md-ellipsis">
Flink
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="3" aria-labelledby="__nav_3_1_4_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_3_1_4">
<span class="md-nav__icon md-icon"></span>
Flink
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../docs/latest/flink/" class="md-nav__link">
<span class="md-ellipsis">
Flink Getting Started
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/latest/flink-connector/" class="md-nav__link">
<span class="md-ellipsis">
Flink Connector
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/latest/flink-ddl/" class="md-nav__link">
<span class="md-ellipsis">
Flink DDL
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/latest/flink-queries/" class="md-nav__link">
<span class="md-ellipsis">
Flink Queries
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/latest/flink-writes/" class="md-nav__link">
<span class="md-ellipsis">
Flink Writes
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/latest/flink-actions/" class="md-nav__link">
<span class="md-ellipsis">
Flink Actions
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/latest/flink-configuration/" class="md-nav__link">
<span class="md-ellipsis">
Flink Configuration
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="../docs/latest/hive/" class="md-nav__link">
<span class="md-ellipsis">
Hive
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://trino.io/docs/current/connector/iceberg.html" class="md-nav__link">
<span class="md-ellipsis">
Trino
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://clickhouse.com/docs/en/engines/table-engines/integrations/iceberg" class="md-nav__link">
<span class="md-ellipsis">
Clickhouse
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://prestodb.io/docs/current/connector/iceberg.html" class="md-nav__link">
<span class="md-ellipsis">
Presto
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://docs.dremio.com/data-formats/apache-iceberg/" class="md-nav__link">
<span class="md-ellipsis">
Dremio
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://docs.starrocks.io/en-us/latest/data_source/catalog/iceberg_catalog" class="md-nav__link">
<span class="md-ellipsis">
Starrocks
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://docs.aws.amazon.com/athena/latest/ug/querying-iceberg.html" class="md-nav__link">
<span class="md-ellipsis">
Amazon Athena
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://docs.aws.amazon.com/emr/latest/ReleaseGuide/emr-iceberg-use-cluster.html" class="md-nav__link">
<span class="md-ellipsis">
Amazon EMR
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://impala.apache.org/docs/build/html/topics/impala_iceberg.html" class="md-nav__link">
<span class="md-ellipsis">
Impala
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://doris.apache.org/docs/dev/lakehouse/multi-catalog/iceberg" class="md-nav__link">
<span class="md-ellipsis">
Doris
</span>
</a>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_3_1_15" >
<label class="md-nav__link" for="__nav_3_1_15" id="__nav_3_1_15_label" tabindex="0">
<span class="md-ellipsis">
Integrations
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="3" aria-labelledby="__nav_3_1_15_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_3_1_15">
<span class="md-nav__icon md-icon"></span>
Integrations
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../docs/latest/aws/" class="md-nav__link">
<span class="md-ellipsis">
AWS
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/latest/dell/" class="md-nav__link">
<span class="md-ellipsis">
Dell
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/latest/jdbc/" class="md-nav__link">
<span class="md-ellipsis">
JDBC
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/latest/nessie/" class="md-nav__link">
<span class="md-ellipsis">
Nessie
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_3_1_16" >
<label class="md-nav__link" for="__nav_3_1_16" id="__nav_3_1_16_label" tabindex="0">
<span class="md-ellipsis">
API
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="3" aria-labelledby="__nav_3_1_16_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_3_1_16">
<span class="md-nav__icon md-icon"></span>
API
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../docs/latest/java-api-quickstart/" class="md-nav__link">
<span class="md-ellipsis">
Java Quickstart
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/latest/api/" class="md-nav__link">
<span class="md-ellipsis">
Java API
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/latest/custom-catalog/" class="md-nav__link">
<span class="md-ellipsis">
Java Custom Catalog
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_3_1_17" >
<label class="md-nav__link" for="__nav_3_1_17" id="__nav_3_1_17_label" tabindex="0">
<span class="md-ellipsis">
Migration
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="3" aria-labelledby="__nav_3_1_17_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_3_1_17">
<span class="md-nav__icon md-icon"></span>
Migration
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../docs/latest/table-migration/" class="md-nav__link">
<span class="md-ellipsis">
Overview
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/latest/hive-migration/" class="md-nav__link">
<span class="md-ellipsis">
Hive Migration
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/latest/delta-lake-migration/" class="md-nav__link">
<span class="md-ellipsis">
Delta Lake Migration
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="../javadoc/latest" class="md-nav__link">
<span class="md-ellipsis">
Javadoc
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://py.iceberg.apache.org/" class="md-nav__link">
<span class="md-ellipsis">
PyIceberg
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_3_2" >
<label class="md-nav__link" for="__nav_3_2" id="__nav_3_2_label" tabindex="0">
<span class="md-ellipsis">
1.4.3
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="2" aria-labelledby="__nav_3_2_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_3_2">
<span class="md-nav__icon md-icon"></span>
1.4.3
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../docs/1.4.3/" class="md-nav__link">
<span class="md-ellipsis">
Introduction
</span>
</a>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_3_2_2" >
<label class="md-nav__link" for="__nav_3_2_2" id="__nav_3_2_2_label" tabindex="0">
<span class="md-ellipsis">
Tables
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="3" aria-labelledby="__nav_3_2_2_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_3_2_2">
<span class="md-nav__icon md-icon"></span>
Tables
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../docs/1.4.3/branching/" class="md-nav__link">
<span class="md-ellipsis">
Branching and Tagging
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.3/configuration/" class="md-nav__link">
<span class="md-ellipsis">
Configuration
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.3/evolution/" class="md-nav__link">
<span class="md-ellipsis">
Evolution
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.3/maintenance/" class="md-nav__link">
<span class="md-ellipsis">
Maintenance
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.3/metrics-reporting/" class="md-nav__link">
<span class="md-ellipsis">
Metrics Reporting
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.3/partitioning/" class="md-nav__link">
<span class="md-ellipsis">
Partitioning
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.3/performance/" class="md-nav__link">
<span class="md-ellipsis">
Performance
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.3/reliability/" class="md-nav__link">
<span class="md-ellipsis">
Reliability
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.3/schemas/" class="md-nav__link">
<span class="md-ellipsis">
Schemas
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_3_2_3" >
<label class="md-nav__link" for="__nav_3_2_3" id="__nav_3_2_3_label" tabindex="0">
<span class="md-ellipsis">
Spark
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="3" aria-labelledby="__nav_3_2_3_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_3_2_3">
<span class="md-nav__icon md-icon"></span>
Spark
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../docs/1.4.3/spark-getting-started/" class="md-nav__link">
<span class="md-ellipsis">
Getting Started
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.3/spark-configuration/" class="md-nav__link">
<span class="md-ellipsis">
Configuration
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.3/spark-ddl/" class="md-nav__link">
<span class="md-ellipsis">
DDL
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.3/spark-procedures/" class="md-nav__link">
<span class="md-ellipsis">
Procedures
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.3/spark-queries/" class="md-nav__link">
<span class="md-ellipsis">
Queries
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.3/spark-structured-streaming/" class="md-nav__link">
<span class="md-ellipsis">
Structured Streaming
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.3/spark-writes/" class="md-nav__link">
<span class="md-ellipsis">
Writes
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_3_2_4" >
<label class="md-nav__link" for="__nav_3_2_4" id="__nav_3_2_4_label" tabindex="0">
<span class="md-ellipsis">
Flink
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="3" aria-labelledby="__nav_3_2_4_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_3_2_4">
<span class="md-nav__icon md-icon"></span>
Flink
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../docs/1.4.3/flink/" class="md-nav__link">
<span class="md-ellipsis">
Flink Getting Started
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.3/flink-connector/" class="md-nav__link">
<span class="md-ellipsis">
Flink Connector
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.3/flink-ddl/" class="md-nav__link">
<span class="md-ellipsis">
Flink DDL
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.3/flink-queries/" class="md-nav__link">
<span class="md-ellipsis">
Flink Queries
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.3/flink-writes/" class="md-nav__link">
<span class="md-ellipsis">
Flink Writes
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.3/flink-actions/" class="md-nav__link">
<span class="md-ellipsis">
Flink Actions
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.3/flink-configuration/" class="md-nav__link">
<span class="md-ellipsis">
Flink Configuration
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.3/hive/" class="md-nav__link">
<span class="md-ellipsis">
Hive
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://trino.io/docs/current/connector/iceberg.html" class="md-nav__link">
<span class="md-ellipsis">
Trino
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://clickhouse.com/docs/en/engines/table-engines/integrations/iceberg" class="md-nav__link">
<span class="md-ellipsis">
Clickhouse
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://prestodb.io/docs/current/connector/iceberg.html" class="md-nav__link">
<span class="md-ellipsis">
Presto
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://docs.dremio.com/data-formats/apache-iceberg/" class="md-nav__link">
<span class="md-ellipsis">
Dremio
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://docs.starrocks.io/en-us/latest/data_source/catalog/iceberg_catalog" class="md-nav__link">
<span class="md-ellipsis">
Starrocks
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://docs.aws.amazon.com/athena/latest/ug/querying-iceberg.html" class="md-nav__link">
<span class="md-ellipsis">
Amazon Athena
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://docs.aws.amazon.com/emr/latest/ReleaseGuide/emr-iceberg-use-cluster.html" class="md-nav__link">
<span class="md-ellipsis">
Amazon EMR
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://impala.apache.org/docs/build/html/topics/impala_iceberg.html" class="md-nav__link">
<span class="md-ellipsis">
Impala
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://doris.apache.org/docs/dev/lakehouse/multi-catalog/iceberg" class="md-nav__link">
<span class="md-ellipsis">
Doris
</span>
</a>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_3_2_15" >
<label class="md-nav__link" for="__nav_3_2_15" id="__nav_3_2_15_label" tabindex="0">
<span class="md-ellipsis">
Integrations
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="3" aria-labelledby="__nav_3_2_15_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_3_2_15">
<span class="md-nav__icon md-icon"></span>
Integrations
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../docs/1.4.3/aws/" class="md-nav__link">
<span class="md-ellipsis">
AWS
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.3/dell/" class="md-nav__link">
<span class="md-ellipsis">
Dell
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.3/jdbc/" class="md-nav__link">
<span class="md-ellipsis">
JDBC
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.3/nessie/" class="md-nav__link">
<span class="md-ellipsis">
Nessie
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_3_2_16" >
<label class="md-nav__link" for="__nav_3_2_16" id="__nav_3_2_16_label" tabindex="0">
<span class="md-ellipsis">
API
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="3" aria-labelledby="__nav_3_2_16_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_3_2_16">
<span class="md-nav__icon md-icon"></span>
API
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../docs/1.4.3/java-api-quickstart/" class="md-nav__link">
<span class="md-ellipsis">
Java Quickstart
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.3/api/" class="md-nav__link">
<span class="md-ellipsis">
Java API
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.3/custom-catalog/" class="md-nav__link">
<span class="md-ellipsis">
Java Custom Catalog
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_3_2_17" >
<label class="md-nav__link" for="__nav_3_2_17" id="__nav_3_2_17_label" tabindex="0">
<span class="md-ellipsis">
Migration
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="3" aria-labelledby="__nav_3_2_17_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_3_2_17">
<span class="md-nav__icon md-icon"></span>
Migration
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../docs/1.4.3/table-migration/" class="md-nav__link">
<span class="md-ellipsis">
Overview
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.3/hive-migration/" class="md-nav__link">
<span class="md-ellipsis">
Hive Migration
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.3/delta-lake-migration/" class="md-nav__link">
<span class="md-ellipsis">
Delta Lake Migration
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="../javadoc/1.4.3" class="md-nav__link">
<span class="md-ellipsis">
Javadoc
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://py.iceberg.apache.org/" class="md-nav__link">
<span class="md-ellipsis">
PyIceberg
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_3_3" >
<label class="md-nav__link" for="__nav_3_3" id="__nav_3_3_label" tabindex="0">
<span class="md-ellipsis">
1.4.2
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="2" aria-labelledby="__nav_3_3_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_3_3">
<span class="md-nav__icon md-icon"></span>
1.4.2
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../docs/1.4.2/" class="md-nav__link">
<span class="md-ellipsis">
Introduction
</span>
</a>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_3_3_2" >
<label class="md-nav__link" for="__nav_3_3_2" id="__nav_3_3_2_label" tabindex="0">
<span class="md-ellipsis">
Tables
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="3" aria-labelledby="__nav_3_3_2_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_3_3_2">
<span class="md-nav__icon md-icon"></span>
Tables
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../docs/1.4.2/branching/" class="md-nav__link">
<span class="md-ellipsis">
Branching and Tagging
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.2/configuration/" class="md-nav__link">
<span class="md-ellipsis">
Configuration
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.2/evolution/" class="md-nav__link">
<span class="md-ellipsis">
Evolution
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.2/maintenance/" class="md-nav__link">
<span class="md-ellipsis">
Maintenance
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.2/metrics-reporting/" class="md-nav__link">
<span class="md-ellipsis">
Metrics Reporting
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.2/partitioning/" class="md-nav__link">
<span class="md-ellipsis">
Partitioning
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.2/performance/" class="md-nav__link">
<span class="md-ellipsis">
Performance
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.2/reliability/" class="md-nav__link">
<span class="md-ellipsis">
Reliability
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.2/schemas/" class="md-nav__link">
<span class="md-ellipsis">
Schemas
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_3_3_3" >
<label class="md-nav__link" for="__nav_3_3_3" id="__nav_3_3_3_label" tabindex="0">
<span class="md-ellipsis">
Spark
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="3" aria-labelledby="__nav_3_3_3_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_3_3_3">
<span class="md-nav__icon md-icon"></span>
Spark
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../docs/1.4.2/spark-getting-started/" class="md-nav__link">
<span class="md-ellipsis">
Getting Started
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.2/spark-configuration/" class="md-nav__link">
<span class="md-ellipsis">
Configuration
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.2/spark-ddl/" class="md-nav__link">
<span class="md-ellipsis">
DDL
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.2/spark-procedures/" class="md-nav__link">
<span class="md-ellipsis">
Procedures
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.2/spark-queries/" class="md-nav__link">
<span class="md-ellipsis">
Queries
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.2/spark-structured-streaming/" class="md-nav__link">
<span class="md-ellipsis">
Structured Streaming
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.2/spark-writes/" class="md-nav__link">
<span class="md-ellipsis">
Writes
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_3_3_4" >
<label class="md-nav__link" for="__nav_3_3_4" id="__nav_3_3_4_label" tabindex="0">
<span class="md-ellipsis">
Flink
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="3" aria-labelledby="__nav_3_3_4_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_3_3_4">
<span class="md-nav__icon md-icon"></span>
Flink
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../docs/1.4.2/flink/" class="md-nav__link">
<span class="md-ellipsis">
Flink Getting Started
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.2/flink-connector/" class="md-nav__link">
<span class="md-ellipsis">
Flink Connector
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.2/flink-ddl/" class="md-nav__link">
<span class="md-ellipsis">
Flink DDL
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.2/flink-queries/" class="md-nav__link">
<span class="md-ellipsis">
Flink Queries
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.2/flink-writes/" class="md-nav__link">
<span class="md-ellipsis">
Flink Writes
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.2/flink-actions/" class="md-nav__link">
<span class="md-ellipsis">
Flink Actions
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.2/flink-configuration/" class="md-nav__link">
<span class="md-ellipsis">
Flink Configuration
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.2/hive/" class="md-nav__link">
<span class="md-ellipsis">
Hive
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://trino.io/docs/current/connector/iceberg.html" class="md-nav__link">
<span class="md-ellipsis">
Trino
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://clickhouse.com/docs/en/engines/table-engines/integrations/iceberg" class="md-nav__link">
<span class="md-ellipsis">
Clickhouse
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://prestodb.io/docs/current/connector/iceberg.html" class="md-nav__link">
<span class="md-ellipsis">
Presto
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://docs.dremio.com/data-formats/apache-iceberg/" class="md-nav__link">
<span class="md-ellipsis">
Dremio
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://docs.starrocks.io/en-us/latest/data_source/catalog/iceberg_catalog" class="md-nav__link">
<span class="md-ellipsis">
Starrocks
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://docs.aws.amazon.com/athena/latest/ug/querying-iceberg.html" class="md-nav__link">
<span class="md-ellipsis">
Amazon Athena
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://docs.aws.amazon.com/emr/latest/ReleaseGuide/emr-iceberg-use-cluster.html" class="md-nav__link">
<span class="md-ellipsis">
Amazon EMR
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://impala.apache.org/docs/build/html/topics/impala_iceberg.html" class="md-nav__link">
<span class="md-ellipsis">
Impala
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://doris.apache.org/docs/dev/lakehouse/multi-catalog/iceberg" class="md-nav__link">
<span class="md-ellipsis">
Doris
</span>
</a>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_3_3_15" >
<label class="md-nav__link" for="__nav_3_3_15" id="__nav_3_3_15_label" tabindex="0">
<span class="md-ellipsis">
Integrations
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="3" aria-labelledby="__nav_3_3_15_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_3_3_15">
<span class="md-nav__icon md-icon"></span>
Integrations
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../docs/1.4.2/aws/" class="md-nav__link">
<span class="md-ellipsis">
AWS
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.2/dell/" class="md-nav__link">
<span class="md-ellipsis">
Dell
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.2/jdbc/" class="md-nav__link">
<span class="md-ellipsis">
JDBC
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.2/nessie/" class="md-nav__link">
<span class="md-ellipsis">
Nessie
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_3_3_16" >
<label class="md-nav__link" for="__nav_3_3_16" id="__nav_3_3_16_label" tabindex="0">
<span class="md-ellipsis">
API
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="3" aria-labelledby="__nav_3_3_16_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_3_3_16">
<span class="md-nav__icon md-icon"></span>
API
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../docs/1.4.2/java-api-quickstart/" class="md-nav__link">
<span class="md-ellipsis">
Java Quickstart
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.2/api/" class="md-nav__link">
<span class="md-ellipsis">
Java API
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.2/custom-catalog/" class="md-nav__link">
<span class="md-ellipsis">
Java Custom Catalog
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_3_3_17" >
<label class="md-nav__link" for="__nav_3_3_17" id="__nav_3_3_17_label" tabindex="0">
<span class="md-ellipsis">
Migration
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="3" aria-labelledby="__nav_3_3_17_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_3_3_17">
<span class="md-nav__icon md-icon"></span>
Migration
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../docs/1.4.2/table-migration/" class="md-nav__link">
<span class="md-ellipsis">
Overview
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.2/hive-migration/" class="md-nav__link">
<span class="md-ellipsis">
Hive Migration
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.2/delta-lake-migration/" class="md-nav__link">
<span class="md-ellipsis">
Delta Lake Migration
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="../javadoc/1.4.2" class="md-nav__link">
<span class="md-ellipsis">
Javadoc
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://py.iceberg.apache.org/" class="md-nav__link">
<span class="md-ellipsis">
PyIceberg
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_3_4" >
<label class="md-nav__link" for="__nav_3_4" id="__nav_3_4_label" tabindex="0">
<span class="md-ellipsis">
1.4.1
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="2" aria-labelledby="__nav_3_4_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_3_4">
<span class="md-nav__icon md-icon"></span>
1.4.1
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../docs/1.4.1/" class="md-nav__link">
<span class="md-ellipsis">
Introduction
</span>
</a>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_3_4_2" >
<label class="md-nav__link" for="__nav_3_4_2" id="__nav_3_4_2_label" tabindex="0">
<span class="md-ellipsis">
Tables
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="3" aria-labelledby="__nav_3_4_2_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_3_4_2">
<span class="md-nav__icon md-icon"></span>
Tables
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../docs/1.4.1/branching/" class="md-nav__link">
<span class="md-ellipsis">
Branching and Tagging
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.1/configuration/" class="md-nav__link">
<span class="md-ellipsis">
Configuration
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.1/evolution/" class="md-nav__link">
<span class="md-ellipsis">
Evolution
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.1/maintenance/" class="md-nav__link">
<span class="md-ellipsis">
Maintenance
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.1/metrics-reporting/" class="md-nav__link">
<span class="md-ellipsis">
Metrics Reporting
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.1/partitioning/" class="md-nav__link">
<span class="md-ellipsis">
Partitioning
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.1/performance/" class="md-nav__link">
<span class="md-ellipsis">
Performance
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.1/reliability/" class="md-nav__link">
<span class="md-ellipsis">
Reliability
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.1/schemas/" class="md-nav__link">
<span class="md-ellipsis">
Schemas
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_3_4_3" >
<label class="md-nav__link" for="__nav_3_4_3" id="__nav_3_4_3_label" tabindex="0">
<span class="md-ellipsis">
Spark
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="3" aria-labelledby="__nav_3_4_3_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_3_4_3">
<span class="md-nav__icon md-icon"></span>
Spark
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../docs/1.4.1/spark-getting-started/" class="md-nav__link">
<span class="md-ellipsis">
Getting Started
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.1/spark-configuration/" class="md-nav__link">
<span class="md-ellipsis">
Configuration
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.1/spark-ddl/" class="md-nav__link">
<span class="md-ellipsis">
DDL
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.1/spark-procedures/" class="md-nav__link">
<span class="md-ellipsis">
Procedures
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.1/spark-queries/" class="md-nav__link">
<span class="md-ellipsis">
Queries
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.1/spark-structured-streaming/" class="md-nav__link">
<span class="md-ellipsis">
Structured Streaming
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.1/spark-writes/" class="md-nav__link">
<span class="md-ellipsis">
Writes
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_3_4_4" >
<label class="md-nav__link" for="__nav_3_4_4" id="__nav_3_4_4_label" tabindex="0">
<span class="md-ellipsis">
Flink
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="3" aria-labelledby="__nav_3_4_4_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_3_4_4">
<span class="md-nav__icon md-icon"></span>
Flink
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../docs/1.4.1/flink/" class="md-nav__link">
<span class="md-ellipsis">
Flink Getting Started
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.1/flink-connector/" class="md-nav__link">
<span class="md-ellipsis">
Flink Connector
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.1/flink-ddl/" class="md-nav__link">
<span class="md-ellipsis">
Flink DDL
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.1/flink-queries/" class="md-nav__link">
<span class="md-ellipsis">
Flink Queries
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.1/flink-writes/" class="md-nav__link">
<span class="md-ellipsis">
Flink Writes
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.1/flink-actions/" class="md-nav__link">
<span class="md-ellipsis">
Flink Actions
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.1/flink-configuration/" class="md-nav__link">
<span class="md-ellipsis">
Flink Configuration
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.1/hive/" class="md-nav__link">
<span class="md-ellipsis">
Hive
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://trino.io/docs/current/connector/iceberg.html" class="md-nav__link">
<span class="md-ellipsis">
Trino
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://clickhouse.com/docs/en/engines/table-engines/integrations/iceberg" class="md-nav__link">
<span class="md-ellipsis">
Clickhouse
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://prestodb.io/docs/current/connector/iceberg.html" class="md-nav__link">
<span class="md-ellipsis">
Presto
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://docs.dremio.com/data-formats/apache-iceberg/" class="md-nav__link">
<span class="md-ellipsis">
Dremio
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://docs.starrocks.io/en-us/latest/data_source/catalog/iceberg_catalog" class="md-nav__link">
<span class="md-ellipsis">
Starrocks
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://docs.aws.amazon.com/athena/latest/ug/querying-iceberg.html" class="md-nav__link">
<span class="md-ellipsis">
Amazon Athena
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://docs.aws.amazon.com/emr/latest/ReleaseGuide/emr-iceberg-use-cluster.html" class="md-nav__link">
<span class="md-ellipsis">
Amazon EMR
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://impala.apache.org/docs/build/html/topics/impala_iceberg.html" class="md-nav__link">
<span class="md-ellipsis">
Impala
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://doris.apache.org/docs/dev/lakehouse/multi-catalog/iceberg" class="md-nav__link">
<span class="md-ellipsis">
Doris
</span>
</a>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_3_4_15" >
<label class="md-nav__link" for="__nav_3_4_15" id="__nav_3_4_15_label" tabindex="0">
<span class="md-ellipsis">
Integrations
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="3" aria-labelledby="__nav_3_4_15_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_3_4_15">
<span class="md-nav__icon md-icon"></span>
Integrations
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../docs/1.4.1/aws/" class="md-nav__link">
<span class="md-ellipsis">
AWS
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.1/dell/" class="md-nav__link">
<span class="md-ellipsis">
Dell
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.1/jdbc/" class="md-nav__link">
<span class="md-ellipsis">
JDBC
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.1/nessie/" class="md-nav__link">
<span class="md-ellipsis">
Nessie
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_3_4_16" >
<label class="md-nav__link" for="__nav_3_4_16" id="__nav_3_4_16_label" tabindex="0">
<span class="md-ellipsis">
API
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="3" aria-labelledby="__nav_3_4_16_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_3_4_16">
<span class="md-nav__icon md-icon"></span>
API
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../docs/1.4.1/java-api-quickstart/" class="md-nav__link">
<span class="md-ellipsis">
Java Quickstart
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.1/api/" class="md-nav__link">
<span class="md-ellipsis">
Java API
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.1/custom-catalog/" class="md-nav__link">
<span class="md-ellipsis">
Java Custom Catalog
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_3_4_17" >
<label class="md-nav__link" for="__nav_3_4_17" id="__nav_3_4_17_label" tabindex="0">
<span class="md-ellipsis">
Migration
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="3" aria-labelledby="__nav_3_4_17_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_3_4_17">
<span class="md-nav__icon md-icon"></span>
Migration
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../docs/1.4.1/table-migration/" class="md-nav__link">
<span class="md-ellipsis">
Overview
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.1/hive-migration/" class="md-nav__link">
<span class="md-ellipsis">
Hive Migration
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.1/delta-lake-migration/" class="md-nav__link">
<span class="md-ellipsis">
Delta Lake Migration
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="../javadoc/1.4.1/" class="md-nav__link">
<span class="md-ellipsis">
Javadoc
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://py.iceberg.apache.org/" class="md-nav__link">
<span class="md-ellipsis">
PyIceberg
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_3_5" >
<label class="md-nav__link" for="__nav_3_5" id="__nav_3_5_label" tabindex="0">
<span class="md-ellipsis">
1.4.0
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="2" aria-labelledby="__nav_3_5_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_3_5">
<span class="md-nav__icon md-icon"></span>
1.4.0
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../docs/1.4.0/" class="md-nav__link">
<span class="md-ellipsis">
Introduction
</span>
</a>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_3_5_2" >
<label class="md-nav__link" for="__nav_3_5_2" id="__nav_3_5_2_label" tabindex="0">
<span class="md-ellipsis">
Tables
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="3" aria-labelledby="__nav_3_5_2_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_3_5_2">
<span class="md-nav__icon md-icon"></span>
Tables
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../docs/1.4.0/branching/" class="md-nav__link">
<span class="md-ellipsis">
Branching and Tagging
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.0/configuration/" class="md-nav__link">
<span class="md-ellipsis">
Configuration
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.0/evolution/" class="md-nav__link">
<span class="md-ellipsis">
Evolution
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.0/maintenance/" class="md-nav__link">
<span class="md-ellipsis">
Maintenance
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.0/metrics-reporting/" class="md-nav__link">
<span class="md-ellipsis">
Metrics Reporting
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.0/partitioning/" class="md-nav__link">
<span class="md-ellipsis">
Partitioning
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.0/performance/" class="md-nav__link">
<span class="md-ellipsis">
Performance
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.0/reliability/" class="md-nav__link">
<span class="md-ellipsis">
Reliability
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.0/schemas/" class="md-nav__link">
<span class="md-ellipsis">
Schemas
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_3_5_3" >
<label class="md-nav__link" for="__nav_3_5_3" id="__nav_3_5_3_label" tabindex="0">
<span class="md-ellipsis">
Spark
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="3" aria-labelledby="__nav_3_5_3_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_3_5_3">
<span class="md-nav__icon md-icon"></span>
Spark
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../docs/1.4.0/spark-getting-started/" class="md-nav__link">
<span class="md-ellipsis">
Getting Started
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.0/spark-configuration/" class="md-nav__link">
<span class="md-ellipsis">
Configuration
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.0/spark-ddl/" class="md-nav__link">
<span class="md-ellipsis">
DDL
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.0/spark-procedures/" class="md-nav__link">
<span class="md-ellipsis">
Procedures
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.0/spark-queries/" class="md-nav__link">
<span class="md-ellipsis">
Queries
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.0/spark-structured-streaming/" class="md-nav__link">
<span class="md-ellipsis">
Structured Streaming
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.0/spark-writes/" class="md-nav__link">
<span class="md-ellipsis">
Writes
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_3_5_4" >
<label class="md-nav__link" for="__nav_3_5_4" id="__nav_3_5_4_label" tabindex="0">
<span class="md-ellipsis">
Flink
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="3" aria-labelledby="__nav_3_5_4_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_3_5_4">
<span class="md-nav__icon md-icon"></span>
Flink
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../docs/1.4.0/flink/" class="md-nav__link">
<span class="md-ellipsis">
Flink Getting Started
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.0/flink-connector/" class="md-nav__link">
<span class="md-ellipsis">
Flink Connector
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.0/flink-ddl/" class="md-nav__link">
<span class="md-ellipsis">
Flink DDL
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.0/flink-queries/" class="md-nav__link">
<span class="md-ellipsis">
Flink Queries
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.0/flink-writes/" class="md-nav__link">
<span class="md-ellipsis">
Flink Writes
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.0/flink-actions/" class="md-nav__link">
<span class="md-ellipsis">
Flink Actions
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.0/flink-configuration/" class="md-nav__link">
<span class="md-ellipsis">
Flink Configuration
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.0/hive/" class="md-nav__link">
<span class="md-ellipsis">
Hive
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://trino.io/docs/current/connector/iceberg.html" class="md-nav__link">
<span class="md-ellipsis">
Trino
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://clickhouse.com/docs/en/engines/table-engines/integrations/iceberg" class="md-nav__link">
<span class="md-ellipsis">
Clickhouse
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://prestodb.io/docs/current/connector/iceberg.html" class="md-nav__link">
<span class="md-ellipsis">
Presto
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://docs.dremio.com/data-formats/apache-iceberg/" class="md-nav__link">
<span class="md-ellipsis">
Dremio
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://docs.starrocks.io/en-us/latest/data_source/catalog/iceberg_catalog" class="md-nav__link">
<span class="md-ellipsis">
Starrocks
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://docs.aws.amazon.com/athena/latest/ug/querying-iceberg.html" class="md-nav__link">
<span class="md-ellipsis">
Amazon Athena
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://docs.aws.amazon.com/emr/latest/ReleaseGuide/emr-iceberg-use-cluster.html" class="md-nav__link">
<span class="md-ellipsis">
Amazon EMR
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://impala.apache.org/docs/build/html/topics/impala_iceberg.html" class="md-nav__link">
<span class="md-ellipsis">
Impala
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://doris.apache.org/docs/dev/lakehouse/multi-catalog/iceberg" class="md-nav__link">
<span class="md-ellipsis">
Doris
</span>
</a>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_3_5_15" >
<label class="md-nav__link" for="__nav_3_5_15" id="__nav_3_5_15_label" tabindex="0">
<span class="md-ellipsis">
Integrations
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="3" aria-labelledby="__nav_3_5_15_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_3_5_15">
<span class="md-nav__icon md-icon"></span>
Integrations
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../docs/1.4.0/aws/" class="md-nav__link">
<span class="md-ellipsis">
AWS
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.0/dell/" class="md-nav__link">
<span class="md-ellipsis">
Dell
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.0/jdbc/" class="md-nav__link">
<span class="md-ellipsis">
JDBC
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.0/nessie/" class="md-nav__link">
<span class="md-ellipsis">
Nessie
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_3_5_16" >
<label class="md-nav__link" for="__nav_3_5_16" id="__nav_3_5_16_label" tabindex="0">
<span class="md-ellipsis">
API
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="3" aria-labelledby="__nav_3_5_16_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_3_5_16">
<span class="md-nav__icon md-icon"></span>
API
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../docs/1.4.0/java-api-quickstart/" class="md-nav__link">
<span class="md-ellipsis">
Java Quickstart
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.0/api/" class="md-nav__link">
<span class="md-ellipsis">
Java API
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.0/custom-catalog/" class="md-nav__link">
<span class="md-ellipsis">
Java Custom Catalog
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_3_5_17" >
<label class="md-nav__link" for="__nav_3_5_17" id="__nav_3_5_17_label" tabindex="0">
<span class="md-ellipsis">
Migration
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="3" aria-labelledby="__nav_3_5_17_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_3_5_17">
<span class="md-nav__icon md-icon"></span>
Migration
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../docs/1.4.0/table-migration/" class="md-nav__link">
<span class="md-ellipsis">
Overview
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.0/hive-migration/" class="md-nav__link">
<span class="md-ellipsis">
Hive Migration
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../docs/1.4.0/delta-lake-migration/" class="md-nav__link">
<span class="md-ellipsis">
Delta Lake Migration
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="../javadoc/1.4.0/" class="md-nav__link">
<span class="md-ellipsis">
Javadoc
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://py.iceberg.apache.org/" class="md-nav__link">
<span class="md-ellipsis">
PyIceberg
</span>
</a>
</li>
</ul>
</nav>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="../releases/" class="md-nav__link">
<span class="md-ellipsis">
Releases
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../roadmap/" class="md-nav__link">
<span class="md-ellipsis">
Roadmap
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../blogs/" class="md-nav__link">
<span class="md-ellipsis">
Blogs
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../talks/" class="md-nav__link">
<span class="md-ellipsis">
Talks
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../vendors/" class="md-nav__link">
<span class="md-ellipsis">
Vendors
</span>
</a>
</li>
<li class="md-nav__item md-nav__item--active md-nav__item--section md-nav__item--nested">
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_9" checked>
<label class="md-nav__link" for="__nav_9" id="__nav_9_label" tabindex="">
<span class="md-ellipsis">
Project
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_9_label" aria-expanded="true">
<label class="md-nav__title" for="__nav_9">
<span class="md-nav__icon md-icon"></span>
Project
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../community/" class="md-nav__link">
<span class="md-ellipsis">
Join
</span>
</a>
</li>
<li class="md-nav__item md-nav__item--active">
<input class="md-nav__toggle md-toggle" type="checkbox" id="__toc">
<label class="md-nav__link md-nav__link--active" for="__toc">
<span class="md-ellipsis">
Spec
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<a href="./" class="md-nav__link md-nav__link--active">
<span class="md-ellipsis">
Spec
</span>
</a>
<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
<label class="md-nav__title" for="__toc">
<span class="md-nav__icon md-icon"></span>
Table of contents
</label>
<ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#format-versioning" class="md-nav__link">
<span class="md-ellipsis">
Format Versioning
</span>
</a>
<nav class="md-nav" aria-label="Format Versioning">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#version-1-analytic-data-tables" class="md-nav__link">
<span class="md-ellipsis">
Version 1: Analytic Data Tables
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#version-2-row-level-deletes" class="md-nav__link">
<span class="md-ellipsis">
Version 2: Row-level Deletes
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="#goals" class="md-nav__link">
<span class="md-ellipsis">
Goals
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#overview" class="md-nav__link">
<span class="md-ellipsis">
Overview
</span>
</a>
<nav class="md-nav" aria-label="Overview">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#optimistic-concurrency" class="md-nav__link">
<span class="md-ellipsis">
Optimistic Concurrency
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#sequence-numbers" class="md-nav__link">
<span class="md-ellipsis">
Sequence Numbers
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#row-level-deletes" class="md-nav__link">
<span class="md-ellipsis">
Row-level Deletes
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#file-system-operations" class="md-nav__link">
<span class="md-ellipsis">
File System Operations
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="#specification" class="md-nav__link">
<span class="md-ellipsis">
Specification
</span>
</a>
<nav class="md-nav" aria-label="Specification">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#terms" class="md-nav__link">
<span class="md-ellipsis">
Terms
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#writer-requirements" class="md-nav__link">
<span class="md-ellipsis">
Writer requirements
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#schemas-and-data-types" class="md-nav__link">
<span class="md-ellipsis">
Schemas and Data Types
</span>
</a>
<nav class="md-nav" aria-label="Schemas and Data Types">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#nested-types" class="md-nav__link">
<span class="md-ellipsis">
Nested Types
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#primitive-types" class="md-nav__link">
<span class="md-ellipsis">
Primitive Types
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#default-values" class="md-nav__link">
<span class="md-ellipsis">
Default values
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#schema-evolution" class="md-nav__link">
<span class="md-ellipsis">
Schema Evolution
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#column-projection" class="md-nav__link">
<span class="md-ellipsis">
Column Projection
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#identifier-field-ids" class="md-nav__link">
<span class="md-ellipsis">
Identifier Field IDs
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#reserved-field-ids" class="md-nav__link">
<span class="md-ellipsis">
Reserved Field IDs
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="#partitioning" class="md-nav__link">
<span class="md-ellipsis">
Partitioning
</span>
</a>
<nav class="md-nav" aria-label="Partitioning">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#partition-transforms" class="md-nav__link">
<span class="md-ellipsis">
Partition Transforms
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#bucket-transform-details" class="md-nav__link">
<span class="md-ellipsis">
Bucket Transform Details
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#truncate-transform-details" class="md-nav__link">
<span class="md-ellipsis">
Truncate Transform Details
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#partition-evolution" class="md-nav__link">
<span class="md-ellipsis">
Partition Evolution
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="#sorting" class="md-nav__link">
<span class="md-ellipsis">
Sorting
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#manifests" class="md-nav__link">
<span class="md-ellipsis">
Manifests
</span>
</a>
<nav class="md-nav" aria-label="Manifests">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#manifest-entry-fields" class="md-nav__link">
<span class="md-ellipsis">
Manifest Entry Fields
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#sequence-number-inheritance" class="md-nav__link">
<span class="md-ellipsis">
Sequence Number Inheritance
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="#snapshots" class="md-nav__link">
<span class="md-ellipsis">
Snapshots
</span>
</a>
<nav class="md-nav" aria-label="Snapshots">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#manifest-lists" class="md-nav__link">
<span class="md-ellipsis">
Manifest Lists
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#scan-planning" class="md-nav__link">
<span class="md-ellipsis">
Scan Planning
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#snapshot-reference" class="md-nav__link">
<span class="md-ellipsis">
Snapshot Reference
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#snapshot-retention-policy" class="md-nav__link">
<span class="md-ellipsis">
Snapshot Retention Policy
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="#table-metadata" class="md-nav__link">
<span class="md-ellipsis">
Table Metadata
</span>
</a>
<nav class="md-nav" aria-label="Table Metadata">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#table-metadata-fields" class="md-nav__link">
<span class="md-ellipsis">
Table Metadata Fields
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#table-statistics" class="md-nav__link">
<span class="md-ellipsis">
Table statistics
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#commit-conflict-resolution-and-retry" class="md-nav__link">
<span class="md-ellipsis">
Commit Conflict Resolution and Retry
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#file-system-tables" class="md-nav__link">
<span class="md-ellipsis">
File System Tables
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#metastore-tables" class="md-nav__link">
<span class="md-ellipsis">
Metastore Tables
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="#delete-formats" class="md-nav__link">
<span class="md-ellipsis">
Delete Formats
</span>
</a>
<nav class="md-nav" aria-label="Delete Formats">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#position-delete-files" class="md-nav__link">
<span class="md-ellipsis">
Position Delete Files
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#equality-delete-files" class="md-nav__link">
<span class="md-ellipsis">
Equality Delete Files
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#delete-file-stats" class="md-nav__link">
<span class="md-ellipsis">
Delete File Stats
</span>
</a>
</li>
</ul>
</nav>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="#appendix-a-format-specific-requirements" class="md-nav__link">
<span class="md-ellipsis">
Appendix A: Format-specific Requirements
</span>
</a>
<nav class="md-nav" aria-label="Appendix A: Format-specific Requirements">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#avro" class="md-nav__link">
<span class="md-ellipsis">
Avro
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#parquet" class="md-nav__link">
<span class="md-ellipsis">
Parquet
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#orc" class="md-nav__link">
<span class="md-ellipsis">
ORC
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="#appendix-b-32-bit-hash-requirements" class="md-nav__link">
<span class="md-ellipsis">
Appendix B: 32-bit Hash Requirements
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#appendix-c-json-serialization" class="md-nav__link">
<span class="md-ellipsis">
Appendix C: JSON serialization
</span>
</a>
<nav class="md-nav" aria-label="Appendix C: JSON serialization">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#schemas" class="md-nav__link">
<span class="md-ellipsis">
Schemas
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#partition-specs" class="md-nav__link">
<span class="md-ellipsis">
Partition Specs
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#sort-orders" class="md-nav__link">
<span class="md-ellipsis">
Sort Orders
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#table-metadata-and-snapshots" class="md-nav__link">
<span class="md-ellipsis">
Table Metadata and Snapshots
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#name-mapping-serialization" class="md-nav__link">
<span class="md-ellipsis">
Name Mapping Serialization
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#content-file-data-and-delete-serialization" class="md-nav__link">
<span class="md-ellipsis">
Content File (Data and Delete) Serialization
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#file-scan-task-serialization" class="md-nav__link">
<span class="md-ellipsis">
File Scan Task Serialization
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="#appendix-d-single-value-serialization" class="md-nav__link">
<span class="md-ellipsis">
Appendix D: Single-value serialization
</span>
</a>
<nav class="md-nav" aria-label="Appendix D: Single-value serialization">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#binary-single-value-serialization" class="md-nav__link">
<span class="md-ellipsis">
Binary single-value serialization
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#json-single-value-serialization" class="md-nav__link">
<span class="md-ellipsis">
JSON single-value serialization
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="#appendix-e-format-version-changes" class="md-nav__link">
<span class="md-ellipsis">
Appendix E: Format version changes
</span>
</a>
<nav class="md-nav" aria-label="Appendix E: Format version changes">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#version-3" class="md-nav__link">
<span class="md-ellipsis">
Version 3
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#version-2" class="md-nav__link">
<span class="md-ellipsis">
Version 2
</span>
</a>
</li>
</ul>
</nav>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="../view-spec/" class="md-nav__link">
<span class="md-ellipsis">
View spec
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../puffin-spec/" class="md-nav__link">
<span class="md-ellipsis">
Puffin spec
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../multi-engine-support/" class="md-nav__link">
<span class="md-ellipsis">
Multi-engine support
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../how-to-release/" class="md-nav__link">
<span class="md-ellipsis">
How to release
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../terms/" class="md-nav__link">
<span class="md-ellipsis">
Terms
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--section md-nav__item--nested">
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_10" >
<label class="md-nav__link" for="__nav_10" id="__nav_10_label" tabindex="">
<span class="md-ellipsis">
Concepts
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_10_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_10">
<span class="md-nav__icon md-icon"></span>
Concepts
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../catalog/" class="md-nav__link">
<span class="md-ellipsis">
Catalogs
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--section md-nav__item--nested">
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_11" >
<label class="md-nav__link" for="__nav_11" id="__nav_11_label" tabindex="">
<span class="md-ellipsis">
ASF
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_11_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_11">
<span class="md-nav__icon md-icon"></span>
ASF
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="https://www.apache.org/foundation/sponsorship.html" class="md-nav__link">
<span class="md-ellipsis">
Sponsorship
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://www.apache.org/events/current-event.html" class="md-nav__link">
<span class="md-ellipsis">
Events
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://www.apache.org/licenses/" class="md-nav__link">
<span class="md-ellipsis">
License
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://www.apache.org/security/" class="md-nav__link">
<span class="md-ellipsis">
Security
</span>
</a>
</li>
<li class="md-nav__item">
<a href="https://www.apache.org/foundation/thanks.html" class="md-nav__link">
<span class="md-ellipsis">
Sponsors
</span>
</a>
</li>
</ul>
</nav>
</li>
</ul>
</nav>
</div>
</div>
</div>
<div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
<label class="md-nav__title" for="__toc">
<span class="md-nav__icon md-icon"></span>
Table of contents
</label>
<ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#format-versioning" class="md-nav__link">
<span class="md-ellipsis">
Format Versioning
</span>
</a>
<nav class="md-nav" aria-label="Format Versioning">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#version-1-analytic-data-tables" class="md-nav__link">
<span class="md-ellipsis">
Version 1: Analytic Data Tables
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#version-2-row-level-deletes" class="md-nav__link">
<span class="md-ellipsis">
Version 2: Row-level Deletes
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="#goals" class="md-nav__link">
<span class="md-ellipsis">
Goals
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#overview" class="md-nav__link">
<span class="md-ellipsis">
Overview
</span>
</a>
<nav class="md-nav" aria-label="Overview">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#optimistic-concurrency" class="md-nav__link">
<span class="md-ellipsis">
Optimistic Concurrency
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#sequence-numbers" class="md-nav__link">
<span class="md-ellipsis">
Sequence Numbers
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#row-level-deletes" class="md-nav__link">
<span class="md-ellipsis">
Row-level Deletes
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#file-system-operations" class="md-nav__link">
<span class="md-ellipsis">
File System Operations
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="#specification" class="md-nav__link">
<span class="md-ellipsis">
Specification
</span>
</a>
<nav class="md-nav" aria-label="Specification">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#terms" class="md-nav__link">
<span class="md-ellipsis">
Terms
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#writer-requirements" class="md-nav__link">
<span class="md-ellipsis">
Writer requirements
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#schemas-and-data-types" class="md-nav__link">
<span class="md-ellipsis">
Schemas and Data Types
</span>
</a>
<nav class="md-nav" aria-label="Schemas and Data Types">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#nested-types" class="md-nav__link">
<span class="md-ellipsis">
Nested Types
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#primitive-types" class="md-nav__link">
<span class="md-ellipsis">
Primitive Types
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#default-values" class="md-nav__link">
<span class="md-ellipsis">
Default values
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#schema-evolution" class="md-nav__link">
<span class="md-ellipsis">
Schema Evolution
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#column-projection" class="md-nav__link">
<span class="md-ellipsis">
Column Projection
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#identifier-field-ids" class="md-nav__link">
<span class="md-ellipsis">
Identifier Field IDs
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#reserved-field-ids" class="md-nav__link">
<span class="md-ellipsis">
Reserved Field IDs
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="#partitioning" class="md-nav__link">
<span class="md-ellipsis">
Partitioning
</span>
</a>
<nav class="md-nav" aria-label="Partitioning">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#partition-transforms" class="md-nav__link">
<span class="md-ellipsis">
Partition Transforms
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#bucket-transform-details" class="md-nav__link">
<span class="md-ellipsis">
Bucket Transform Details
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#truncate-transform-details" class="md-nav__link">
<span class="md-ellipsis">
Truncate Transform Details
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#partition-evolution" class="md-nav__link">
<span class="md-ellipsis">
Partition Evolution
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="#sorting" class="md-nav__link">
<span class="md-ellipsis">
Sorting
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#manifests" class="md-nav__link">
<span class="md-ellipsis">
Manifests
</span>
</a>
<nav class="md-nav" aria-label="Manifests">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#manifest-entry-fields" class="md-nav__link">
<span class="md-ellipsis">
Manifest Entry Fields
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#sequence-number-inheritance" class="md-nav__link">
<span class="md-ellipsis">
Sequence Number Inheritance
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="#snapshots" class="md-nav__link">
<span class="md-ellipsis">
Snapshots
</span>
</a>
<nav class="md-nav" aria-label="Snapshots">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#manifest-lists" class="md-nav__link">
<span class="md-ellipsis">
Manifest Lists
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#scan-planning" class="md-nav__link">
<span class="md-ellipsis">
Scan Planning
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#snapshot-reference" class="md-nav__link">
<span class="md-ellipsis">
Snapshot Reference
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#snapshot-retention-policy" class="md-nav__link">
<span class="md-ellipsis">
Snapshot Retention Policy
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="#table-metadata" class="md-nav__link">
<span class="md-ellipsis">
Table Metadata
</span>
</a>
<nav class="md-nav" aria-label="Table Metadata">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#table-metadata-fields" class="md-nav__link">
<span class="md-ellipsis">
Table Metadata Fields
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#table-statistics" class="md-nav__link">
<span class="md-ellipsis">
Table statistics
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#commit-conflict-resolution-and-retry" class="md-nav__link">
<span class="md-ellipsis">
Commit Conflict Resolution and Retry
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#file-system-tables" class="md-nav__link">
<span class="md-ellipsis">
File System Tables
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#metastore-tables" class="md-nav__link">
<span class="md-ellipsis">
Metastore Tables
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="#delete-formats" class="md-nav__link">
<span class="md-ellipsis">
Delete Formats
</span>
</a>
<nav class="md-nav" aria-label="Delete Formats">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#position-delete-files" class="md-nav__link">
<span class="md-ellipsis">
Position Delete Files
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#equality-delete-files" class="md-nav__link">
<span class="md-ellipsis">
Equality Delete Files
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#delete-file-stats" class="md-nav__link">
<span class="md-ellipsis">
Delete File Stats
</span>
</a>
</li>
</ul>
</nav>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="#appendix-a-format-specific-requirements" class="md-nav__link">
<span class="md-ellipsis">
Appendix A: Format-specific Requirements
</span>
</a>
<nav class="md-nav" aria-label="Appendix A: Format-specific Requirements">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#avro" class="md-nav__link">
<span class="md-ellipsis">
Avro
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#parquet" class="md-nav__link">
<span class="md-ellipsis">
Parquet
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#orc" class="md-nav__link">
<span class="md-ellipsis">
ORC
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="#appendix-b-32-bit-hash-requirements" class="md-nav__link">
<span class="md-ellipsis">
Appendix B: 32-bit Hash Requirements
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#appendix-c-json-serialization" class="md-nav__link">
<span class="md-ellipsis">
Appendix C: JSON serialization
</span>
</a>
<nav class="md-nav" aria-label="Appendix C: JSON serialization">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#schemas" class="md-nav__link">
<span class="md-ellipsis">
Schemas
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#partition-specs" class="md-nav__link">
<span class="md-ellipsis">
Partition Specs
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#sort-orders" class="md-nav__link">
<span class="md-ellipsis">
Sort Orders
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#table-metadata-and-snapshots" class="md-nav__link">
<span class="md-ellipsis">
Table Metadata and Snapshots
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#name-mapping-serialization" class="md-nav__link">
<span class="md-ellipsis">
Name Mapping Serialization
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#content-file-data-and-delete-serialization" class="md-nav__link">
<span class="md-ellipsis">
Content File (Data and Delete) Serialization
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#file-scan-task-serialization" class="md-nav__link">
<span class="md-ellipsis">
File Scan Task Serialization
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="#appendix-d-single-value-serialization" class="md-nav__link">
<span class="md-ellipsis">
Appendix D: Single-value serialization
</span>
</a>
<nav class="md-nav" aria-label="Appendix D: Single-value serialization">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#binary-single-value-serialization" class="md-nav__link">
<span class="md-ellipsis">
Binary single-value serialization
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#json-single-value-serialization" class="md-nav__link">
<span class="md-ellipsis">
JSON single-value serialization
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="#appendix-e-format-version-changes" class="md-nav__link">
<span class="md-ellipsis">
Appendix E: Format version changes
</span>
</a>
<nav class="md-nav" aria-label="Appendix E: Format version changes">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#version-3" class="md-nav__link">
<span class="md-ellipsis">
Version 3
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#version-2" class="md-nav__link">
<span class="md-ellipsis">
Version 2
</span>
</a>
</li>
</ul>
</nav>
</li>
</ul>
</nav>
</div>
</div>
</div>
<div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-->
<h1 id="iceberg-table-spec">Iceberg Table Spec<a class="headerlink" href="#iceberg-table-spec" title="Permanent link">🔗</a></h1>
<p>This is a specification for the Iceberg table format that is designed to manage a large, slow-changing collection of files in a distributed file system or key-value store as a table.</p>
<h2 id="format-versioning">Format Versioning<a class="headerlink" href="#format-versioning" title="Permanent link">🔗</a></h2>
<p>Versions 1 and 2 of the Iceberg spec are complete and adopted by the community.</p>
<p>The format version number is incremented when new features are added that will break forward-compatibility---that is, when older readers would not read newer table features correctly. Tables may continue to be written with an older version of the spec to ensure compatibility by not using features that are not yet implemented by processing engines.</p>
<h4 id="version-1-analytic-data-tables">Version 1: Analytic Data Tables<a class="headerlink" href="#version-1-analytic-data-tables" title="Permanent link">🔗</a></h4>
<p>Version 1 of the Iceberg spec defines how to manage large analytic tables using immutable file formats: Parquet, Avro, and ORC.</p>
<p>All version 1 data and metadata files are valid after upgrading a table to version 2. <a href="#version-2">Appendix E</a> documents how to default version 2 fields when reading version 1 metadata.</p>
<h4 id="version-2-row-level-deletes">Version 2: Row-level Deletes<a class="headerlink" href="#version-2-row-level-deletes" title="Permanent link">🔗</a></h4>
<p>Version 2 of the Iceberg spec adds row-level updates and deletes for analytic tables with immutable files.</p>
<p>The primary change in version 2 adds delete files to encode rows that are deleted in existing data files. This version can be used to delete or replace individual rows in immutable data files without rewriting the files.</p>
<p>In addition to row-level deletes, version 2 makes some requirements stricter for writers. The full set of changes are listed in <a href="#version-2">Appendix E</a>.</p>
<h2 id="goals">Goals<a class="headerlink" href="#goals" title="Permanent link">🔗</a></h2>
<ul>
<li><strong>Serializable isolation</strong> -- Reads will be isolated from concurrent writes and always use a committed snapshot of a table’s data. Writes will support removing and adding files in a single operation and are never partially visible. Readers will not acquire locks.</li>
<li><strong>Speed</strong> -- Operations will use O(1) remote calls to plan the files for a scan and not O(n) where n grows with the size of the table, like the number of partitions or files.</li>
<li><strong>Scale</strong> -- Job planning will be handled primarily by clients and not bottleneck on a central metadata store. Metadata will include information needed for cost-based optimization.</li>
<li><strong>Evolution</strong> -- Tables will support full schema and partition spec evolution. Schema evolution supports safe column add, drop, reorder and rename, including in nested structures.</li>
<li><strong>Dependable types</strong> -- Tables will provide well-defined and dependable support for a core set of types.</li>
<li><strong>Storage separation</strong> -- Partitioning will be table configuration. Reads will be planned using predicates on data values, not partition values. Tables will support evolving partition schemes.</li>
<li><strong>Formats</strong> -- Underlying data file formats will support identical schema evolution rules and types. Both read-optimized and write-optimized formats will be available.</li>
</ul>
<h2 id="overview">Overview<a class="headerlink" href="#overview" title="Permanent link">🔗</a></h2>
<p><img alt="Iceberg snapshot structure" src="../assets/images/iceberg-metadata.png" /></p>
<p>This table format tracks individual data files in a table instead of directories. This allows writers to create data files in-place and only adds files to the table in an explicit commit.</p>
<p>Table state is maintained in metadata files. All changes to table state create a new metadata file and replace the old metadata with an atomic swap. The table metadata file tracks the table schema, partitioning config, custom properties, and snapshots of the table contents. A snapshot represents the state of a table at some time and is used to access the complete set of data files in the table.</p>
<p>Data files in snapshots are tracked by one or more manifest files that contain a row for each data file in the table, the file's partition data, and its metrics. The data in a snapshot is the union of all files in its manifests. Manifest files are reused across snapshots to avoid rewriting metadata that is slow-changing. Manifests can track data files with any subset of a table and are not associated with partitions.</p>
<p>The manifests that make up a snapshot are stored in a manifest list file. Each manifest list stores metadata about manifests, including partition stats and data file counts. These stats are used to avoid reading manifests that are not required for an operation.</p>
<h4 id="optimistic-concurrency">Optimistic Concurrency<a class="headerlink" href="#optimistic-concurrency" title="Permanent link">🔗</a></h4>
<p>An atomic swap of one table metadata file for another provides the basis for serializable isolation. Readers use the snapshot that was current when they load the table metadata and are not affected by changes until they refresh and pick up a new metadata location.</p>
<p>Writers create table metadata files optimistically, assuming that the current version will not be changed before the writer's commit. Once a writer has created an update, it commits by swapping the table’s metadata file pointer from the base version to the new version.</p>
<p>If the snapshot on which an update is based is no longer current, the writer must retry the update based on the new current version. Some operations support retry by re-applying metadata changes and committing, under well-defined conditions. For example, a change that rewrites files can be applied to a new table snapshot if all of the rewritten files are still in the table.</p>
<p>The conditions required by a write to successfully commit determines the isolation level. Writers can select what to validate and can make different isolation guarantees.</p>
<h4 id="sequence-numbers">Sequence Numbers<a class="headerlink" href="#sequence-numbers" title="Permanent link">🔗</a></h4>
<p>The relative age of data and delete files relies on a sequence number that is assigned to every successful commit. When a snapshot is created for a commit, it is optimistically assigned the next sequence number, and it is written into the snapshot's metadata. If the commit fails and must be retried, the sequence number is reassigned and written into new snapshot metadata.</p>
<p>All manifests, data files, and delete files created for a snapshot inherit the snapshot's sequence number. Manifest file metadata in the manifest list stores a manifest's sequence number. New data and metadata file entries are written with <code>null</code> in place of a sequence number, which is replaced with the manifest's sequence number at read time. When a data or delete file is written to a new manifest (as "existing"), the inherited sequence number is written to ensure it does not change after it is first inherited.</p>
<p>Inheriting the sequence number from manifest metadata allows writing a new manifest once and reusing it in commit retries. To change a sequence number for a retry, only the manifest list must be rewritten -- which would be rewritten anyway with the latest set of manifests.</p>
<h4 id="row-level-deletes">Row-level Deletes<a class="headerlink" href="#row-level-deletes" title="Permanent link">🔗</a></h4>
<p>Row-level deletes are stored in delete files.</p>
<p>There are two ways to encode a row-level delete:</p>
<ul>
<li><a href="#position-delete-files"><em>Position deletes</em></a> mark a row deleted by data file path and the row position in the data file</li>
<li><a href="#equality-delete-files"><em>Equality deletes</em></a> mark a row deleted by one or more column values, like <code>id = 5</code></li>
</ul>
<p>Like data files, delete files are tracked by partition. In general, a delete file must be applied to older data files with the same partition; see <a href="#scan-planning">Scan Planning</a> for details. Column metrics can be used to determine whether a delete file's rows overlap the contents of a data file or a scan range.</p>
<h4 id="file-system-operations">File System Operations<a class="headerlink" href="#file-system-operations" title="Permanent link">🔗</a></h4>
<p>Iceberg only requires that file systems support the following operations:</p>
<ul>
<li><strong>In-place write</strong> -- Files are not moved or altered once they are written.</li>
<li><strong>Seekable reads</strong> -- Data file formats require seek support.</li>
<li><strong>Deletes</strong> -- Tables delete files that are no longer used.</li>
</ul>
<p>These requirements are compatible with object stores, like S3.</p>
<p>Tables do not require random-access writes. Once written, data and metadata files are immutable until they are deleted.</p>
<p>Tables do not require rename, except for tables that use atomic rename to implement the commit operation for new metadata files.</p>
<h2 id="specification">Specification<a class="headerlink" href="#specification" title="Permanent link">🔗</a></h2>
<h4 id="terms">Terms<a class="headerlink" href="#terms" title="Permanent link">🔗</a></h4>
<ul>
<li><strong>Schema</strong> -- Names and types of fields in a table.</li>
<li><strong>Partition spec</strong> -- A definition of how partition values are derived from data fields.</li>
<li><strong>Snapshot</strong> -- The state of a table at some point in time, including the set of all data files.</li>
<li><strong>Manifest list</strong> -- A file that lists manifest files; one per snapshot.</li>
<li><strong>Manifest</strong> -- A file that lists data or delete files; a subset of a snapshot.</li>
<li><strong>Data file</strong> -- A file that contains rows of a table.</li>
<li><strong>Delete file</strong> -- A file that encodes rows of a table that are deleted by position or data values.</li>
</ul>
<h4 id="writer-requirements">Writer requirements<a class="headerlink" href="#writer-requirements" title="Permanent link">🔗</a></h4>
<p>Some tables in this spec have columns that specify requirements for v1 and v2 tables. These requirements are intended for writers when adding metadata files to a table with the given version.</p>
<table>
<thead>
<tr>
<th>Requirement</th>
<th>Write behavior</th>
</tr>
</thead>
<tbody>
<tr>
<td>(blank)</td>
<td>The field should be omitted</td>
</tr>
<tr>
<td><em>optional</em></td>
<td>The field can be written</td>
</tr>
<tr>
<td><em>required</em></td>
<td>The field must be written</td>
</tr>
</tbody>
</table>
<p>Readers should be more permissive because v1 metadata files are allowed in v2 tables so that tables can be upgraded to v2 without rewriting the metadata tree. For manifest list and manifest files, this table shows the expected v2 read behavior:</p>
<table>
<thead>
<tr>
<th>v1</th>
<th>v2</th>
<th>v2 read behavior</th>
</tr>
</thead>
<tbody>
<tr>
<td></td>
<td><em>optional</em></td>
<td>Read the field as <em>optional</em></td>
</tr>
<tr>
<td></td>
<td><em>required</em></td>
<td>Read the field as <em>optional</em>; it may be missing in v1 files</td>
</tr>
<tr>
<td><em>optional</em></td>
<td></td>
<td>Ignore the field</td>
</tr>
<tr>
<td><em>optional</em></td>
<td><em>optional</em></td>
<td>Read the field as <em>optional</em></td>
</tr>
<tr>
<td><em>optional</em></td>
<td><em>required</em></td>
<td>Read the field as <em>optional</em>; it may be missing in v1 files</td>
</tr>
<tr>
<td><em>required</em></td>
<td></td>
<td>Ignore the field</td>
</tr>
<tr>
<td><em>required</em></td>
<td><em>optional</em></td>
<td>Read the field as <em>optional</em></td>
</tr>
<tr>
<td><em>required</em></td>
<td><em>required</em></td>
<td>Fill in a default or throw an exception if the field is missing</td>
</tr>
</tbody>
</table>
<p>Readers may be more strict for metadata JSON files because the JSON files are not reused and will always match the table version. Required v2 fields that were not present in v1 or optional in v1 may be handled as required fields. For example, a v2 table that is missing <code>last-sequence-number</code> can throw an exception.</p>
<h3 id="schemas-and-data-types">Schemas and Data Types<a class="headerlink" href="#schemas-and-data-types" title="Permanent link">🔗</a></h3>
<p>A table's <strong>schema</strong> is a list of named columns. All data types are either primitives or nested types, which are maps, lists, or structs. A table schema is also a struct type.</p>
<p>For the representations of these types in Avro, ORC, and Parquet file formats, see Appendix A.</p>
<h4 id="nested-types">Nested Types<a class="headerlink" href="#nested-types" title="Permanent link">🔗</a></h4>
<p>A <strong><code>struct</code></strong> is a tuple of typed values. Each field in the tuple is named and has an integer id that is unique in the table schema. Each field can be either optional or required, meaning that values can (or cannot) be null. Fields may be any type. Fields may have an optional comment or doc string. Fields can have <a href="#default-values">default values</a>.</p>
<p>A <strong><code>list</code></strong> is a collection of values with some element type. The element field has an integer id that is unique in the table schema. Elements can be either optional or required. Element types may be any type.</p>
<p>A <strong><code>map</code></strong> is a collection of key-value pairs with a key type and a value type. Both the key field and value field each have an integer id that is unique in the table schema. Map keys are required and map values can be either optional or required. Both map keys and map values may be any type, including nested types.</p>
<h4 id="primitive-types">Primitive Types<a class="headerlink" href="#primitive-types" title="Permanent link">🔗</a></h4>
<table>
<thead>
<tr>
<th>Primitive type</th>
<th>Description</th>
<th>Requirements</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong><code>boolean</code></strong></td>
<td>True or false</td>
<td></td>
</tr>
<tr>
<td><strong><code>int</code></strong></td>
<td>32-bit signed integers</td>
<td>Can promote to <code>long</code></td>
</tr>
<tr>
<td><strong><code>long</code></strong></td>
<td>64-bit signed integers</td>
<td></td>
</tr>
<tr>
<td><strong><code>float</code></strong></td>
<td><a href="https://en.wikipedia.org/wiki/IEEE_754">32-bit IEEE 754</a> floating point</td>
<td>Can promote to double</td>
</tr>
<tr>
<td><strong><code>double</code></strong></td>
<td><a href="https://en.wikipedia.org/wiki/IEEE_754">64-bit IEEE 754</a> floating point</td>
<td></td>
</tr>
<tr>
<td><strong><code>decimal(P,S)</code></strong></td>
<td>Fixed-point decimal; precision P, scale S</td>
<td>Scale is fixed [1], precision must be 38 or less</td>
</tr>
<tr>
<td><strong><code>date</code></strong></td>
<td>Calendar date without timezone or time</td>
<td></td>
</tr>
<tr>
<td><strong><code>time</code></strong></td>
<td>Time of day without date, timezone</td>
<td>Microsecond precision [2]</td>
</tr>
<tr>
<td><strong><code>timestamp</code></strong></td>
<td>Timestamp without timezone</td>
<td>Microsecond precision [2]</td>
</tr>
<tr>
<td><strong><code>timestamptz</code></strong></td>
<td>Timestamp with timezone</td>
<td>Stored as UTC [2]</td>
</tr>
<tr>
<td><strong><code>string</code></strong></td>
<td>Arbitrary-length character sequences</td>
<td>Encoded with UTF-8 [3]</td>
</tr>
<tr>
<td><strong><code>uuid</code></strong></td>
<td>Universally unique identifiers</td>
<td>Should use 16-byte fixed</td>
</tr>
<tr>
<td><strong><code>fixed(L)</code></strong></td>
<td>Fixed-length byte array of length L</td>
<td></td>
</tr>
<tr>
<td><strong><code>binary</code></strong></td>
<td>Arbitrary-length byte array</td>
<td></td>
</tr>
</tbody>
</table>
<p>Notes:</p>
<ol>
<li>Decimal scale is fixed and cannot be changed by schema evolution. Precision can only be widened.</li>
<li>All time and timestamp values are stored with microsecond precision.<ul>
<li>Timestamps <em>with time zone</em> represent a point in time: values are stored as UTC and do not retain a source time zone (<code>2017-11-16 17:10:34 PST</code> is stored/retrieved as <code>2017-11-17 01:10:34 UTC</code> and these values are considered identical).</li>
<li>Timestamps <em>without time zone</em> represent a date and time of day regardless of zone: the time value is independent of zone adjustments (<code>2017-11-16 17:10:34</code> is always retrieved as <code>2017-11-16 17:10:34</code>). Timestamp values are stored as a long that encodes microseconds from the unix epoch.</li>
</ul>
</li>
<li>Character strings must be stored as UTF-8 encoded byte arrays.</li>
</ol>
<p>For details on how to serialize a schema to JSON, see Appendix C.</p>
<h4 id="default-values">Default values<a class="headerlink" href="#default-values" title="Permanent link">🔗</a></h4>
<p>Default values can be tracked for struct fields (both nested structs and the top-level schema's struct). There can be two defaults with a field:
- <code>initial-default</code> is used to populate the field's value for all records that were written before the field was added to the schema
- <code>write-default</code> is used to populate the field's value for any records written after the field was added to the schema, if the writer does not supply the field's value</p>
<p>The <code>initial-default</code> is set only when a field is added to an existing schema. The <code>write-default</code> is initially set to the same value as <code>initial-default</code> and can be changed through schema evolution. If either default is not set for an optional field, then the default value is null for compatibility with older spec versions.</p>
<p>The <code>initial-default</code> and <code>write-default</code> produce SQL default value behavior, without rewriting data files. SQL default value behavior when a field is added handles all existing rows as though the rows were written with the new field's default value. Default value changes may only affect future records and all known fields are written into data files. Omitting a known field when writing a data file is never allowed. The write default for a field must be written if a field is not supplied to a write. If the write default for a required field is not set, the writer must fail.</p>
<p>Default values are attributes of fields in schemas and serialized with fields in the JSON format. See <a href="#appendix-c-json-serialization">Appendix C</a>.</p>
<h4 id="schema-evolution">Schema Evolution<a class="headerlink" href="#schema-evolution" title="Permanent link">🔗</a></h4>
<p>Schemas may be evolved by type promotion or adding, deleting, renaming, or reordering fields in structs (both nested structs and the top-level schema’s struct).</p>
<p>Evolution applies changes to the table's current schema to produce a new schema that is identified by a unique schema ID, is added to the table's list of schemas, and is set as the table's current schema.</p>
<p>Valid type promotions are:</p>
<ul>
<li><code>int</code> to <code>long</code></li>
<li><code>float</code> to <code>double</code></li>
<li><code>decimal(P, S)</code> to <code>decimal(P', S)</code> if <code>P' &gt; P</code> -- widen the precision of decimal types.</li>
</ul>
<p>Any struct, including a top-level schema, can evolve through deleting fields, adding new fields, renaming existing fields, reordering existing fields, or promoting a primitive using the valid type promotions. Adding a new field assigns a new ID for that field and for any nested fields. Renaming an existing field must change the name, but not the field ID. Deleting a field removes it from the current schema. Field deletion cannot be rolled back unless the field was nullable or if the current snapshot has not changed.</p>
<p>Grouping a subset of a struct’s fields into a nested struct is <strong>not</strong> allowed, nor is moving fields from a nested struct into its immediate parent struct (<code>struct&lt;a, b, c&gt; ↔ struct&lt;a, struct&lt;b, c&gt;&gt;</code>). Evolving primitive types to structs is <strong>not</strong> allowed, nor is evolving a single-field struct to a primitive (<code>map&lt;string, int&gt; ↔ map&lt;string, struct&lt;int&gt;&gt;</code>).</p>
<p>Struct evolution requires the following rules for default values:
* The <code>initial-default</code> must be set when a field is added and cannot change
* The <code>write-default</code> must be set when a field is added and may change
* When a required field is added, both defaults must be set to a non-null value
* When an optional field is added, the defaults may be null and should be explicitly set
* When a new field is added to a struct with a default value, updating the struct's default is optional
* If a field value is missing from a struct's <code>initial-default</code>, the field's <code>initial-default</code> must be used for the field
* If a field value is missing from a struct's <code>write-default</code>, the field's <code>write-default</code> must be used for the field</p>
<h4 id="column-projection">Column Projection<a class="headerlink" href="#column-projection" title="Permanent link">🔗</a></h4>
<p>Columns in Iceberg data files are selected by field id. The table schema's column names and order may change after a data file is written, and projection must be done using field ids. If a field id is missing from a data file, its value for each row should be <code>null</code>.</p>
<p>For example, a file may be written with schema <code>1: a int, 2: b string, 3: c double</code> and read using projection schema <code>3: measurement, 2: name, 4: a</code>. This must select file columns <code>c</code> (renamed to <code>measurement</code>), <code>b</code> (now called <code>name</code>), and a column of <code>null</code> values called <code>a</code>; in that order.</p>
<p>Tables may also define a property <code>schema.name-mapping.default</code> with a JSON name mapping containing a list of field mapping objects. These mappings provide fallback field ids to be used when a data file does not contain field id information. Each object should contain</p>
<ul>
<li><code>names</code>: A required list of 0 or more names for a field. </li>
<li><code>field-id</code>: An optional Iceberg field ID used when a field's name is present in <code>names</code></li>
<li><code>fields</code>: An optional list of field mappings for child field of structs, maps, and lists.</li>
</ul>
<p>Field mapping fields are constrained by the following rules:</p>
<ul>
<li>A name may contain <code>.</code> but this refers to a literal name, not a nested field. For example, <code>a.b</code> refers to a field named <code>a.b</code>, not child field <code>b</code> of field <code>a</code>. </li>
<li>Each child field should be defined with their own field mapping under <code>fields</code>. </li>
<li>Multiple values for <code>names</code> may be mapped to a single field ID to support cases where a field may have different names in different data files. For example, all Avro field aliases should be listed in <code>names</code>.</li>
<li>Fields which exist only in the Iceberg schema and not in imported data files may use an empty <code>names</code> list.</li>
<li>Fields that exist in imported files but not in the Iceberg schema may omit <code>field-id</code>.</li>
<li>List types should contain a mapping in <code>fields</code> for <code>element</code>. </li>
<li>Map types should contain mappings in <code>fields</code> for <code>key</code> and <code>value</code>. </li>
<li>Struct types should contain mappings in <code>fields</code> for their child fields.</li>
</ul>
<p>For details on serialization, see <a href="#name-mapping-serialization">Appendix C</a>.</p>
<h4 id="identifier-field-ids">Identifier Field IDs<a class="headerlink" href="#identifier-field-ids" title="Permanent link">🔗</a></h4>
<p>A schema can optionally track the set of primitive fields that identify rows in a table, using the property <code>identifier-field-ids</code> (see JSON encoding in Appendix C).</p>
<p>Two rows are the "same"---that is, the rows represent the same entity---if the identifier fields are equal. However, uniqueness of rows by this identifier is not guaranteed or required by Iceberg and it is the responsibility of processing engines or data providers to enforce.</p>
<p>Identifier fields may be nested in structs but cannot be nested within maps or lists. Float, double, and optional fields cannot be used as identifier fields and a nested field cannot be used as an identifier field if it is nested in an optional struct, to avoid null values in identifiers.</p>
<h4 id="reserved-field-ids">Reserved Field IDs<a class="headerlink" href="#reserved-field-ids" title="Permanent link">🔗</a></h4>
<p>Iceberg tables must not use field ids greater than 2147483447 (<code>Integer.MAX_VALUE - 200</code>). This id range is reserved for metadata columns that can be used in user data schemas, like the <code>_file</code> column that holds the file path in which a row was stored.</p>
<p>The set of metadata columns is:</p>
<table>
<thead>
<tr>
<th>Field id, name</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong><code>2147483646 _file</code></strong></td>
<td><code>string</code></td>
<td>Path of the file in which a row is stored</td>
</tr>
<tr>
<td><strong><code>2147483645 _pos</code></strong></td>
<td><code>long</code></td>
<td>Ordinal position of a row in the source data file</td>
</tr>
<tr>
<td><strong><code>2147483644 _deleted</code></strong></td>
<td><code>boolean</code></td>
<td>Whether the row has been deleted</td>
</tr>
<tr>
<td><strong><code>2147483643 _spec_id</code></strong></td>
<td><code>int</code></td>
<td>Spec ID used to track the file containing a row</td>
</tr>
<tr>
<td><strong><code>2147483642 _partition</code></strong></td>
<td><code>struct</code></td>
<td>Partition to which a row belongs</td>
</tr>
<tr>
<td><strong><code>2147483546 file_path</code></strong></td>
<td><code>string</code></td>
<td>Path of a file, used in position-based delete files</td>
</tr>
<tr>
<td><strong><code>2147483545 pos</code></strong></td>
<td><code>long</code></td>
<td>Ordinal position of a row, used in position-based delete files</td>
</tr>
<tr>
<td><strong><code>2147483544 row</code></strong></td>
<td><code>struct&lt;...&gt;</code></td>
<td>Deleted row values, used in position-based delete files</td>
</tr>
</tbody>
</table>
<h3 id="partitioning">Partitioning<a class="headerlink" href="#partitioning" title="Permanent link">🔗</a></h3>
<p>Data files are stored in manifests with a tuple of partition values that are used in scans to filter out files that cannot contain records that match the scan’s filter predicate. Partition values for a data file must be the same for all records stored in the data file. (Manifests store data files from any partition, as long as the partition spec is the same for the data files.)</p>
<p>Tables are configured with a <strong>partition spec</strong> that defines how to produce a tuple of partition values from a record. A partition spec has a list of fields that consist of:</p>
<ul>
<li>A <strong>source column id</strong> from the table’s schema</li>
<li>A <strong>partition field id</strong> that is used to identify a partition field and is unique within a partition spec. In v2 table metadata, it is unique across all partition specs.</li>
<li>A <strong>transform</strong> that is applied to the source column to produce a partition value</li>
<li>A <strong>partition name</strong></li>
</ul>
<p>The source column, selected by id, must be a primitive type and cannot be contained in a map or list, but may be nested in a struct. For details on how to serialize a partition spec to JSON, see Appendix C.</p>
<p>Partition specs capture the transform from table data to partition values. This is used to transform predicates to partition predicates, in addition to transforming data values. Deriving partition predicates from column predicates on the table data is used to separate the logical queries from physical storage: the partitioning can change and the correct partition filters are always derived from column predicates. This simplifies queries because users don’t have to supply both logical predicates and partition predicates. For more information, see Scan Planning below.</p>
<h4 id="partition-transforms">Partition Transforms<a class="headerlink" href="#partition-transforms" title="Permanent link">🔗</a></h4>
<table>
<thead>
<tr>
<th>Transform name</th>
<th>Description</th>
<th>Source types</th>
<th>Result type</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong><code>identity</code></strong></td>
<td>Source value, unmodified</td>
<td>Any</td>
<td>Source type</td>
</tr>
<tr>
<td><strong><code>bucket[N]</code></strong></td>
<td>Hash of value, mod <code>N</code> (see below)</td>
<td><code>int</code>, <code>long</code>, <code>decimal</code>, <code>date</code>, <code>time</code>, <code>timestamp</code>, <code>timestamptz</code>, <code>string</code>, <code>uuid</code>, <code>fixed</code>, <code>binary</code></td>
<td><code>int</code></td>
</tr>
<tr>
<td><strong><code>truncate[W]</code></strong></td>
<td>Value truncated to width <code>W</code> (see below)</td>
<td><code>int</code>, <code>long</code>, <code>decimal</code>, <code>string</code></td>
<td>Source type</td>
</tr>
<tr>
<td><strong><code>year</code></strong></td>
<td>Extract a date or timestamp year, as years from 1970</td>
<td><code>date</code>, <code>timestamp</code>, <code>timestamptz</code></td>
<td><code>int</code></td>
</tr>
<tr>
<td><strong><code>month</code></strong></td>
<td>Extract a date or timestamp month, as months from 1970-01-01</td>
<td><code>date</code>, <code>timestamp</code>, <code>timestamptz</code></td>
<td><code>int</code></td>
</tr>
<tr>
<td><strong><code>day</code></strong></td>
<td>Extract a date or timestamp day, as days from 1970-01-01</td>
<td><code>date</code>, <code>timestamp</code>, <code>timestamptz</code></td>
<td><code>int</code></td>
</tr>
<tr>
<td><strong><code>hour</code></strong></td>
<td>Extract a timestamp hour, as hours from 1970-01-01 00:00:00</td>
<td><code>timestamp</code>, <code>timestamptz</code></td>
<td><code>int</code></td>
</tr>
<tr>
<td><strong><code>void</code></strong></td>
<td>Always produces <code>null</code></td>
<td>Any</td>
<td>Source type or <code>int</code></td>
</tr>
</tbody>
</table>
<p>All transforms must return <code>null</code> for a <code>null</code> input value.</p>
<p>The <code>void</code> transform may be used to replace the transform in an existing partition field so that the field is effectively dropped in v1 tables. See partition evolution below.</p>
<h4 id="bucket-transform-details">Bucket Transform Details<a class="headerlink" href="#bucket-transform-details" title="Permanent link">🔗</a></h4>
<p>Bucket partition transforms use a 32-bit hash of the source value. The 32-bit hash implementation is the 32-bit Murmur3 hash, x86 variant, seeded with 0.</p>
<p>Transforms are parameterized by a number of buckets [1], <code>N</code>. The hash mod <code>N</code> must produce a positive value by first discarding the sign bit of the hash value. In pseudo-code, the function is:</p>
<div class="highlight"><pre><span></span><code><a id="__codelineno-0-1" name="__codelineno-0-1" href="#__codelineno-0-1"></a> def bucket_N(x) = (murmur3_x86_32_hash(x) &amp; Integer.MAX_VALUE) % N
</code></pre></div>
<p>Notes:</p>
<ol>
<li>Changing the number of buckets as a table grows is possible by evolving the partition spec.</li>
</ol>
<p>For hash function details by type, see Appendix B.</p>
<h4 id="truncate-transform-details">Truncate Transform Details<a class="headerlink" href="#truncate-transform-details" title="Permanent link">🔗</a></h4>
<table>
<thead>
<tr>
<th><strong>Type</strong></th>
<th><strong>Config</strong></th>
<th><strong>Truncate specification</strong></th>
<th><strong>Examples</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td><strong><code>int</code></strong></td>
<td><code>W</code>, width</td>
<td><code>v - (v % W)</code> remainders must be positive [1]</td>
<td><code>W=10</code>: <code>1</code><code>0</code>, <code>-1</code><code>-10</code></td>
</tr>
<tr>
<td><strong><code>long</code></strong></td>
<td><code>W</code>, width</td>
<td><code>v - (v % W)</code> remainders must be positive [1]</td>
<td><code>W=10</code>: <code>1</code><code>0</code>, <code>-1</code><code>-10</code></td>
</tr>
<tr>
<td><strong><code>decimal</code></strong></td>
<td><code>W</code>, width (no scale)</td>
<td><code>scaled_W = decimal(W, scale(v))</code> <code>v - (v % scaled_W)</code> [1, 2]</td>
<td><code>W=50</code>, <code>s=2</code>: <code>10.65</code><code>10.50</code></td>
</tr>
<tr>
<td><strong><code>string</code></strong></td>
<td><code>L</code>, length</td>
<td>Substring of length <code>L</code>: <code>v.substring(0, L)</code> [3]</td>
<td><code>L=3</code>: <code>iceberg</code><code>ice</code></td>
</tr>
</tbody>
</table>
<p>Notes:</p>
<ol>
<li>The remainder, <code>v % W</code>, must be positive. For languages where <code>%</code> can produce negative values, the correct truncate function is: <code>v - (((v % W) + W) % W)</code></li>
<li>The width, <code>W</code>, used to truncate decimal values is applied using the scale of the decimal column to avoid additional (and potentially conflicting) parameters.</li>
<li>Strings are truncated to a valid UTF-8 string with no more than <code>L</code> code points.</li>
</ol>
<h4 id="partition-evolution">Partition Evolution<a class="headerlink" href="#partition-evolution" title="Permanent link">🔗</a></h4>
<p>Table partitioning can be evolved by adding, removing, renaming, or reordering partition spec fields.</p>
<p>Changing a partition spec produces a new spec identified by a unique spec ID that is added to the table's list of partition specs and may be set as the table's default spec.</p>
<p>When evolving a spec, changes should not cause partition field IDs to change because the partition field IDs are used as the partition tuple field IDs in manifest files.</p>
<p>In v2, partition field IDs must be explicitly tracked for each partition field. New IDs are assigned based on the last assigned partition ID in table metadata.</p>
<p>In v1, partition field IDs were not tracked, but were assigned sequentially starting at 1000 in the reference implementation. This assignment caused problems when reading metadata tables based on manifest files from multiple specs because partition fields with the same ID may contain different data types. For compatibility with old versions, the following rules are recommended for partition evolution in v1 tables:</p>
<ol>
<li>Do not reorder partition fields</li>
<li>Do not drop partition fields; instead replace the field's transform with the <code>void</code> transform</li>
<li>Only add partition fields at the end of the previous partition spec</li>
</ol>
<h3 id="sorting">Sorting<a class="headerlink" href="#sorting" title="Permanent link">🔗</a></h3>
<p>Users can sort their data within partitions by columns to gain performance. The information on how the data is sorted can be declared per data or delete file, by a <strong>sort order</strong>.</p>
<p>A sort order is defined by a sort order id and a list of sort fields. The order of the sort fields within the list defines the order in which the sort is applied to the data. Each sort field consists of:</p>
<ul>
<li>A <strong>source column id</strong> from the table's schema</li>
<li>A <strong>transform</strong> that is used to produce values to be sorted on from the source column. This is the same transform as described in <a href="#partition-transforms">partition transforms</a>.</li>
<li>A <strong>sort direction</strong>, that can only be either <code>asc</code> or <code>desc</code></li>
<li>A <strong>null order</strong> that describes the order of null values when sorted. Can only be either <code>nulls-first</code> or <code>nulls-last</code></li>
</ul>
<p>Order id <code>0</code> is reserved for the unsorted order. </p>
<p>Sorting floating-point numbers should produce the following behavior: <code>-NaN</code> &lt; <code>-Infinity</code> &lt; <code>-value</code> &lt; <code>-0</code> &lt; <code>0</code> &lt; <code>value</code> &lt; <code>Infinity</code> &lt; <code>NaN</code>. This aligns with the implementation of Java floating-point types comparisons. </p>
<p>A data or delete file is associated with a sort order by the sort order's id within <a href="#manifests">a manifest</a>. Therefore, the table must declare all the sort orders for lookup. A table could also be configured with a default sort order id, indicating how the new data should be sorted by default. Writers should use this default sort order to sort the data on write, but are not required to if the default order is prohibitively expensive, as it would be for streaming writes.</p>
<h3 id="manifests">Manifests<a class="headerlink" href="#manifests" title="Permanent link">🔗</a></h3>
<p>A manifest is an immutable Avro file that lists data files or delete files, along with each file’s partition data tuple, metrics, and tracking information. One or more manifest files are used to store a <a href="#snapshots">snapshot</a>, which tracks all of the files in a table at some point in time. Manifests are tracked by a <a href="#manifest-lists">manifest list</a> for each table snapshot.</p>
<p>A manifest is a valid Iceberg data file: files must use valid Iceberg formats, schemas, and column projection.</p>
<p>A manifest may store either data files or delete files, but not both because manifests that contain delete files are scanned first during job planning. Whether a manifest is a data manifest or a delete manifest is stored in manifest metadata.</p>
<p>A manifest stores files for a single partition spec. When a table’s partition spec changes, old files remain in the older manifest and newer files are written to a new manifest. This is required because a manifest file’s schema is based on its partition spec (see below). The partition spec of each manifest is also used to transform predicates on the table's data rows into predicates on partition values that are used during job planning to select files from a manifest.</p>
<p>A manifest file must store the partition spec and other metadata as properties in the Avro file's key-value metadata:</p>
<table>
<thead>
<tr>
<th>v1</th>
<th>v2</th>
<th>Key</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<td><em>required</em></td>
<td><em>required</em></td>
<td><code>schema</code></td>
<td>JSON representation of the table schema at the time the manifest was written</td>
</tr>
<tr>
<td><em>optional</em></td>
<td><em>required</em></td>
<td><code>schema-id</code></td>
<td>ID of the schema used to write the manifest as a string</td>
</tr>
<tr>
<td><em>required</em></td>
<td><em>required</em></td>
<td><code>partition-spec</code></td>
<td>JSON fields representation of the partition spec used to write the manifest</td>
</tr>
<tr>
<td><em>optional</em></td>
<td><em>required</em></td>
<td><code>partition-spec-id</code></td>
<td>ID of the partition spec used to write the manifest as a string</td>
</tr>
<tr>
<td><em>optional</em></td>
<td><em>required</em></td>
<td><code>format-version</code></td>
<td>Table format version number of the manifest as a string</td>
</tr>
<tr>
<td></td>
<td><em>required</em></td>
<td><code>content</code></td>
<td>Type of content files tracked by the manifest: "data" or "deletes"</td>
</tr>
</tbody>
</table>
<p>The schema of a manifest file is a struct called <code>manifest_entry</code> with the following fields:</p>
<table>
<thead>
<tr>
<th>v1</th>
<th>v2</th>
<th>Field id, name</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><em>required</em></td>
<td><em>required</em></td>
<td><strong><code>0 status</code></strong></td>
<td><code>int</code> with meaning: <code>0: EXISTING</code> <code>1: ADDED</code> <code>2: DELETED</code></td>
<td>Used to track additions and deletions. Deletes are informational only and not used in scans.</td>
</tr>
<tr>
<td><em>required</em></td>
<td><em>optional</em></td>
<td><strong><code>1 snapshot_id</code></strong></td>
<td><code>long</code></td>
<td>Snapshot id where the file was added, or deleted if status is 2. Inherited when null.</td>
</tr>
<tr>
<td></td>
<td><em>optional</em></td>
<td><strong><code>3 sequence_number</code></strong></td>
<td><code>long</code></td>
<td>Data sequence number of the file. Inherited when null and status is 1 (added).</td>
</tr>
<tr>
<td></td>
<td><em>optional</em></td>
<td><strong><code>4 file_sequence_number</code></strong></td>
<td><code>long</code></td>
<td>File sequence number indicating when the file was added. Inherited when null and status is 1 (added).</td>
</tr>
<tr>
<td><em>required</em></td>
<td><em>required</em></td>
<td><strong><code>2 data_file</code></strong></td>
<td><code>data_file</code> <code>struct</code> (see below)</td>
<td>File path, partition tuple, metrics, ...</td>
</tr>
</tbody>
</table>
<p><code>data_file</code> is a struct with the following fields:</p>
<table>
<thead>
<tr>
<th>v1</th>
<th>v2</th>
<th>Field id, name</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td></td>
<td><em>required</em></td>
<td><strong><code>134 content</code></strong></td>
<td><code>int</code> with meaning: <code>0: DATA</code>, <code>1: POSITION DELETES</code>, <code>2: EQUALITY DELETES</code></td>
<td>Type of content stored by the data file: data, equality deletes, or position deletes (all v1 files are data files)</td>
</tr>
<tr>
<td><em>required</em></td>
<td><em>required</em></td>
<td><strong><code>100 file_path</code></strong></td>
<td><code>string</code></td>
<td>Full URI for the file with FS scheme</td>
</tr>
<tr>
<td><em>required</em></td>
<td><em>required</em></td>
<td><strong><code>101 file_format</code></strong></td>
<td><code>string</code></td>
<td>String file format name, avro, orc or parquet</td>
</tr>
<tr>
<td><em>required</em></td>
<td><em>required</em></td>
<td><strong><code>102 partition</code></strong></td>
<td><code>struct&lt;...&gt;</code></td>
<td>Partition data tuple, schema based on the partition spec output using partition field ids for the struct field ids</td>
</tr>
<tr>
<td><em>required</em></td>
<td><em>required</em></td>
<td><strong><code>103 record_count</code></strong></td>
<td><code>long</code></td>
<td>Number of records in this file</td>
</tr>
<tr>
<td><em>required</em></td>
<td><em>required</em></td>
<td><strong><code>104 file_size_in_bytes</code></strong></td>
<td><code>long</code></td>
<td>Total file size in bytes</td>
</tr>
<tr>
<td><em>required</em></td>
<td></td>
<td>~~<strong><code>105 block_size_in_bytes</code></strong>~~</td>
<td><code>long</code></td>
<td><strong>Deprecated. Always write a default in v1. Do not write in v2.</strong></td>
</tr>
<tr>
<td><em>optional</em></td>
<td></td>
<td>~~<strong><code>106 file_ordinal</code></strong>~~</td>
<td><code>int</code></td>
<td><strong>Deprecated. Do not write.</strong></td>
</tr>
<tr>
<td><em>optional</em></td>
<td></td>
<td>~~<strong><code>107 sort_columns</code></strong>~~</td>
<td><code>list&lt;112: int&gt;</code></td>
<td><strong>Deprecated. Do not write.</strong></td>
</tr>
<tr>
<td><em>optional</em></td>
<td><em>optional</em></td>
<td><strong><code>108 column_sizes</code></strong></td>
<td><code>map&lt;117: int, 118: long&gt;</code></td>
<td>Map from column id to the total size on disk of all regions that store the column. Does not include bytes necessary to read other columns, like footers. Leave null for row-oriented formats (Avro)</td>
</tr>
<tr>
<td><em>optional</em></td>
<td><em>optional</em></td>
<td><strong><code>109 value_counts</code></strong></td>
<td><code>map&lt;119: int, 120: long&gt;</code></td>
<td>Map from column id to number of values in the column (including null and NaN values)</td>
</tr>
<tr>
<td><em>optional</em></td>
<td><em>optional</em></td>
<td><strong><code>110 null_value_counts</code></strong></td>
<td><code>map&lt;121: int, 122: long&gt;</code></td>
<td>Map from column id to number of null values in the column</td>
</tr>
<tr>
<td><em>optional</em></td>
<td><em>optional</em></td>
<td><strong><code>137 nan_value_counts</code></strong></td>
<td><code>map&lt;138: int, 139: long&gt;</code></td>
<td>Map from column id to number of NaN values in the column</td>
</tr>
<tr>
<td><em>optional</em></td>
<td><em>optional</em></td>
<td><strong><code>111 distinct_counts</code></strong></td>
<td><code>map&lt;123: int, 124: long&gt;</code></td>
<td>Map from column id to number of distinct values in the column; distinct counts must be derived using values in the file by counting or using sketches, but not using methods like merging existing distinct counts</td>
</tr>
<tr>
<td><em>optional</em></td>
<td><em>optional</em></td>
<td><strong><code>125 lower_bounds</code></strong></td>
<td><code>map&lt;126: int, 127: binary&gt;</code></td>
<td>Map from column id to lower bound in the column serialized as binary [1]. Each value must be less than or equal to all non-null, non-NaN values in the column for the file [2]</td>
</tr>
<tr>
<td><em>optional</em></td>
<td><em>optional</em></td>
<td><strong><code>128 upper_bounds</code></strong></td>
<td><code>map&lt;129: int, 130: binary&gt;</code></td>
<td>Map from column id to upper bound in the column serialized as binary [1]. Each value must be greater than or equal to all non-null, non-Nan values in the column for the file [2]</td>
</tr>
<tr>
<td><em>optional</em></td>
<td><em>optional</em></td>
<td><strong><code>131 key_metadata</code></strong></td>
<td><code>binary</code></td>
<td>Implementation-specific key metadata for encryption</td>
</tr>
<tr>
<td><em>optional</em></td>
<td><em>optional</em></td>
<td><strong><code>132 split_offsets</code></strong></td>
<td><code>list&lt;133: long&gt;</code></td>
<td>Split offsets for the data file. For example, all row group offsets in a Parquet file. Must be sorted ascending</td>
</tr>
<tr>
<td></td>
<td><em>optional</em></td>
<td><strong><code>135 equality_ids</code></strong></td>
<td><code>list&lt;136: int&gt;</code></td>
<td>Field ids used to determine row equality in equality delete files. Required when <code>content=2</code> and should be null otherwise. Fields with ids listed in this column must be present in the delete file</td>
</tr>
<tr>
<td><em>optional</em></td>
<td><em>optional</em></td>
<td><strong><code>140 sort_order_id</code></strong></td>
<td><code>int</code></td>
<td>ID representing sort order for this file [3].</td>
</tr>
</tbody>
</table>
<p>Notes:</p>
<ol>
<li>Single-value serialization for lower and upper bounds is detailed in Appendix D.</li>
<li>For <code>float</code> and <code>double</code>, the value <code>-0.0</code> must precede <code>+0.0</code>, as in the IEEE 754 <code>totalOrder</code> predicate. NaNs are not permitted as lower or upper bounds.</li>
<li>If sort order ID is missing or unknown, then the order is assumed to be unsorted. Only data files and equality delete files should be written with a non-null order id. <a href="#position-delete-files">Position deletes</a> are required to be sorted by file and position, not a table order, and should set sort order id to null. Readers must ignore sort order id for position delete files.</li>
<li>The following field ids are reserved on <code>data_file</code>: 141.</li>
</ol>
<p>The <code>partition</code> struct stores the tuple of partition values for each file. Its type is derived from the partition fields of the partition spec used to write the manifest file. In v2, the partition struct's field ids must match the ids from the partition spec.</p>
<p>The column metrics maps are used when filtering to select both data and delete files. For delete files, the metrics must store bounds and counts for all deleted rows, or must be omitted. Storing metrics for deleted rows ensures that the values can be used during job planning to find delete files that must be merged during a scan.</p>
<h4 id="manifest-entry-fields">Manifest Entry Fields<a class="headerlink" href="#manifest-entry-fields" title="Permanent link">🔗</a></h4>
<p>The manifest entry fields are used to keep track of the snapshot in which files were added or logically deleted. The <code>data_file</code> struct is nested inside of the manifest entry so that it can be easily passed to job planning without the manifest entry fields.</p>
<p>When a file is added to the dataset, its manifest entry should store the snapshot ID in which the file was added and set status to 1 (added).</p>
<p>When a file is replaced or deleted from the dataset, its manifest entry fields store the snapshot ID in which the file was deleted and status 2 (deleted). The file may be deleted from the file system when the snapshot in which it was deleted is garbage collected, assuming that older snapshots have also been garbage collected [1].</p>
<p>Iceberg v2 adds data and file sequence numbers to the entry and makes the snapshot ID optional. Values for these fields are inherited from manifest metadata when <code>null</code>. That is, if the field is <code>null</code> for an entry, then the entry must inherit its value from the manifest file's metadata, stored in the manifest list.
The <code>sequence_number</code> field represents the data sequence number and must never change after a file is added to the dataset. The data sequence number represents a relative age of the file content and should be used for planning which delete files apply to a data file.
The <code>file_sequence_number</code> field represents the sequence number of the snapshot that added the file and must also remain unchanged upon assigning at commit. The file sequence number can't be used for pruning delete files as the data within the file may have an older data sequence number.
The data and file sequence numbers are inherited only if the entry status is 1 (added). If the entry status is 0 (existing) or 2 (deleted), the entry must include both sequence numbers explicitly.</p>
<p>Notes:</p>
<ol>
<li>Technically, data files can be deleted when the last snapshot that contains the file as “live” data is garbage collected. But this is harder to detect and requires finding the diff of multiple snapshots. It is easier to track what files are deleted in a snapshot and delete them when that snapshot expires. It is not recommended to add a deleted file back to a table. Adding a deleted file can lead to edge cases where incremental deletes can break table snapshots.</li>
<li>Manifest list files are required in v2, so that the <code>sequence_number</code> and <code>snapshot_id</code> to inherit are always available.</li>
</ol>
<h4 id="sequence-number-inheritance">Sequence Number Inheritance<a class="headerlink" href="#sequence-number-inheritance" title="Permanent link">🔗</a></h4>
<p>Manifests track the sequence number when a data or delete file was added to the table.</p>
<p>When adding a new file, its data and file sequence numbers are set to <code>null</code> because the snapshot's sequence number is not assigned until the snapshot is successfully committed. When reading, sequence numbers are inherited by replacing <code>null</code> with the manifest's sequence number from the manifest list.
It is also possible to add a new file with data that logically belongs to an older sequence number. In that case, the data sequence number must be provided explicitly and not inherited. However, the file sequence number must be always assigned when the snapshot is successfully committed.</p>
<p>When writing an existing file to a new manifest or marking an existing file as deleted, the data and file sequence numbers must be non-null and set to the original values that were either inherited or provided at the commit time.</p>
<p>Inheriting sequence numbers through the metadata tree allows writing a new manifest without a known sequence number, so that a manifest can be written once and reused in commit retries. To change a sequence number for a retry, only the manifest list must be rewritten.</p>
<p>When reading v1 manifests with no sequence number column, sequence numbers for all files must default to 0.</p>
<h3 id="snapshots">Snapshots<a class="headerlink" href="#snapshots" title="Permanent link">🔗</a></h3>
<p>A snapshot consists of the following fields:</p>
<table>
<thead>
<tr>
<th>v1</th>
<th>v2</th>
<th>Field</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><em>required</em></td>
<td><em>required</em></td>
<td><strong><code>snapshot-id</code></strong></td>
<td>A unique long ID</td>
</tr>
<tr>
<td><em>optional</em></td>
<td><em>optional</em></td>
<td><strong><code>parent-snapshot-id</code></strong></td>
<td>The snapshot ID of the snapshot's parent. Omitted for any snapshot with no parent</td>
</tr>
<tr>
<td></td>
<td><em>required</em></td>
<td><strong><code>sequence-number</code></strong></td>
<td>A monotonically increasing long that tracks the order of changes to a table</td>
</tr>
<tr>
<td><em>required</em></td>
<td><em>required</em></td>
<td><strong><code>timestamp-ms</code></strong></td>
<td>A timestamp when the snapshot was created, used for garbage collection and table inspection</td>
</tr>
<tr>
<td><em>optional</em></td>
<td><em>required</em></td>
<td><strong><code>manifest-list</code></strong></td>
<td>The location of a manifest list for this snapshot that tracks manifest files with additional metadata</td>
</tr>
<tr>
<td><em>optional</em></td>
<td></td>
<td><strong><code>manifests</code></strong></td>
<td>A list of manifest file locations. Must be omitted if <code>manifest-list</code> is present</td>
</tr>
<tr>
<td><em>optional</em></td>
<td><em>required</em></td>
<td><strong><code>summary</code></strong></td>
<td>A string map that summarizes the snapshot changes, including <code>operation</code> (see below)</td>
</tr>
<tr>
<td><em>optional</em></td>
<td><em>optional</em></td>
<td><strong><code>schema-id</code></strong></td>
<td>ID of the table's current schema when the snapshot was created</td>
</tr>
</tbody>
</table>
<p>The snapshot summary's <code>operation</code> field is used by some operations, like snapshot expiration, to skip processing certain snapshots. Possible <code>operation</code> values are:</p>
<ul>
<li><code>append</code> -- Only data files were added and no files were removed.</li>
<li><code>replace</code> -- Data and delete files were added and removed without changing table data; i.e., compaction, changing the data file format, or relocating data files.</li>
<li><code>overwrite</code> -- Data and delete files were added and removed in a logical overwrite operation.</li>
<li><code>delete</code> -- Data files were removed and their contents logically deleted and/or delete files were added to delete rows.</li>
</ul>
<p>Data and delete files for a snapshot can be stored in more than one manifest. This enables:</p>
<ul>
<li>Appends can add a new manifest to minimize the amount of data written, instead of adding new records by rewriting and appending to an existing manifest. (This is called a “fast append”.)</li>
<li>Tables can use multiple partition specs. A table’s partition configuration can evolve if, for example, its data volume changes. Each manifest uses a single partition spec, and queries do not need to change because partition filters are derived from data predicates.</li>
<li>Large tables can be split across multiple manifests so that implementations can parallelize job planning or reduce the cost of rewriting a manifest.</li>
</ul>
<p>Manifests for a snapshot are tracked by a manifest list.</p>
<p>Valid snapshots are stored as a list in table metadata. For serialization, see Appendix C.</p>
<h4 id="manifest-lists">Manifest Lists<a class="headerlink" href="#manifest-lists" title="Permanent link">🔗</a></h4>
<p>Snapshots are embedded in table metadata, but the list of manifests for a snapshot are stored in a separate manifest list file.</p>
<p>A new manifest list is written for each attempt to commit a snapshot because the list of manifests always changes to produce a new snapshot. When a manifest list is written, the (optimistic) sequence number of the snapshot is written for all new manifest files tracked by the list.</p>
<p>A manifest list includes summary metadata that can be used to avoid scanning all of the manifests in a snapshot when planning a table scan. This includes the number of added, existing, and deleted files, and a summary of values for each field of the partition spec used to write the manifest.</p>
<p>A manifest list is a valid Iceberg data file: files must use valid Iceberg formats, schemas, and column projection.</p>
<p>Manifest list files store <code>manifest_file</code>, a struct with the following fields:</p>
<table>
<thead>
<tr>
<th>v1</th>
<th>v2</th>
<th>Field id, name</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><em>required</em></td>
<td><em>required</em></td>
<td><strong><code>500 manifest_path</code></strong></td>
<td><code>string</code></td>
<td>Location of the manifest file</td>
</tr>
<tr>
<td><em>required</em></td>
<td><em>required</em></td>
<td><strong><code>501 manifest_length</code></strong></td>
<td><code>long</code></td>
<td>Length of the manifest file in bytes</td>
</tr>
<tr>
<td><em>required</em></td>
<td><em>required</em></td>
<td><strong><code>502 partition_spec_id</code></strong></td>
<td><code>int</code></td>
<td>ID of a partition spec used to write the manifest; must be listed in table metadata <code>partition-specs</code></td>
</tr>
<tr>
<td></td>
<td><em>required</em></td>
<td><strong><code>517 content</code></strong></td>
<td><code>int</code> with meaning: <code>0: data</code>, <code>1: deletes</code></td>
<td>The type of files tracked by the manifest, either data or delete files; 0 for all v1 manifests</td>
</tr>
<tr>
<td></td>
<td><em>required</em></td>
<td><strong><code>515 sequence_number</code></strong></td>
<td><code>long</code></td>
<td>The sequence number when the manifest was added to the table; use 0 when reading v1 manifest lists</td>
</tr>
<tr>
<td></td>
<td><em>required</em></td>
<td><strong><code>516 min_sequence_number</code></strong></td>
<td><code>long</code></td>
<td>The minimum data sequence number of all live data or delete files in the manifest; use 0 when reading v1 manifest lists</td>
</tr>
<tr>
<td><em>required</em></td>
<td><em>required</em></td>
<td><strong><code>503 added_snapshot_id</code></strong></td>
<td><code>long</code></td>
<td>ID of the snapshot where the manifest file was added</td>
</tr>
<tr>
<td><em>optional</em></td>
<td><em>required</em></td>
<td><strong><code>504 added_files_count</code></strong></td>
<td><code>int</code></td>
<td>Number of entries in the manifest that have status <code>ADDED</code> (1), when <code>null</code> this is assumed to be non-zero</td>
</tr>
<tr>
<td><em>optional</em></td>
<td><em>required</em></td>
<td><strong><code>505 existing_files_count</code></strong></td>
<td><code>int</code></td>
<td>Number of entries in the manifest that have status <code>EXISTING</code> (0), when <code>null</code> this is assumed to be non-zero</td>
</tr>
<tr>
<td><em>optional</em></td>
<td><em>required</em></td>
<td><strong><code>506 deleted_files_count</code></strong></td>
<td><code>int</code></td>
<td>Number of entries in the manifest that have status <code>DELETED</code> (2), when <code>null</code> this is assumed to be non-zero</td>
</tr>
<tr>
<td><em>optional</em></td>
<td><em>required</em></td>
<td><strong><code>512 added_rows_count</code></strong></td>
<td><code>long</code></td>
<td>Number of rows in all of files in the manifest that have status <code>ADDED</code>, when <code>null</code> this is assumed to be non-zero</td>
</tr>
<tr>
<td><em>optional</em></td>
<td><em>required</em></td>
<td><strong><code>513 existing_rows_count</code></strong></td>
<td><code>long</code></td>
<td>Number of rows in all of files in the manifest that have status <code>EXISTING</code>, when <code>null</code> this is assumed to be non-zero</td>
</tr>
<tr>
<td><em>optional</em></td>
<td><em>required</em></td>
<td><strong><code>514 deleted_rows_count</code></strong></td>
<td><code>long</code></td>
<td>Number of rows in all of files in the manifest that have status <code>DELETED</code>, when <code>null</code> this is assumed to be non-zero</td>
</tr>
<tr>
<td><em>optional</em></td>
<td><em>optional</em></td>
<td><strong><code>507 partitions</code></strong></td>
<td><code>list&lt;508: field_summary&gt;</code> (see below)</td>
<td>A list of field summaries for each partition field in the spec. Each field in the list corresponds to a field in the manifest file’s partition spec.</td>
</tr>
<tr>
<td><em>optional</em></td>
<td><em>optional</em></td>
<td><strong><code>519 key_metadata</code></strong></td>
<td><code>binary</code></td>
<td>Implementation-specific key metadata for encryption</td>
</tr>
</tbody>
</table>
<p><code>field_summary</code> is a struct with the following fields:</p>
<table>
<thead>
<tr>
<th>v1</th>
<th>v2</th>
<th>Field id, name</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><em>required</em></td>
<td><em>required</em></td>
<td><strong><code>509 contains_null</code></strong></td>
<td><code>boolean</code></td>
<td>Whether the manifest contains at least one partition with a null value for the field</td>
</tr>
<tr>
<td><em>optional</em></td>
<td><em>optional</em></td>
<td><strong><code>518 contains_nan</code></strong></td>
<td><code>boolean</code></td>
<td>Whether the manifest contains at least one partition with a NaN value for the field</td>
</tr>
<tr>
<td><em>optional</em></td>
<td><em>optional</em></td>
<td><strong><code>510 lower_bound</code></strong></td>
<td><code>bytes</code> [1]</td>
<td>Lower bound for the non-null, non-NaN values in the partition field, or null if all values are null or NaN [2]</td>
</tr>
<tr>
<td><em>optional</em></td>
<td><em>optional</em></td>
<td><strong><code>511 upper_bound</code></strong></td>
<td><code>bytes</code> [1]</td>
<td>Upper bound for the non-null, non-NaN values in the partition field, or null if all values are null or NaN [2]</td>
</tr>
</tbody>
</table>
<p>Notes:</p>
<ol>
<li>Lower and upper bounds are serialized to bytes using the single-object serialization in Appendix D. The type of used to encode the value is the type of the partition field data.</li>
<li>If -0.0 is a value of the partition field, the <code>lower_bound</code> must not be +0.0, and if +0.0 is a value of the partition field, the <code>upper_bound</code> must not be -0.0.</li>
</ol>
<h4 id="scan-planning">Scan Planning<a class="headerlink" href="#scan-planning" title="Permanent link">🔗</a></h4>
<p>Scans are planned by reading the manifest files for the current snapshot. Deleted entries in data and delete manifests (those marked with status "DELETED") are not used in a scan.</p>
<p>Manifests that contain no matching files, determined using either file counts or partition summaries, may be skipped.</p>
<p>For each manifest, scan predicates, which filter data rows, are converted to partition predicates, which filter data and delete files. These partition predicates are used to select the data and delete files in the manifest. This conversion uses the partition spec used to write the manifest file.</p>
<p>Scan predicates are converted to partition predicates using an <em>inclusive projection</em>: if a scan predicate matches a row, then the partition predicate must match that row’s partition. This is called <em>inclusive</em> [1] because rows that do not match the scan predicate may be included in the scan by the partition predicate.</p>
<p>For example, an <code>events</code> table with a timestamp column named <code>ts</code> that is partitioned by <code>ts_day=day(ts)</code> is queried by users with ranges over the timestamp column: <code>ts &gt; X</code>. The inclusive projection is <code>ts_day &gt;= day(X)</code>, which is used to select files that may have matching rows. Note that, in most cases, timestamps just before <code>X</code> will be included in the scan because the file contains rows that match the predicate and rows that do not match the predicate.</p>
<p>Scan predicates are also used to filter data and delete files using column bounds and counts that are stored by field id in manifests. The same filter logic can be used for both data and delete files because both store metrics of the rows either inserted or deleted. If metrics show that a delete file has no rows that match a scan predicate, it may be ignored just as a data file would be ignored [2].</p>
<p>Data files that match the query filter must be read by the scan. </p>
<p>Note that for any snapshot, all file paths marked with "ADDED" or "EXISTING" may appear at most once across all manifest files in the snapshot. If a file path appears more than once, the results of the scan are undefined. Reader implementations may raise an error in this case, but are not required to do so.</p>
<p>Delete files that match the query filter must be applied to data files at read time, limited by the scope of the delete file using the following rules.</p>
<ul>
<li>A <em>position</em> delete file must be applied to a data file when all of the following are true:<ul>
<li>The data file's data sequence number is <em>less than or equal to</em> the delete file's data sequence number</li>
<li>The data file's partition (both spec and partition values) is equal to the delete file's partition</li>
</ul>
</li>
<li>An <em>equality</em> delete file must be applied to a data file when all of the following are true:<ul>
<li>The data file's data sequence number is <em>strictly less than</em> the delete's data sequence number</li>
<li>The data file's partition (both spec and partition values) is equal to the delete file's partition <em>or</em> the delete file's partition spec is unpartitioned</li>
</ul>
</li>
</ul>
<p>In general, deletes are applied only to data files that are older and in the same partition, except for two special cases:</p>
<ul>
<li>Equality delete files stored with an unpartitioned spec are applied as global deletes. Otherwise, delete files do not apply to files in other partitions.</li>
<li>Position delete files must be applied to data files from the same commit, when the data and delete file data sequence numbers are equal. This allows deleting rows that were added in the same commit.</li>
</ul>
<p>Notes:</p>
<ol>
<li>An alternative, <em>strict projection</em>, creates a partition predicate that will match a file if all of the rows in the file must match the scan predicate. These projections are used to calculate the residual predicates for each file in a scan.</li>
<li>For example, if <code>file_a</code> has rows with <code>id</code> between 1 and 10 and a delete file contains rows with <code>id</code> between 1 and 4, a scan for <code>id = 9</code> may ignore the delete file because none of the deletes can match a row that will be selected.</li>
</ol>
<h4 id="snapshot-reference">Snapshot Reference<a class="headerlink" href="#snapshot-reference" title="Permanent link">🔗</a></h4>
<p>Iceberg tables keep track of branches and tags using snapshot references.
Tags are labels for individual snapshots. Branches are mutable named references that can be updated by committing a new snapshot as the branch's referenced snapshot using the <a href="#commit-conflict-resolution-and-retry">Commit Conflict Resolution and Retry</a> procedures.</p>
<p>The snapshot reference object records all the information of a reference including snapshot ID, reference type and <a href="#snapshot-retention-policy">Snapshot Retention Policy</a>.</p>
<table>
<thead>
<tr>
<th>v1</th>
<th>v2</th>
<th>Field name</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><em>required</em></td>
<td><em>required</em></td>
<td><strong><code>snapshot-id</code></strong></td>
<td><code>long</code></td>
<td>A reference's snapshot ID. The tagged snapshot or latest snapshot of a branch.</td>
</tr>
<tr>
<td><em>required</em></td>
<td><em>required</em></td>
<td><strong><code>type</code></strong></td>
<td><code>string</code></td>
<td>Type of the reference, <code>tag</code> or <code>branch</code></td>
</tr>
<tr>
<td><em>optional</em></td>
<td><em>optional</em></td>
<td><strong><code>min-snapshots-to-keep</code></strong></td>
<td><code>int</code></td>
<td>For <code>branch</code> type only, a positive number for the minimum number of snapshots to keep in a branch while expiring snapshots. Defaults to table property <code>history.expire.min-snapshots-to-keep</code>.</td>
</tr>
<tr>
<td><em>optional</em></td>
<td><em>optional</em></td>
<td><strong><code>max-snapshot-age-ms</code></strong></td>
<td><code>long</code></td>
<td>For <code>branch</code> type only, a positive number for the max age of snapshots to keep when expiring, including the latest snapshot. Defaults to table property <code>history.expire.max-snapshot-age-ms</code>.</td>
</tr>
<tr>
<td><em>optional</em></td>
<td><em>optional</em></td>
<td><strong><code>max-ref-age-ms</code></strong></td>
<td><code>long</code></td>
<td>For snapshot references except the <code>main</code> branch, a positive number for the max age of the snapshot reference to keep while expiring snapshots. Defaults to table property <code>history.expire.max-ref-age-ms</code>. The <code>main</code> branch never expires.</td>
</tr>
</tbody>
</table>
<p>Valid snapshot references are stored as the values of the <code>refs</code> map in table metadata. For serialization, see Appendix C.</p>
<h4 id="snapshot-retention-policy">Snapshot Retention Policy<a class="headerlink" href="#snapshot-retention-policy" title="Permanent link">🔗</a></h4>
<p>Table snapshots expire and are removed from metadata to allow removed or replaced data files to be physically deleted.
The snapshot expiration procedure removes snapshots from table metadata and applies the table's retention policy.
Retention policy can be configured both globally and on snapshot reference through properties <code>min-snapshots-to-keep</code>, <code>max-snapshot-age-ms</code> and <code>max-ref-age-ms</code>.</p>
<p>When expiring snapshots, retention policies in table and snapshot references are evaluated in the following way:</p>
<ol>
<li>Start with an empty set of snapshots to retain</li>
<li>Remove any refs (other than main) where the referenced snapshot is older than <code>max-ref-age-ms</code></li>
<li>For each branch and tag, add the referenced snapshot to the retained set</li>
<li>For each branch, add its ancestors to the retained set until:<ol>
<li>The snapshot is older than <code>max-snapshot-age-ms</code>, AND</li>
<li>The snapshot is not one of the first <code>min-snapshots-to-keep</code> in the branch (including the branch's referenced snapshot)</li>
</ol>
</li>
<li>Expire any snapshot not in the set of snapshots to retain.</li>
</ol>
<h3 id="table-metadata">Table Metadata<a class="headerlink" href="#table-metadata" title="Permanent link">🔗</a></h3>
<p>Table metadata is stored as JSON. Each table metadata change creates a new table metadata file that is committed by an atomic operation. This operation is used to ensure that a new version of table metadata replaces the version on which it was based. This produces a linear history of table versions and ensures that concurrent writes are not lost.</p>
<p>The atomic operation used to commit metadata depends on how tables are tracked and is not standardized by this spec. See the sections below for examples.</p>
<h4 id="table-metadata-fields">Table Metadata Fields<a class="headerlink" href="#table-metadata-fields" title="Permanent link">🔗</a></h4>
<p>Table metadata consists of the following fields:</p>
<table>
<thead>
<tr>
<th>v1</th>
<th>v2</th>
<th>Field</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><em>required</em></td>
<td><em>required</em></td>
<td><strong><code>format-version</code></strong></td>
<td>An integer version number for the format. Currently, this can be 1 or 2 based on the spec. Implementations must throw an exception if a table's version is higher than the supported version.</td>
</tr>
<tr>
<td><em>optional</em></td>
<td><em>required</em></td>
<td><strong><code>table-uuid</code></strong></td>
<td>A UUID that identifies the table, generated when the table is created. Implementations must throw an exception if a table's UUID does not match the expected UUID after refreshing metadata.</td>
</tr>
<tr>
<td><em>required</em></td>
<td><em>required</em></td>
<td><strong><code>location</code></strong></td>
<td>The table's base location. This is used by writers to determine where to store data files, manifest files, and table metadata files.</td>
</tr>
<tr>
<td></td>
<td><em>required</em></td>
<td><strong><code>last-sequence-number</code></strong></td>
<td>The table's highest assigned sequence number, a monotonically increasing long that tracks the order of snapshots in a table.</td>
</tr>
<tr>
<td><em>required</em></td>
<td><em>required</em></td>
<td><strong><code>last-updated-ms</code></strong></td>
<td>Timestamp in milliseconds from the unix epoch when the table was last updated. Each table metadata file should update this field just before writing.</td>
</tr>
<tr>
<td><em>required</em></td>
<td><em>required</em></td>
<td><strong><code>last-column-id</code></strong></td>
<td>An integer; the highest assigned column ID for the table. This is used to ensure columns are always assigned an unused ID when evolving schemas.</td>
</tr>
<tr>
<td><em>required</em></td>
<td></td>
<td><strong><code>schema</code></strong></td>
<td>The table’s current schema. (<strong>Deprecated</strong>: use <code>schemas</code> and <code>current-schema-id</code> instead)</td>
</tr>
<tr>
<td><em>optional</em></td>
<td><em>required</em></td>
<td><strong><code>schemas</code></strong></td>
<td>A list of schemas, stored as objects with <code>schema-id</code>.</td>
</tr>
<tr>
<td><em>optional</em></td>
<td><em>required</em></td>
<td><strong><code>current-schema-id</code></strong></td>
<td>ID of the table's current schema.</td>
</tr>
<tr>
<td><em>required</em></td>
<td></td>
<td><strong><code>partition-spec</code></strong></td>
<td>The table’s current partition spec, stored as only fields. Note that this is used by writers to partition data, but is not used when reading because reads use the specs stored in manifest files. (<strong>Deprecated</strong>: use <code>partition-specs</code> and <code>default-spec-id</code> instead)</td>
</tr>
<tr>
<td><em>optional</em></td>
<td><em>required</em></td>
<td><strong><code>partition-specs</code></strong></td>
<td>A list of partition specs, stored as full partition spec objects.</td>
</tr>
<tr>
<td><em>optional</em></td>
<td><em>required</em></td>
<td><strong><code>default-spec-id</code></strong></td>
<td>ID of the "current" spec that writers should use by default.</td>
</tr>
<tr>
<td><em>optional</em></td>
<td><em>required</em></td>
<td><strong><code>last-partition-id</code></strong></td>
<td>An integer; the highest assigned partition field ID across all partition specs for the table. This is used to ensure partition fields are always assigned an unused ID when evolving specs.</td>
</tr>
<tr>
<td><em>optional</em></td>
<td><em>optional</em></td>
<td><strong><code>properties</code></strong></td>
<td>A string to string map of table properties. This is used to control settings that affect reading and writing and is not intended to be used for arbitrary metadata. For example, <code>commit.retry.num-retries</code> is used to control the number of commit retries.</td>
</tr>
<tr>
<td><em>optional</em></td>
<td><em>optional</em></td>
<td><strong><code>current-snapshot-id</code></strong></td>
<td><code>long</code> ID of the current table snapshot; must be the same as the current ID of the <code>main</code> branch in <code>refs</code>.</td>
</tr>
<tr>
<td><em>optional</em></td>
<td><em>optional</em></td>
<td><strong><code>snapshots</code></strong></td>
<td>A list of valid snapshots. Valid snapshots are snapshots for which all data files exist in the file system. A data file must not be deleted from the file system until the last snapshot in which it was listed is garbage collected.</td>
</tr>
<tr>
<td><em>optional</em></td>
<td><em>optional</em></td>
<td><strong><code>snapshot-log</code></strong></td>
<td>A list (optional) of timestamp and snapshot ID pairs that encodes changes to the current snapshot for the table. Each time the current-snapshot-id is changed, a new entry should be added with the last-updated-ms and the new current-snapshot-id. When snapshots are expired from the list of valid snapshots, all entries before a snapshot that has expired should be removed.</td>
</tr>
<tr>
<td><em>optional</em></td>
<td><em>optional</em></td>
<td><strong><code>metadata-log</code></strong></td>
<td>A list (optional) of timestamp and metadata file location pairs that encodes changes to the previous metadata files for the table. Each time a new metadata file is created, a new entry of the previous metadata file location should be added to the list. Tables can be configured to remove oldest metadata log entries and keep a fixed-size log of the most recent entries after a commit.</td>
</tr>
<tr>
<td><em>optional</em></td>
<td><em>required</em></td>
<td><strong><code>sort-orders</code></strong></td>
<td>A list of sort orders, stored as full sort order objects.</td>
</tr>
<tr>
<td><em>optional</em></td>
<td><em>required</em></td>
<td><strong><code>default-sort-order-id</code></strong></td>
<td>Default sort order id of the table. Note that this could be used by writers, but is not used when reading because reads use the specs stored in manifest files.</td>
</tr>
<tr>
<td></td>
<td><em>optional</em></td>
<td><strong><code>refs</code></strong></td>
<td>A map of snapshot references. The map keys are the unique snapshot reference names in the table, and the map values are snapshot reference objects. There is always a <code>main</code> branch reference pointing to the <code>current-snapshot-id</code> even if the <code>refs</code> map is null.</td>
</tr>
<tr>
<td><em>optional</em></td>
<td><em>optional</em></td>
<td><strong><code>statistics</code></strong></td>
<td>A list (optional) of <a href="#table-statistics">table statistics</a>.</td>
</tr>
</tbody>
</table>
<p>For serialization details, see Appendix C.</p>
<h4 id="table-statistics">Table statistics<a class="headerlink" href="#table-statistics" title="Permanent link">🔗</a></h4>
<p>Table statistics files are valid <a href="../puffin-spec/">Puffin files</a>. Statistics are informational. A reader can choose to
ignore statistics information. Statistics support is not required to read the table correctly. A table can contain
many statistics files associated with different table snapshots.</p>
<p>Statistics files metadata within <code>statistics</code> table metadata field is a struct with the following fields:</p>
<table>
<thead>
<tr>
<th>v1</th>
<th>v2</th>
<th>Field name</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><em>required</em></td>
<td><em>required</em></td>
<td><strong><code>snapshot-id</code></strong></td>
<td><code>string</code></td>
<td>ID of the Iceberg table's snapshot the statistics file is associated with.</td>
</tr>
<tr>
<td><em>required</em></td>
<td><em>required</em></td>
<td><strong><code>statistics-path</code></strong></td>
<td><code>string</code></td>
<td>Path of the statistics file. See <a href="../puffin-spec/">Puffin file format</a>.</td>
</tr>
<tr>
<td><em>required</em></td>
<td><em>required</em></td>
<td><strong><code>file-size-in-bytes</code></strong></td>
<td><code>long</code></td>
<td>Size of the statistics file.</td>
</tr>
<tr>
<td><em>required</em></td>
<td><em>required</em></td>
<td><strong><code>file-footer-size-in-bytes</code></strong></td>
<td><code>long</code></td>
<td>Total size of the statistics file's footer (not the footer payload size). See <a href="../puffin-spec/">Puffin file format</a> for footer definition.</td>
</tr>
<tr>
<td><em>optional</em></td>
<td><em>optional</em></td>
<td><strong><code>key-metadata</code></strong></td>
<td>Base64-encoded implementation-specific key metadata for encryption.</td>
<td></td>
</tr>
<tr>
<td><em>required</em></td>
<td><em>required</em></td>
<td><strong><code>blob-metadata</code></strong></td>
<td><code>list&lt;blob metadata&gt;</code> (see below)</td>
<td>A list of the blob metadata for statistics contained in the file with structure described below.</td>
</tr>
</tbody>
</table>
<p>Blob metadata is a struct with the following fields:</p>
<table>
<thead>
<tr>
<th>v1</th>
<th>v2</th>
<th>Field name</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><em>required</em></td>
<td><em>required</em></td>
<td><strong><code>type</code></strong></td>
<td><code>string</code></td>
<td>Type of the blob. Matches Blob type in the Puffin file.</td>
</tr>
<tr>
<td><em>required</em></td>
<td><em>required</em></td>
<td><strong><code>snapshot-id</code></strong></td>
<td><code>long</code></td>
<td>ID of the Iceberg table's snapshot the blob was computed from.</td>
</tr>
<tr>
<td><em>required</em></td>
<td><em>required</em></td>
<td><strong><code>sequence-number</code></strong></td>
<td><code>long</code></td>
<td>Sequence number of the Iceberg table's snapshot the blob was computed from.</td>
</tr>
<tr>
<td><em>required</em></td>
<td><em>required</em></td>
<td><strong><code>fields</code></strong></td>
<td><code>list&lt;integer&gt;</code></td>
<td>Ordered list of fields, given by field ID, on which the statistic was calculated.</td>
</tr>
<tr>
<td><em>optional</em></td>
<td><em>optional</em></td>
<td><strong><code>properties</code></strong></td>
<td><code>map&lt;string, string&gt;</code></td>
<td>Additional properties associated with the statistic. Subset of Blob properties in the Puffin file.</td>
</tr>
</tbody>
</table>
<h4 id="commit-conflict-resolution-and-retry">Commit Conflict Resolution and Retry<a class="headerlink" href="#commit-conflict-resolution-and-retry" title="Permanent link">🔗</a></h4>
<p>When two commits happen at the same time and are based on the same version, only one commit will succeed. In most cases, the failed commit can be applied to the new current version of table metadata and retried. Updates verify the conditions under which they can be applied to a new version and retry if those conditions are met.</p>
<ul>
<li>Append operations have no requirements and can always be applied.</li>
<li>Replace operations must verify that the files that will be deleted are still in the table. Examples of replace operations include format changes (replace an Avro file with a Parquet file) and compactions (several files are replaced with a single file that contains the same rows).</li>
<li>Delete operations must verify that specific files to delete are still in the table. Delete operations based on expressions can always be applied (e.g., where timestamp &lt; X).</li>
<li>Table schema updates and partition spec changes must validate that the schema has not changed between the base version and the current version.</li>
</ul>
<h4 id="file-system-tables">File System Tables<a class="headerlink" href="#file-system-tables" title="Permanent link">🔗</a></h4>
<p>An atomic swap can be implemented using atomic rename in file systems that support it, like HDFS or most local file systems [1].</p>
<p>Each version of table metadata is stored in a metadata folder under the table’s base location using a file naming scheme that includes a version number, <code>V</code>: <code>v&lt;V&gt;.metadata.json</code>. To commit a new metadata version, <code>V+1</code>, the writer performs the following steps:</p>
<ol>
<li>Read the current table metadata version <code>V</code>.</li>
<li>Create new table metadata based on version <code>V</code>.</li>
<li>Write the new table metadata to a unique file: <code>&lt;random-uuid&gt;.metadata.json</code>.</li>
<li>Rename the unique file to the well-known file for version <code>V</code>: <code>v&lt;V+1&gt;.metadata.json</code>.<ol>
<li>If the rename succeeds, the commit succeeded and <code>V+1</code> is the table’s current version</li>
<li>If the rename fails, go back to step 1.</li>
</ol>
</li>
</ol>
<p>Notes:</p>
<ol>
<li>The file system table scheme is implemented in <a href="../javadoc/latest/?org/apache/iceberg/hadoop/HadoopTableOperations.html">HadoopTableOperations</a>.</li>
</ol>
<h4 id="metastore-tables">Metastore Tables<a class="headerlink" href="#metastore-tables" title="Permanent link">🔗</a></h4>
<p>The atomic swap needed to commit new versions of table metadata can be implemented by storing a pointer in a metastore or database that is updated with a check-and-put operation [1]. The check-and-put validates that the version of the table that a write is based on is still current and then makes the new metadata from the write the current version.</p>
<p>Each version of table metadata is stored in a metadata folder under the table’s base location using a naming scheme that includes a version and UUID: <code>&lt;V&gt;-&lt;random-uuid&gt;.metadata.json</code>. To commit a new metadata version, <code>V+1</code>, the writer performs the following steps:</p>
<ol>
<li>Create a new table metadata file based on the current metadata.</li>
<li>Write the new table metadata to a unique file: <code>&lt;V+1&gt;-&lt;random-uuid&gt;.metadata.json</code>.</li>
<li>Request that the metastore swap the table’s metadata pointer from the location of <code>V</code> to the location of <code>V+1</code>.<ol>
<li>If the swap succeeds, the commit succeeded. <code>V</code> was still the latest metadata version and the metadata file for <code>V+1</code> is now the current metadata.</li>
<li>If the swap fails, another writer has already created <code>V+1</code>. The current writer goes back to step 1.</li>
</ol>
</li>
</ol>
<p>Notes:</p>
<ol>
<li>The metastore table scheme is partly implemented in <a href="../javadoc/latest/?org/apache/iceberg/BaseMetastoreTableOperations.html">BaseMetastoreTableOperations</a>.</li>
</ol>
<h3 id="delete-formats">Delete Formats<a class="headerlink" href="#delete-formats" title="Permanent link">🔗</a></h3>
<p>This section details how to encode row-level deletes in Iceberg delete files. Row-level deletes are not supported in v1.</p>
<p>Row-level delete files are valid Iceberg data files: files must use valid Iceberg formats, schemas, and column projection. It is recommended that delete files are written using the table's default file format.</p>
<p>Row-level delete files are tracked by manifests, like data files. A separate set of manifests is used for delete files, but the manifest schemas are identical.</p>
<p>Both position and equality deletes allow encoding deleted row values with a delete. This can be used to reconstruct a stream of changes to a table.</p>
<h4 id="position-delete-files">Position Delete Files<a class="headerlink" href="#position-delete-files" title="Permanent link">🔗</a></h4>
<p>Position-based delete files identify deleted rows by file and position in one or more data files, and may optionally contain the deleted row.</p>
<p>A data row is deleted if there is an entry in a position delete file for the row's file and position in the data file, starting at 0.</p>
<p>Position-based delete files store <code>file_position_delete</code>, a struct with the following fields:</p>
<table>
<thead>
<tr>
<th>Field id, name</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong><code>2147483546 file_path</code></strong></td>
<td><code>string</code></td>
<td>Full URI of a data file with FS scheme. This must match the <code>file_path</code> of the target data file in a manifest entry</td>
</tr>
<tr>
<td><strong><code>2147483545 pos</code></strong></td>
<td><code>long</code></td>
<td>Ordinal position of a deleted row in the target data file identified by <code>file_path</code>, starting at <code>0</code></td>
</tr>
<tr>
<td><strong><code>2147483544 row</code></strong></td>
<td><code>required struct&lt;...&gt;</code> [1]</td>
<td>Deleted row values. Omit the column when not storing deleted rows.</td>
</tr>
</tbody>
</table>
<ol>
<li>When present in the delete file, <code>row</code> is required because all delete entries must include the row values.</li>
</ol>
<p>When the deleted row column is present, its schema may be any subset of the table schema and must use field ids matching the table.</p>
<p>To ensure the accuracy of statistics, all delete entries must include row values, or the column must be omitted (this is why the column type is <code>required</code>).</p>
<p>The rows in the delete file must be sorted by <code>file_path</code> then <code>pos</code> to optimize filtering rows while scanning. </p>
<ul>
<li>Sorting by <code>file_path</code> allows filter pushdown by file in columnar storage formats.</li>
<li>Sorting by <code>pos</code> allows filtering rows while scanning, to avoid keeping deletes in memory.</li>
</ul>
<h4 id="equality-delete-files">Equality Delete Files<a class="headerlink" href="#equality-delete-files" title="Permanent link">🔗</a></h4>
<p>Equality delete files identify deleted rows in a collection of data files by one or more column values, and may optionally contain additional columns of the deleted row.</p>
<p>Equality delete files store any subset of a table's columns and use the table's field ids. The <em>delete columns</em> are the columns of the delete file used to match data rows. Delete columns are identified by id in the delete file <a href="#manifests">metadata column <code>equality_ids</code></a>. Float and double columns cannot be used as delete columns in equality delete files.</p>
<p>A data row is deleted if its values are equal to all delete columns for any row in an equality delete file that applies to the row's data file (see <a href="#scan-planning"><code>Scan Planning</code></a>).</p>
<p>Each row of the delete file produces one equality predicate that matches any row where the delete columns are equal. Multiple columns can be thought of as an <code>AND</code> of equality predicates. A <code>null</code> value in a delete column matches a row if the row's value is <code>null</code>, equivalent to <code>col IS NULL</code>.</p>
<p>For example, a table with the following data:</p>
<div class="highlight"><pre><span></span><code><a id="__codelineno-1-1" name="__codelineno-1-1" href="#__codelineno-1-1"></a> 1: id | 2: category | 3: name
<a id="__codelineno-1-2" name="__codelineno-1-2" href="#__codelineno-1-2"></a>-------|-------------|---------
<a id="__codelineno-1-3" name="__codelineno-1-3" href="#__codelineno-1-3"></a> 1 | marsupial | Koala
<a id="__codelineno-1-4" name="__codelineno-1-4" href="#__codelineno-1-4"></a> 2 | toy | Teddy
<a id="__codelineno-1-5" name="__codelineno-1-5" href="#__codelineno-1-5"></a> 3 | NULL | Grizzly
<a id="__codelineno-1-6" name="__codelineno-1-6" href="#__codelineno-1-6"></a> 4 | NULL | Polar
</code></pre></div>
<p>The delete <code>id = 3</code> could be written as either of the following equality delete files:</p>
<div class="highlight"><pre><span></span><code><a id="__codelineno-2-1" name="__codelineno-2-1" href="#__codelineno-2-1"></a>equality_ids=[1]
<a id="__codelineno-2-2" name="__codelineno-2-2" href="#__codelineno-2-2"></a>
<a id="__codelineno-2-3" name="__codelineno-2-3" href="#__codelineno-2-3"></a> 1: id
<a id="__codelineno-2-4" name="__codelineno-2-4" href="#__codelineno-2-4"></a>-------
<a id="__codelineno-2-5" name="__codelineno-2-5" href="#__codelineno-2-5"></a> 3
</code></pre></div>
<div class="highlight"><pre><span></span><code><a id="__codelineno-3-1" name="__codelineno-3-1" href="#__codelineno-3-1"></a>equality_ids=[1]
<a id="__codelineno-3-2" name="__codelineno-3-2" href="#__codelineno-3-2"></a>
<a id="__codelineno-3-3" name="__codelineno-3-3" href="#__codelineno-3-3"></a> 1: id | 2: category | 3: name
<a id="__codelineno-3-4" name="__codelineno-3-4" href="#__codelineno-3-4"></a>-------|-------------|---------
<a id="__codelineno-3-5" name="__codelineno-3-5" href="#__codelineno-3-5"></a> 3 | NULL | Grizzly
</code></pre></div>
<p>The delete <code>id = 4 AND category IS NULL</code> could be written as the following equality delete file:</p>
<div class="highlight"><pre><span></span><code><a id="__codelineno-4-1" name="__codelineno-4-1" href="#__codelineno-4-1"></a>equality_ids=[1, 2]
<a id="__codelineno-4-2" name="__codelineno-4-2" href="#__codelineno-4-2"></a>
<a id="__codelineno-4-3" name="__codelineno-4-3" href="#__codelineno-4-3"></a> 1: id | 2: category | 3: name
<a id="__codelineno-4-4" name="__codelineno-4-4" href="#__codelineno-4-4"></a>-------|-------------|---------
<a id="__codelineno-4-5" name="__codelineno-4-5" href="#__codelineno-4-5"></a> 4 | NULL | Polar
</code></pre></div>
<p>If a delete column in an equality delete file is later dropped from the table, it must still be used when applying the equality deletes. If a column was added to a table and later used as a delete column in an equality delete file, the column value is read for older data files using normal projection rules (defaults to <code>null</code>).</p>
<h4 id="delete-file-stats">Delete File Stats<a class="headerlink" href="#delete-file-stats" title="Permanent link">🔗</a></h4>
<p>Manifests hold the same statistics for delete files and data files. For delete files, the metrics describe the values that were deleted.</p>
<h2 id="appendix-a-format-specific-requirements">Appendix A: Format-specific Requirements<a class="headerlink" href="#appendix-a-format-specific-requirements" title="Permanent link">🔗</a></h2>
<h3 id="avro">Avro<a class="headerlink" href="#avro" title="Permanent link">🔗</a></h3>
<p><strong>Data Type Mappings</strong></p>
<p>Values should be stored in Avro using the Avro types and logical type annotations in the table below.</p>
<p>Optional fields, array elements, and map values must be wrapped in an Avro <code>union</code> with <code>null</code>. This is the only union type allowed in Iceberg data files.</p>
<p>Optional fields must always set the Avro field default value to null.</p>
<p>Maps with non-string keys must use an array representation with the <code>map</code> logical type. The array representation or Avro’s map type may be used for maps with string keys.</p>
<table>
<thead>
<tr>
<th>Type</th>
<th>Avro type</th>
<th>Notes</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong><code>boolean</code></strong></td>
<td><code>boolean</code></td>
<td></td>
</tr>
<tr>
<td><strong><code>int</code></strong></td>
<td><code>int</code></td>
<td></td>
</tr>
<tr>
<td><strong><code>long</code></strong></td>
<td><code>long</code></td>
<td></td>
</tr>
<tr>
<td><strong><code>float</code></strong></td>
<td><code>float</code></td>
<td></td>
</tr>
<tr>
<td><strong><code>double</code></strong></td>
<td><code>double</code></td>
<td></td>
</tr>
<tr>
<td><strong><code>decimal(P,S)</code></strong></td>
<td><code>{ "type": "fixed",</code><br />&nbsp;&nbsp;<code>"size": minBytesRequired(P),</code><br />&nbsp;&nbsp;<code>"logicalType": "decimal",</code><br />&nbsp;&nbsp;<code>"precision": P,</code><br />&nbsp;&nbsp;<code>"scale": S }</code></td>
<td>Stored as fixed using the minimum number of bytes for the given precision.</td>
</tr>
<tr>
<td><strong><code>date</code></strong></td>
<td><code>{ "type": "int",</code><br />&nbsp;&nbsp;<code>"logicalType": "date" }</code></td>
<td>Stores days from the 1970-01-01.</td>
</tr>
<tr>
<td><strong><code>time</code></strong></td>
<td><code>{ "type": "long",</code><br />&nbsp;&nbsp;<code>"logicalType": "time-micros" }</code></td>
<td>Stores microseconds from midnight.</td>
</tr>
<tr>
<td><strong><code>timestamp</code></strong></td>
<td><code>{ "type": "long",</code><br />&nbsp;&nbsp;<code>"logicalType": "timestamp-micros",</code><br />&nbsp;&nbsp;<code>"adjust-to-utc": false }</code></td>
<td>Stores microseconds from 1970-01-01 00:00:00.000000.</td>
</tr>
<tr>
<td><strong><code>timestamptz</code></strong></td>
<td><code>{ "type": "long",</code><br />&nbsp;&nbsp;<code>"logicalType": "timestamp-micros",</code><br />&nbsp;&nbsp;<code>"adjust-to-utc": true }</code></td>
<td>Stores microseconds from 1970-01-01 00:00:00.000000 UTC.</td>
</tr>
<tr>
<td><strong><code>string</code></strong></td>
<td><code>string</code></td>
<td></td>
</tr>
<tr>
<td><strong><code>uuid</code></strong></td>
<td><code>{ "type": "fixed",</code><br />&nbsp;&nbsp;<code>"size": 16,</code><br />&nbsp;&nbsp;<code>"logicalType": "uuid" }</code></td>
<td></td>
</tr>
<tr>
<td><strong><code>fixed(L)</code></strong></td>
<td><code>{ "type": "fixed",</code><br />&nbsp;&nbsp;<code>"size": L }</code></td>
<td></td>
</tr>
<tr>
<td><strong><code>binary</code></strong></td>
<td><code>bytes</code></td>
<td></td>
</tr>
<tr>
<td><strong><code>struct</code></strong></td>
<td><code>record</code></td>
<td></td>
</tr>
<tr>
<td><strong><code>list</code></strong></td>
<td><code>array</code></td>
<td></td>
</tr>
<tr>
<td><strong><code>map</code></strong></td>
<td><code>array</code> of key-value records, or <code>map</code> when keys are strings (optional).</td>
<td>Array storage must use logical type name <code>map</code> and must store elements that are 2-field records. The first field is a non-null key and the second field is the value.</td>
</tr>
</tbody>
</table>
<p><strong>Field IDs</strong></p>
<p>Iceberg struct, list, and map types identify nested types by ID. When writing data to Avro files, these IDs must be stored in the Avro schema to support ID-based column pruning.</p>
<p>IDs are stored as JSON integers in the following locations:</p>
<table>
<thead>
<tr>
<th>ID</th>
<th>Avro schema location</th>
<th>Property</th>
<th>Example</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>Struct field</strong></td>
<td>Record field object</td>
<td><code>field-id</code></td>
<td><code>{ "type": "record", ...</code><br />&nbsp;&nbsp;<code>"fields": [</code><br />&nbsp;&nbsp;&nbsp;&nbsp;<code>{ "name": "l",</code><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>"type": ["null", "long"],</code><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>"default": null,</code><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>"field-id": 8 }</code><br />&nbsp;&nbsp;<code>] }</code></td>
</tr>
<tr>
<td><strong>List element</strong></td>
<td>Array schema object</td>
<td><code>element-id</code></td>
<td><code>{ "type": "array",</code><br />&nbsp;&nbsp;<code>"items": "int",</code><br />&nbsp;&nbsp;<code>"element-id": 9 }</code></td>
</tr>
<tr>
<td><strong>String map key</strong></td>
<td>Map schema object</td>
<td><code>key-id</code></td>
<td><code>{ "type": "map",</code><br />&nbsp;&nbsp;<code>"values": "int",</code><br />&nbsp;&nbsp;<code>"key-id": 10,</code><br />&nbsp;&nbsp;<code>"value-id": 11 }</code></td>
</tr>
<tr>
<td><strong>String map value</strong></td>
<td>Map schema object</td>
<td><code>value-id</code></td>
<td></td>
</tr>
<tr>
<td><strong>Map key, value</strong></td>
<td>Key, value fields in the element record.</td>
<td><code>field-id</code></td>
<td><code>{ "type": "array",</code><br />&nbsp;&nbsp;<code>"logicalType": "map",</code><br />&nbsp;&nbsp;<code>"items": {</code><br />&nbsp;&nbsp;&nbsp;&nbsp;<code>"type": "record",</code><br />&nbsp;&nbsp;&nbsp;&nbsp;<code>"name": "k12_v13",</code><br />&nbsp;&nbsp;&nbsp;&nbsp;<code>"fields": [</code><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>{ "name": "key",</code><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>"type": "int",</code><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>"field-id": 12 },</code><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>{ "name": "value",</code><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>"type": "string",</code><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>"field-id": 13 }</code><br />&nbsp;&nbsp;&nbsp;&nbsp;<code>] } }</code></td>
</tr>
</tbody>
</table>
<p>Note that the string map case is for maps where the key type is a string. Using Avro’s map type in this case is optional. Maps with string keys may be stored as arrays.</p>
<h3 id="parquet">Parquet<a class="headerlink" href="#parquet" title="Permanent link">🔗</a></h3>
<p><strong>Data Type Mappings</strong></p>
<p>Values should be stored in Parquet using the types and logical type annotations in the table below. Column IDs are required.</p>
<p>Lists must use the <a href="https://github.com/apache/parquet-format/blob/master/LogicalTypes.md#lists">3-level representation</a>.</p>
<table>
<thead>
<tr>
<th>Type</th>
<th>Parquet physical type</th>
<th>Logical type</th>
<th>Notes</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong><code>boolean</code></strong></td>
<td><code>boolean</code></td>
<td></td>
<td></td>
</tr>
<tr>
<td><strong><code>int</code></strong></td>
<td><code>int</code></td>
<td></td>
<td></td>
</tr>
<tr>
<td><strong><code>long</code></strong></td>
<td><code>long</code></td>
<td></td>
<td></td>
</tr>
<tr>
<td><strong><code>float</code></strong></td>
<td><code>float</code></td>
<td></td>
<td></td>
</tr>
<tr>
<td><strong><code>double</code></strong></td>
<td><code>double</code></td>
<td></td>
<td></td>
</tr>
<tr>
<td><strong><code>decimal(P,S)</code></strong></td>
<td><code>P &lt;= 9</code>: <code>int32</code>,<br /><code>P &lt;= 18</code>: <code>int64</code>,<br /><code>fixed</code> otherwise</td>
<td><code>DECIMAL(P,S)</code></td>
<td>Fixed must use the minimum number of bytes that can store <code>P</code>.</td>
</tr>
<tr>
<td><strong><code>date</code></strong></td>
<td><code>int32</code></td>
<td><code>DATE</code></td>
<td>Stores days from the 1970-01-01.</td>
</tr>
<tr>
<td><strong><code>time</code></strong></td>
<td><code>int64</code></td>
<td><code>TIME_MICROS</code> with <code>adjustToUtc=false</code></td>
<td>Stores microseconds from midnight.</td>
</tr>
<tr>
<td><strong><code>timestamp</code></strong></td>
<td><code>int64</code></td>
<td><code>TIMESTAMP_MICROS</code> with <code>adjustToUtc=false</code></td>
<td>Stores microseconds from 1970-01-01 00:00:00.000000.</td>
</tr>
<tr>
<td><strong><code>timestamptz</code></strong></td>
<td><code>int64</code></td>
<td><code>TIMESTAMP_MICROS</code> with <code>adjustToUtc=true</code></td>
<td>Stores microseconds from 1970-01-01 00:00:00.000000 UTC.</td>
</tr>
<tr>
<td><strong><code>string</code></strong></td>
<td><code>binary</code></td>
<td><code>UTF8</code></td>
<td>Encoding must be UTF-8.</td>
</tr>
<tr>
<td><strong><code>uuid</code></strong></td>
<td><code>fixed_len_byte_array[16]</code></td>
<td><code>UUID</code></td>
<td></td>
</tr>
<tr>
<td><strong><code>fixed(L)</code></strong></td>
<td><code>fixed_len_byte_array[L]</code></td>
<td></td>
<td></td>
</tr>
<tr>
<td><strong><code>binary</code></strong></td>
<td><code>binary</code></td>
<td></td>
<td></td>
</tr>
<tr>
<td><strong><code>struct</code></strong></td>
<td><code>group</code></td>
<td></td>
<td></td>
</tr>
<tr>
<td><strong><code>list</code></strong></td>
<td><code>3-level list</code></td>
<td><code>LIST</code></td>
<td>See Parquet docs for 3-level representation.</td>
</tr>
<tr>
<td><strong><code>map</code></strong></td>
<td><code>3-level map</code></td>
<td><code>MAP</code></td>
<td>See Parquet docs for 3-level representation.</td>
</tr>
</tbody>
</table>
<h3 id="orc">ORC<a class="headerlink" href="#orc" title="Permanent link">🔗</a></h3>
<p><strong>Data Type Mappings</strong></p>
<table>
<thead>
<tr>
<th>Type</th>
<th>ORC type</th>
<th>ORC type attributes</th>
<th>Notes</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong><code>boolean</code></strong></td>
<td><code>boolean</code></td>
<td></td>
<td></td>
</tr>
<tr>
<td><strong><code>int</code></strong></td>
<td><code>int</code></td>
<td></td>
<td>ORC <code>tinyint</code> and <code>smallint</code> would also map to <strong><code>int</code></strong>.</td>
</tr>
<tr>
<td><strong><code>long</code></strong></td>
<td><code>long</code></td>
<td></td>
<td></td>
</tr>
<tr>
<td><strong><code>float</code></strong></td>
<td><code>float</code></td>
<td></td>
<td></td>
</tr>
<tr>
<td><strong><code>double</code></strong></td>
<td><code>double</code></td>
<td></td>
<td></td>
</tr>
<tr>
<td><strong><code>decimal(P,S)</code></strong></td>
<td><code>decimal</code></td>
<td></td>
<td></td>
</tr>
<tr>
<td><strong><code>date</code></strong></td>
<td><code>date</code></td>
<td></td>
<td></td>
</tr>
<tr>
<td><strong><code>time</code></strong></td>
<td><code>long</code></td>
<td><code>iceberg.long-type</code>=<code>TIME</code></td>
<td>Stores microseconds from midnight.</td>
</tr>
<tr>
<td><strong><code>timestamp</code></strong></td>
<td><code>timestamp</code></td>
<td></td>
<td>[1]</td>
</tr>
<tr>
<td><strong><code>timestamptz</code></strong></td>
<td><code>timestamp_instant</code></td>
<td></td>
<td>[1]</td>
</tr>
<tr>
<td><strong><code>string</code></strong></td>
<td><code>string</code></td>
<td></td>
<td>ORC <code>varchar</code> and <code>char</code> would also map to <strong><code>string</code></strong>.</td>
</tr>
<tr>
<td><strong><code>uuid</code></strong></td>
<td><code>binary</code></td>
<td><code>iceberg.binary-type</code>=<code>UUID</code></td>
<td></td>
</tr>
<tr>
<td><strong><code>fixed(L)</code></strong></td>
<td><code>binary</code></td>
<td><code>iceberg.binary-type</code>=<code>FIXED</code> &amp; <code>iceberg.length</code>=<code>L</code></td>
<td>The length would not be checked by the ORC reader and should be checked by the adapter.</td>
</tr>
<tr>
<td><strong><code>binary</code></strong></td>
<td><code>binary</code></td>
<td></td>
<td></td>
</tr>
<tr>
<td><strong><code>struct</code></strong></td>
<td><code>struct</code></td>
<td></td>
<td></td>
</tr>
<tr>
<td><strong><code>list</code></strong></td>
<td><code>array</code></td>
<td></td>
<td></td>
</tr>
<tr>
<td><strong><code>map</code></strong></td>
<td><code>map</code></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<p>Notes:</p>
<ol>
<li>ORC's <a href="https://orc.apache.org/api/hive-storage-api/org/apache/hadoop/hive/ql/exec/vector/TimestampColumnVector.html">TimestampColumnVector</a> consists of a time field (milliseconds since epoch) and a nanos field (nanoseconds within the second). Hence the milliseconds within the second are reported twice; once in the time field and again in the nanos field. The read adapter should only use milliseconds within the second from one of these fields. The write adapter should also report milliseconds within the second twice; once in the time field and again in the nanos field. ORC writer is expected to correctly consider millis information from one of the fields. More details at https://issues.apache.org/jira/browse/ORC-546</li>
</ol>
<p>One of the interesting challenges with this is how to map Iceberg’s schema evolution (id based) on to ORC’s (name based). In theory, we could use Iceberg’s column ids as the column and field names, but that would be inconvenient.</p>
<p>The column IDs must be stored in ORC type attributes using the key <code>iceberg.id</code>, and <code>iceberg.required</code> to store <code>"true"</code> if the Iceberg column is required, otherwise it will be optional.</p>
<p>Iceberg would build the desired reader schema with their schema evolution rules and pass that down to the ORC reader, which would then use its schema evolution to map that to the writer’s schema. Basically, Iceberg would need to change the names of columns and fields to get the desired mapping.</p>
<table>
<thead>
<tr>
<th>Iceberg writer</th>
<th>ORC writer</th>
<th>Iceberg reader</th>
<th>ORC reader</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>struct&lt;a (1): int, b (2): string&gt;</code></td>
<td><code>struct&lt;a: int, b: string&gt;</code></td>
<td><code>struct&lt;a (2): string, c (3): date&gt;</code></td>
<td><code>struct&lt;b: string, c: date&gt;</code></td>
</tr>
<tr>
<td><code>struct&lt;a (1): struct&lt;b (2): string, c (3): date&gt;&gt;</code></td>
<td><code>struct&lt;a: struct&lt;b:string, c:date&gt;&gt;</code></td>
<td><code>struct&lt;aa (1): struct&lt;cc (3): date, bb (2): string&gt;&gt;</code></td>
<td><code>struct&lt;a: struct&lt;c:date, b:string&gt;&gt;</code></td>
</tr>
</tbody>
</table>
<h2 id="appendix-b-32-bit-hash-requirements">Appendix B: 32-bit Hash Requirements<a class="headerlink" href="#appendix-b-32-bit-hash-requirements" title="Permanent link">🔗</a></h2>
<p>The 32-bit hash implementation is 32-bit Murmur3 hash, x86 variant, seeded with 0.</p>
<table>
<thead>
<tr>
<th>Primitive type</th>
<th>Hash specification</th>
<th>Test value</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong><code>int</code></strong></td>
<td><code>hashLong(long(v))</code> [1]</td>
<td><code>34</code><code>2017239379</code></td>
</tr>
<tr>
<td><strong><code>long</code></strong></td>
<td><code>hashBytes(littleEndianBytes(v))</code></td>
<td><code>34L</code><code>2017239379</code></td>
</tr>
<tr>
<td><strong><code>decimal(P,S)</code></strong></td>
<td><code>hashBytes(minBigEndian(unscaled(v)))</code>[2]</td>
<td><code>14.20</code><code>-500754589</code></td>
</tr>
<tr>
<td><strong><code>date</code></strong></td>
<td><code>hashInt(daysFromUnixEpoch(v))</code></td>
<td><code>2017-11-16</code><code>-653330422</code></td>
</tr>
<tr>
<td><strong><code>time</code></strong></td>
<td><code>hashLong(microsecsFromMidnight(v))</code></td>
<td><code>22:31:08</code><code>-662762989</code></td>
</tr>
<tr>
<td><strong><code>timestamp</code></strong></td>
<td><code>hashLong(microsecsFromUnixEpoch(v))</code></td>
<td><code>2017-11-16T22:31:08</code><code>-2047944441</code></td>
</tr>
<tr>
<td><strong><code>timestamptz</code></strong></td>
<td><code>hashLong(microsecsFromUnixEpoch(v))</code></td>
<td><code>2017-11-16T14:31:08-08:00</code><code>-2047944441</code></td>
</tr>
<tr>
<td><strong><code>string</code></strong></td>
<td><code>hashBytes(utf8Bytes(v))</code></td>
<td><code>iceberg</code><code>1210000089</code></td>
</tr>
<tr>
<td><strong><code>uuid</code></strong></td>
<td><code>hashBytes(uuidBytes(v))</code> [3]</td>
<td><code>f79c3e09-677c-4bbd-a479-3f349cb785e7</code><code>1488055340</code></td>
</tr>
<tr>
<td><strong><code>fixed(L)</code></strong></td>
<td><code>hashBytes(v)</code></td>
<td><code>00 01 02 03</code><code>-188683207</code></td>
</tr>
<tr>
<td><strong><code>binary</code></strong></td>
<td><code>hashBytes(v)</code></td>
<td><code>00 01 02 03</code><code>-188683207</code></td>
</tr>
</tbody>
</table>
<p>The types below are not currently valid for bucketing, and so are not hashed. However, if that changes and a hash value is needed, the following table shall apply:</p>
<table>
<thead>
<tr>
<th>Primitive type</th>
<th>Hash specification</th>
<th>Test value</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong><code>boolean</code></strong></td>
<td><code>false: hashInt(0)</code>, <code>true: hashInt(1)</code></td>
<td><code>true</code><code>1392991556</code></td>
</tr>
<tr>
<td><strong><code>float</code></strong></td>
<td><code>hashLong(doubleToLongBits(double(v))</code> [4]</td>
<td><code>1.0F</code><code>-142385009</code>, <code>0.0F</code><code>1669671676</code>, <code>-0.0F</code><code>1669671676</code></td>
</tr>
<tr>
<td><strong><code>double</code></strong></td>
<td><code>hashLong(doubleToLongBits(v))</code> [4]</td>
<td><code>1.0D</code><code>-142385009</code>, <code>0.0D</code><code>1669671676</code>, <code>-0.0D</code><code>1669671676</code></td>
</tr>
</tbody>
</table>
<p>Notes:</p>
<ol>
<li>Integer and long hash results must be identical for all integer values. This ensures that schema evolution does not change bucket partition values if integer types are promoted.</li>
<li>Decimal values are hashed using the minimum number of bytes required to hold the unscaled value as a two’s complement big-endian; this representation does not include padding bytes required for storage in a fixed-length array.
Hash results are not dependent on decimal scale, which is part of the type, not the data value.</li>
<li>UUIDs are encoded using big endian. The test UUID for the example above is: <code>f79c3e09-677c-4bbd-a479-3f349cb785e7</code>. This UUID encoded as a byte array is:
<code>F7 9C 3E 09 67 7C 4B BD A4 79 3F 34 9C B7 85 E7</code></li>
<li><code>doubleToLongBits</code> must give the IEEE 754 compliant bit representation of the double value. All <code>NaN</code> bit patterns must be canonicalized to <code>0x7ff8000000000000L</code>. Negative zero (<code>-0.0</code>) must be canonicalized to positive zero (<code>0.0</code>). Float hash values are the result of hashing the float cast to double to ensure that schema evolution does not change hash values if float types are promoted.</li>
</ol>
<h2 id="appendix-c-json-serialization">Appendix C: JSON serialization<a class="headerlink" href="#appendix-c-json-serialization" title="Permanent link">🔗</a></h2>
<h3 id="schemas">Schemas<a class="headerlink" href="#schemas" title="Permanent link">🔗</a></h3>
<p>Schemas are serialized as a JSON object with the same fields as a struct in the table below, and the following additional fields:</p>
<table>
<thead>
<tr>
<th>v1</th>
<th>v2</th>
<th>Field</th>
<th>JSON representation</th>
<th>Example</th>
</tr>
</thead>
<tbody>
<tr>
<td><em>optional</em></td>
<td><em>required</em></td>
<td><strong><code>schema-id</code></strong></td>
<td><code>JSON int</code></td>
<td><code>0</code></td>
</tr>
<tr>
<td><em>optional</em></td>
<td><em>optional</em></td>
<td><strong><code>identifier-field-ids</code></strong></td>
<td><code>JSON list of ints</code></td>
<td><code>[1, 2]</code></td>
</tr>
</tbody>
</table>
<p>Types are serialized according to this table:</p>
<table>
<thead>
<tr>
<th>Type</th>
<th>JSON representation</th>
<th>Example</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong><code>boolean</code></strong></td>
<td><code>JSON string: "boolean"</code></td>
<td><code>"boolean"</code></td>
</tr>
<tr>
<td><strong><code>int</code></strong></td>
<td><code>JSON string: "int"</code></td>
<td><code>"int"</code></td>
</tr>
<tr>
<td><strong><code>long</code></strong></td>
<td><code>JSON string: "long"</code></td>
<td><code>"long"</code></td>
</tr>
<tr>
<td><strong><code>float</code></strong></td>
<td><code>JSON string: "float"</code></td>
<td><code>"float"</code></td>
</tr>
<tr>
<td><strong><code>double</code></strong></td>
<td><code>JSON string: "double"</code></td>
<td><code>"double"</code></td>
</tr>
<tr>
<td><strong><code>date</code></strong></td>
<td><code>JSON string: "date"</code></td>
<td><code>"date"</code></td>
</tr>
<tr>
<td><strong><code>time</code></strong></td>
<td><code>JSON string: "time"</code></td>
<td><code>"time"</code></td>
</tr>
<tr>
<td><strong><code>timestamp without zone</code></strong></td>
<td><code>JSON string: "timestamp"</code></td>
<td><code>"timestamp"</code></td>
</tr>
<tr>
<td><strong><code>timestamp with zone</code></strong></td>
<td><code>JSON string: "timestamptz"</code></td>
<td><code>"timestamptz"</code></td>
</tr>
<tr>
<td><strong><code>string</code></strong></td>
<td><code>JSON string: "string"</code></td>
<td><code>"string"</code></td>
</tr>
<tr>
<td><strong><code>uuid</code></strong></td>
<td><code>JSON string: "uuid"</code></td>
<td><code>"uuid"</code></td>
</tr>
<tr>
<td><strong><code>fixed(L)</code></strong></td>
<td><code>JSON string: "fixed[&lt;L&gt;]"</code></td>
<td><code>"fixed[16]"</code></td>
</tr>
<tr>
<td><strong><code>binary</code></strong></td>
<td><code>JSON string: "binary"</code></td>
<td><code>"binary"</code></td>
</tr>
<tr>
<td><strong><code>decimal(P, S)</code></strong></td>
<td><code>JSON string: "decimal(&lt;P&gt;,&lt;S&gt;)"</code></td>
<td><code>"decimal(9,2)"</code>,<br /><code>"decimal(9, 2)"</code></td>
</tr>
<tr>
<td><strong><code>struct</code></strong></td>
<td><code>JSON object: {</code><br />&nbsp;&nbsp;<code>"type": "struct",</code><br />&nbsp;&nbsp;<code>"fields": [ {</code><br />&nbsp;&nbsp;&nbsp;&nbsp;<code>"id": &lt;field id int&gt;,</code><br />&nbsp;&nbsp;&nbsp;&nbsp;<code>"name": &lt;name string&gt;,</code><br />&nbsp;&nbsp;&nbsp;&nbsp;<code>"required": &lt;boolean&gt;,</code><br />&nbsp;&nbsp;&nbsp;&nbsp;<code>"type": &lt;type JSON&gt;,</code><br />&nbsp;&nbsp;&nbsp;&nbsp;<code>"doc": &lt;comment string&gt;,</code><br />&nbsp;&nbsp;&nbsp;&nbsp;<code>"initial-default": &lt;JSON encoding of default value&gt;,</code><br />&nbsp;&nbsp;&nbsp;&nbsp;<code>"write-default": &lt;JSON encoding of default value&gt;</code><br />&nbsp;&nbsp;&nbsp;&nbsp;<code>}, ...</code><br />&nbsp;&nbsp;<code>] }</code></td>
<td><code>{</code><br />&nbsp;&nbsp;<code>"type": "struct",</code><br />&nbsp;&nbsp;<code>"fields": [ {</code><br />&nbsp;&nbsp;&nbsp;&nbsp;<code>"id": 1,</code><br />&nbsp;&nbsp;&nbsp;&nbsp;<code>"name": "id",</code><br />&nbsp;&nbsp;&nbsp;&nbsp;<code>"required": true,</code><br />&nbsp;&nbsp;&nbsp;&nbsp;<code>"type": "uuid",</code><br />&nbsp;&nbsp;&nbsp;&nbsp;<code>"initial-default": "0db3e2a8-9d1d-42b9-aa7b-74ebe558dceb",</code><br />&nbsp;&nbsp;&nbsp;&nbsp;<code>"write-default": "ec5911be-b0a7-458c-8438-c9a3e53cffae"</code><br />&nbsp;&nbsp;<code>}, {</code><br />&nbsp;&nbsp;&nbsp;&nbsp;<code>"id": 2,</code><br />&nbsp;&nbsp;&nbsp;&nbsp;<code>"name": "data",</code><br />&nbsp;&nbsp;&nbsp;&nbsp;<code>"required": false,</code><br />&nbsp;&nbsp;&nbsp;&nbsp;<code>"type": {</code><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>"type": "list",</code><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>...</code><br />&nbsp;&nbsp;&nbsp;&nbsp;<code>}</code><br />&nbsp;&nbsp;<code>} ]</code><br /><code>}</code></td>
</tr>
<tr>
<td><strong><code>list</code></strong></td>
<td><code>JSON object: {</code><br />&nbsp;&nbsp;<code>"type": "list",</code><br />&nbsp;&nbsp;<code>"element-id": &lt;id int&gt;,</code><br />&nbsp;&nbsp;<code>"element-required": &lt;bool&gt;</code><br />&nbsp;&nbsp;<code>"element": &lt;type JSON&gt;</code><br /><code>}</code></td>
<td><code>{</code><br />&nbsp;&nbsp;<code>"type": "list",</code><br />&nbsp;&nbsp;<code>"element-id": 3,</code><br />&nbsp;&nbsp;<code>"element-required": true,</code><br />&nbsp;&nbsp;<code>"element": "string"</code><br /><code>}</code></td>
</tr>
<tr>
<td><strong><code>map</code></strong></td>
<td><code>JSON object: {</code><br />&nbsp;&nbsp;<code>"type": "map",</code><br />&nbsp;&nbsp;<code>"key-id": &lt;key id int&gt;,</code><br />&nbsp;&nbsp;<code>"key": &lt;type JSON&gt;,</code><br />&nbsp;&nbsp;<code>"value-id": &lt;val id int&gt;,</code><br />&nbsp;&nbsp;<code>"value-required": &lt;bool&gt;</code><br />&nbsp;&nbsp;<code>"value": &lt;type JSON&gt;</code><br /><code>}</code></td>
<td><code>{</code><br />&nbsp;&nbsp;<code>"type": "map",</code><br />&nbsp;&nbsp;<code>"key-id": 4,</code><br />&nbsp;&nbsp;<code>"key": "string",</code><br />&nbsp;&nbsp;<code>"value-id": 5,</code><br />&nbsp;&nbsp;<code>"value-required": false,</code><br />&nbsp;&nbsp;<code>"value": "double"</code><br /><code>}</code></td>
</tr>
</tbody>
</table>
<p>Note that default values are serialized using the JSON single-value serialization in <a href="#appendix-d-single-value-serialization">Appendix D</a>.</p>
<h3 id="partition-specs">Partition Specs<a class="headerlink" href="#partition-specs" title="Permanent link">🔗</a></h3>
<p>Partition specs are serialized as a JSON object with the following fields:</p>
<table>
<thead>
<tr>
<th>Field</th>
<th>JSON representation</th>
<th>Example</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong><code>spec-id</code></strong></td>
<td><code>JSON int</code></td>
<td><code>0</code></td>
</tr>
<tr>
<td><strong><code>fields</code></strong></td>
<td><code>JSON list: [</code><br />&nbsp;&nbsp;<code>&lt;partition field JSON&gt;,</code><br />&nbsp;&nbsp;<code>...</code><br /><code>]</code></td>
<td><code>[ {</code><br />&nbsp;&nbsp;<code>"source-id": 4,</code><br />&nbsp;&nbsp;<code>"field-id": 1000,</code><br />&nbsp;&nbsp;<code>"name": "ts_day",</code><br />&nbsp;&nbsp;<code>"transform": "day"</code><br /><code>}, {</code><br />&nbsp;&nbsp;<code>"source-id": 1,</code><br />&nbsp;&nbsp;<code>"field-id": 1001,</code><br />&nbsp;&nbsp;<code>"name": "id_bucket",</code><br />&nbsp;&nbsp;<code>"transform": "bucket[16]"</code><br /><code>} ]</code></td>
</tr>
</tbody>
</table>
<p>Each partition field in the fields list is stored as an object. See the table for more detail:</p>
<table>
<thead>
<tr>
<th>Transform or Field</th>
<th>JSON representation</th>
<th>Example</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong><code>identity</code></strong></td>
<td><code>JSON string: "identity"</code></td>
<td><code>"identity"</code></td>
</tr>
<tr>
<td><strong><code>bucket[N]</code></strong></td>
<td><code>JSON string: "bucket[&lt;N&gt;]"</code></td>
<td><code>"bucket[16]"</code></td>
</tr>
<tr>
<td><strong><code>truncate[W]</code></strong></td>
<td><code>JSON string: "truncate[&lt;W&gt;]"</code></td>
<td><code>"truncate[20]"</code></td>
</tr>
<tr>
<td><strong><code>year</code></strong></td>
<td><code>JSON string: "year"</code></td>
<td><code>"year"</code></td>
</tr>
<tr>
<td><strong><code>month</code></strong></td>
<td><code>JSON string: "month"</code></td>
<td><code>"month"</code></td>
</tr>
<tr>
<td><strong><code>day</code></strong></td>
<td><code>JSON string: "day"</code></td>
<td><code>"day"</code></td>
</tr>
<tr>
<td><strong><code>hour</code></strong></td>
<td><code>JSON string: "hour"</code></td>
<td><code>"hour"</code></td>
</tr>
<tr>
<td><strong><code>Partition Field</code></strong></td>
<td><code>JSON object: {</code><br />&nbsp;&nbsp;<code>"source-id": &lt;id int&gt;,</code><br />&nbsp;&nbsp;<code>"field-id": &lt;field id int&gt;,</code><br />&nbsp;&nbsp;<code>"name": &lt;name string&gt;,</code><br />&nbsp;&nbsp;<code>"transform": &lt;transform JSON&gt;</code><br /><code>}</code></td>
<td><code>{</code><br />&nbsp;&nbsp;<code>"source-id": 1,</code><br />&nbsp;&nbsp;<code>"field-id": 1000,</code><br />&nbsp;&nbsp;<code>"name": "id_bucket",</code><br />&nbsp;&nbsp;<code>"transform": "bucket[16]"</code><br /><code>}</code></td>
</tr>
</tbody>
</table>
<p>In some cases partition specs are stored using only the field list instead of the object format that includes the spec ID, like the deprecated <code>partition-spec</code> field in table metadata. The object format should be used unless otherwise noted in this spec.</p>
<p>The <code>field-id</code> property was added for each partition field in v2. In v1, the reference implementation assigned field ids sequentially in each spec starting at 1,000. See Partition Evolution for more details.</p>
<h3 id="sort-orders">Sort Orders<a class="headerlink" href="#sort-orders" title="Permanent link">🔗</a></h3>
<p>Sort orders are serialized as a list of JSON object, each of which contains the following fields:</p>
<table>
<thead>
<tr>
<th>Field</th>
<th>JSON representation</th>
<th>Example</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong><code>order-id</code></strong></td>
<td><code>JSON int</code></td>
<td><code>1</code></td>
</tr>
<tr>
<td><strong><code>fields</code></strong></td>
<td><code>JSON list: [</code><br />&nbsp;&nbsp;<code>&lt;sort field JSON&gt;,</code><br />&nbsp;&nbsp;<code>...</code><br /><code>]</code></td>
<td><code>[ {</code><br />&nbsp;&nbsp;<code>"transform": "identity",</code><br />&nbsp;&nbsp;<code>"source-id": 2,</code><br />&nbsp;&nbsp;<code>"direction": "asc",</code><br />&nbsp;&nbsp;<code>"null-order": "nulls-first"</code><br />&nbsp;&nbsp;<code>}, {</code><br />&nbsp;&nbsp;<code>"transform": "bucket[4]",</code><br />&nbsp;&nbsp;<code>"source-id": 3,</code><br />&nbsp;&nbsp;<code>"direction": "desc",</code><br />&nbsp;&nbsp;<code>"null-order": "nulls-last"</code><br /><code>} ]</code></td>
</tr>
</tbody>
</table>
<p>Each sort field in the fields list is stored as an object with the following properties:</p>
<table>
<thead>
<tr>
<th>Field</th>
<th>JSON representation</th>
<th>Example</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong><code>Sort Field</code></strong></td>
<td><code>JSON object: {</code><br />&nbsp;&nbsp;<code>"transform": &lt;transform JSON&gt;,</code><br />&nbsp;&nbsp;<code>"source-id": &lt;source id int&gt;,</code><br />&nbsp;&nbsp;<code>"direction": &lt;direction string&gt;,</code><br />&nbsp;&nbsp;<code>"null-order": &lt;null-order string&gt;</code><br /><code>}</code></td>
<td><code>{</code><br />&nbsp;&nbsp;<code>"transform": "bucket[4]",</code><br />&nbsp;&nbsp;<code>"source-id": 3,</code><br />&nbsp;&nbsp;<code>"direction": "desc",</code><br />&nbsp;&nbsp;<code>"null-order": "nulls-last"</code><br /><code>}</code></td>
</tr>
</tbody>
</table>
<p>The following table describes the possible values for the some of the field within sort field: </p>
<table>
<thead>
<tr>
<th>Field</th>
<th>JSON representation</th>
<th>Possible values</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong><code>direction</code></strong></td>
<td><code>JSON string</code></td>
<td><code>"asc", "desc"</code></td>
</tr>
<tr>
<td><strong><code>null-order</code></strong></td>
<td><code>JSON string</code></td>
<td><code>"nulls-first", "nulls-last"</code></td>
</tr>
</tbody>
</table>
<h3 id="table-metadata-and-snapshots">Table Metadata and Snapshots<a class="headerlink" href="#table-metadata-and-snapshots" title="Permanent link">🔗</a></h3>
<p>Table metadata is serialized as a JSON object according to the following table. Snapshots are not serialized separately. Instead, they are stored in the table metadata JSON.</p>
<table>
<thead>
<tr>
<th>Metadata field</th>
<th>JSON representation</th>
<th>Example</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong><code>format-version</code></strong></td>
<td><code>JSON int</code></td>
<td><code>1</code></td>
</tr>
<tr>
<td><strong><code>table-uuid</code></strong></td>
<td><code>JSON string</code></td>
<td><code>"fb072c92-a02b-11e9-ae9c-1bb7bc9eca94"</code></td>
</tr>
<tr>
<td><strong><code>location</code></strong></td>
<td><code>JSON string</code></td>
<td><code>"s3://b/wh/data.db/table"</code></td>
</tr>
<tr>
<td><strong><code>last-updated-ms</code></strong></td>
<td><code>JSON long</code></td>
<td><code>1515100955770</code></td>
</tr>
<tr>
<td><strong><code>last-column-id</code></strong></td>
<td><code>JSON int</code></td>
<td><code>22</code></td>
</tr>
<tr>
<td><strong><code>schema</code></strong></td>
<td><code>JSON schema (object)</code></td>
<td><code>See above, read schemas instead</code></td>
</tr>
<tr>
<td><strong><code>schemas</code></strong></td>
<td><code>JSON schemas (list of objects)</code></td>
<td><code>See above</code></td>
</tr>
<tr>
<td><strong><code>current-schema-id</code></strong></td>
<td><code>JSON int</code></td>
<td><code>0</code></td>
</tr>
<tr>
<td><strong><code>partition-spec</code></strong></td>
<td><code>JSON partition fields (list)</code></td>
<td><code>See above, read partition-specs instead</code></td>
</tr>
<tr>
<td><strong><code>partition-specs</code></strong></td>
<td><code>JSON partition specs (list of objects)</code></td>
<td><code>See above</code></td>
</tr>
<tr>
<td><strong><code>default-spec-id</code></strong></td>
<td><code>JSON int</code></td>
<td><code>0</code></td>
</tr>
<tr>
<td><strong><code>last-partition-id</code></strong></td>
<td><code>JSON int</code></td>
<td><code>1000</code></td>
</tr>
<tr>
<td><strong><code>properties</code></strong></td>
<td><code>JSON object: {</code><br />&nbsp;&nbsp;<code>"&lt;key&gt;": "&lt;val&gt;",</code><br />&nbsp;&nbsp;<code>...</code><br /><code>}</code></td>
<td><code>{</code><br />&nbsp;&nbsp;<code>"write.format.default": "avro",</code><br />&nbsp;&nbsp;<code>"commit.retry.num-retries": "4"</code><br /><code>}</code></td>
</tr>
<tr>
<td><strong><code>current-snapshot-id</code></strong></td>
<td><code>JSON long</code></td>
<td><code>3051729675574597004</code></td>
</tr>
<tr>
<td><strong><code>snapshots</code></strong></td>
<td><code>JSON list of objects: [ {</code><br />&nbsp;&nbsp;<code>"snapshot-id": &lt;id&gt;,</code><br />&nbsp;&nbsp;<code>"timestamp-ms": &lt;timestamp-in-ms&gt;,</code><br />&nbsp;&nbsp;<code>"summary": {</code><br />&nbsp;&nbsp;&nbsp;&nbsp;<code>"operation": &lt;operation&gt;,</code><br />&nbsp;&nbsp;&nbsp;&nbsp;<code>... },</code><br />&nbsp;&nbsp;<code>"manifest-list": "&lt;location&gt;",</code><br />&nbsp;&nbsp;<code>"schema-id": "&lt;id&gt;"</code><br />&nbsp;&nbsp;<code>},</code><br />&nbsp;&nbsp;<code>...</code><br /><code>]</code></td>
<td><code>[ {</code><br />&nbsp;&nbsp;<code>"snapshot-id": 3051729675574597004,</code><br />&nbsp;&nbsp;<code>"timestamp-ms": 1515100955770,</code><br />&nbsp;&nbsp;<code>"summary": {</code><br />&nbsp;&nbsp;&nbsp;&nbsp;<code>"operation": "append"</code><br />&nbsp;&nbsp;<code>},</code><br />&nbsp;&nbsp;<code>"manifest-list": "s3://b/wh/.../s1.avro"</code><br />&nbsp;&nbsp;<code>"schema-id": 0</code><br /><code>} ]</code></td>
</tr>
<tr>
<td><strong><code>snapshot-log</code></strong></td>
<td><code>JSON list of objects: [</code><br />&nbsp;&nbsp;<code>{</code><br />&nbsp;&nbsp;<code>"snapshot-id": ,</code><br />&nbsp;&nbsp;<code>"timestamp-ms":</code><br />&nbsp;&nbsp;<code>},</code><br />&nbsp;&nbsp;<code>...</code><br /><code>]</code></td>
<td><code>[ {</code><br />&nbsp;&nbsp;<code>"snapshot-id": 30517296...,</code><br />&nbsp;&nbsp;<code>"timestamp-ms": 1515100...</code><br /><code>} ]</code></td>
</tr>
<tr>
<td><strong><code>metadata-log</code></strong></td>
<td><code>JSON list of objects: [</code><br />&nbsp;&nbsp;<code>{</code><br />&nbsp;&nbsp;<code>"metadata-file": ,</code><br />&nbsp;&nbsp;<code>"timestamp-ms":</code><br />&nbsp;&nbsp;<code>},</code><br />&nbsp;&nbsp;<code>...</code><br /><code>]</code></td>
<td><code>[ {</code><br />&nbsp;&nbsp;<code>"metadata-file": "s3://bucket/.../v1.json",</code><br />&nbsp;&nbsp;<code>"timestamp-ms": 1515100...</code><br /><code>} ]</code></td>
</tr>
<tr>
<td><strong><code>sort-orders</code></strong></td>
<td><code>JSON sort orders (list of sort field object)</code></td>
<td><code>See above</code></td>
</tr>
<tr>
<td><strong><code>default-sort-order-id</code></strong></td>
<td><code>JSON int</code></td>
<td><code>0</code></td>
</tr>
<tr>
<td><strong><code>refs</code></strong></td>
<td><code>JSON map with string key and object value:</code><br /><code>{</code><br />&nbsp;&nbsp;<code>"&lt;name&gt;": {</code><br />&nbsp;&nbsp;<code>"snapshot-id": &lt;id&gt;,</code><br />&nbsp;&nbsp;<code>"type": &lt;type&gt;,</code><br />&nbsp;&nbsp;<code>"max-ref-age-ms": &lt;long&gt;,</code><br />&nbsp;&nbsp;<code>...</code><br />&nbsp;&nbsp;<code>}</code><br />&nbsp;&nbsp;<code>...</code><br /><code>}</code></td>
<td><code>{</code><br />&nbsp;&nbsp;<code>"test": {</code><br />&nbsp;&nbsp;<code>"snapshot-id": 123456789000,</code><br />&nbsp;&nbsp;<code>"type": "tag",</code><br />&nbsp;&nbsp;<code>"max-ref-age-ms": 10000000</code><br />&nbsp;&nbsp;<code>}</code><br /><code>}</code></td>
</tr>
</tbody>
</table>
<h3 id="name-mapping-serialization">Name Mapping Serialization<a class="headerlink" href="#name-mapping-serialization" title="Permanent link">🔗</a></h3>
<p>Name mapping is serialized as a list of field mapping JSON Objects which are serialized as follows</p>
<table>
<thead>
<tr>
<th>Field mapping field</th>
<th>JSON representation</th>
<th>Example</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong><code>names</code></strong></td>
<td><code>JSON list of strings</code></td>
<td><code>["latitude", "lat"]</code></td>
</tr>
<tr>
<td><strong><code>field_id</code></strong></td>
<td><code>JSON int</code></td>
<td><code>1</code></td>
</tr>
<tr>
<td><strong><code>fields</code></strong></td>
<td><code>JSON field mappings (list of objects)</code></td>
<td><code>[{</code><br />&nbsp;&nbsp;<code>"field-id": 4,</code><br />&nbsp;&nbsp;<code>"names": ["latitude", "lat"]</code><br /><code>}, {</code><br />&nbsp;&nbsp;<code>"field-id": 5,</code><br />&nbsp;&nbsp;<code>"names": ["longitude", "long"]</code><br /><code>}]</code></td>
</tr>
</tbody>
</table>
<p>Example
<div class="highlight"><pre><span></span><code><a id="__codelineno-5-1" name="__codelineno-5-1" href="#__codelineno-5-1"></a><span class="p">[</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="nt">&quot;field-id&quot;</span><span class="p">:</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="nt">&quot;names&quot;</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="s2">&quot;id&quot;</span><span class="p">,</span><span class="w"> </span><span class="s2">&quot;record_id&quot;</span><span class="p">]</span><span class="w"> </span><span class="p">},</span>
<a id="__codelineno-5-2" name="__codelineno-5-2" href="#__codelineno-5-2"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="nt">&quot;field-id&quot;</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="nt">&quot;names&quot;</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="s2">&quot;data&quot;</span><span class="p">]</span><span class="w"> </span><span class="p">},</span>
<a id="__codelineno-5-3" name="__codelineno-5-3" href="#__codelineno-5-3"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="nt">&quot;field-id&quot;</span><span class="p">:</span><span class="w"> </span><span class="mi">3</span><span class="p">,</span><span class="w"> </span><span class="nt">&quot;names&quot;</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="s2">&quot;location&quot;</span><span class="p">],</span><span class="w"> </span><span class="nt">&quot;fields&quot;</span><span class="p">:</span><span class="w"> </span><span class="p">[</span>
<a id="__codelineno-5-4" name="__codelineno-5-4" href="#__codelineno-5-4"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="nt">&quot;field-id&quot;</span><span class="p">:</span><span class="w"> </span><span class="mi">4</span><span class="p">,</span><span class="w"> </span><span class="nt">&quot;names&quot;</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="s2">&quot;latitude&quot;</span><span class="p">,</span><span class="w"> </span><span class="s2">&quot;lat&quot;</span><span class="p">]</span><span class="w"> </span><span class="p">},</span>
<a id="__codelineno-5-5" name="__codelineno-5-5" href="#__codelineno-5-5"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="nt">&quot;field-id&quot;</span><span class="p">:</span><span class="w"> </span><span class="mi">5</span><span class="p">,</span><span class="w"> </span><span class="nt">&quot;names&quot;</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="s2">&quot;longitude&quot;</span><span class="p">,</span><span class="w"> </span><span class="s2">&quot;long&quot;</span><span class="p">]</span><span class="w"> </span><span class="p">}</span>
<a id="__codelineno-5-6" name="__codelineno-5-6" href="#__codelineno-5-6"></a><span class="w"> </span><span class="p">]</span><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="p">]</span>
</code></pre></div></p>
<h3 id="content-file-data-and-delete-serialization">Content File (Data and Delete) Serialization<a class="headerlink" href="#content-file-data-and-delete-serialization" title="Permanent link">🔗</a></h3>
<p>Content file (data or delete) is serialized as a JSON object according to the following table.</p>
<table>
<thead>
<tr>
<th>Metadata field</th>
<th>JSON representation</th>
<th>Example</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong><code>spec-id</code></strong></td>
<td><code>JSON int</code></td>
<td><code>1</code></td>
</tr>
<tr>
<td><strong><code>content</code></strong></td>
<td><code>JSON string</code></td>
<td><code>DATA</code>, <code>POSITION_DELETES</code>, <code>EQUALITY_DELETES</code></td>
</tr>
<tr>
<td><strong><code>file-path</code></strong></td>
<td><code>JSON string</code></td>
<td><code>"s3://b/wh/data.db/table"</code></td>
</tr>
<tr>
<td><strong><code>file-format</code></strong></td>
<td><code>JSON string</code></td>
<td><code>AVRO</code>, <code>ORC</code>, <code>PARQUET</code></td>
</tr>
<tr>
<td><strong><code>partition</code></strong></td>
<td><code>JSON object: Partition data tuple using partition field ids for the struct field ids</code></td>
<td><code>{"1000":1}</code></td>
</tr>
<tr>
<td><strong><code>record-count</code></strong></td>
<td><code>JSON long</code></td>
<td><code>1</code></td>
</tr>
<tr>
<td><strong><code>file-size-in-bytes</code></strong></td>
<td><code>JSON long</code></td>
<td><code>1024</code></td>
</tr>
<tr>
<td><strong><code>column-sizes</code></strong></td>
<td><code>JSON object: Map from column id to the total size on disk of all regions that store the column.</code></td>
<td><code>{"keys":[3,4],"values":[100,200]}</code></td>
</tr>
<tr>
<td><strong><code>value-counts</code></strong></td>
<td><code>JSON object: Map from column id to number of values in the column (including null and NaN values)</code></td>
<td><code>{"keys":[3,4],"values":[90,180]}</code></td>
</tr>
<tr>
<td><strong><code>null-value-counts</code></strong></td>
<td><code>JSON object: Map from column id to number of null values in the column</code></td>
<td><code>{"keys":[3,4],"values":[10,20]}</code></td>
</tr>
<tr>
<td><strong><code>nan-value-counts</code></strong></td>
<td><code>JSON object: Map from column id to number of NaN values in the column</code></td>
<td><code>{"keys":[3,4],"values":[0,0]}</code></td>
</tr>
<tr>
<td><strong><code>lower-bounds</code></strong></td>
<td><code>JSON object: Map from column id to lower bound binary in the column serialized as hexadecimal string</code></td>
<td><code>{"keys":[3,4],"values":["01000000","02000000"]}</code></td>
</tr>
<tr>
<td><strong><code>upper-bounds</code></strong></td>
<td><code>JSON object: Map from column id to upper bound binary in the column serialized as hexadecimal string</code></td>
<td><code>{"keys":[3,4],"values":["05000000","0A000000"]}</code></td>
</tr>
<tr>
<td><strong><code>key-metadata</code></strong></td>
<td><code>JSON string: Encryption key metadata binary serialized as hexadecimal string</code></td>
<td><code>00000000000000000000000000000000</code></td>
</tr>
<tr>
<td><strong><code>split-offsets</code></strong></td>
<td><code>JSON list of long: Split offsets for the data file</code></td>
<td><code>[128,256]</code></td>
</tr>
<tr>
<td><strong><code>equality-ids</code></strong></td>
<td><code>JSON list of int: Field ids used to determine row equality in equality delete files</code></td>
<td><code>[1]</code></td>
</tr>
<tr>
<td><strong><code>sort-order-id</code></strong></td>
<td><code>JSON int</code></td>
<td><code>1</code></td>
</tr>
</tbody>
</table>
<h3 id="file-scan-task-serialization">File Scan Task Serialization<a class="headerlink" href="#file-scan-task-serialization" title="Permanent link">🔗</a></h3>
<p>File scan task is serialized as a JSON object according to the following table.</p>
<table>
<thead>
<tr>
<th>Metadata field</th>
<th>JSON representation</th>
<th>Example</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong><code>schema</code></strong></td>
<td><code>JSON object</code></td>
<td><code>See above, read schemas instead</code></td>
</tr>
<tr>
<td><strong><code>spec</code></strong></td>
<td><code>JSON object</code></td>
<td><code>See above, read partition specs instead</code></td>
</tr>
<tr>
<td><strong><code>data-file</code></strong></td>
<td><code>JSON object</code></td>
<td><code>See above, read content file instead</code></td>
</tr>
<tr>
<td><strong><code>delete-files</code></strong></td>
<td><code>JSON list of objects</code></td>
<td><code>See above, read content file instead</code></td>
</tr>
<tr>
<td><strong><code>residual-filter</code></strong></td>
<td><code>JSON object: residual filter expression</code></td>
<td><code>{"type":"eq","term":"id","value":1}</code></td>
</tr>
</tbody>
</table>
<h2 id="appendix-d-single-value-serialization">Appendix D: Single-value serialization<a class="headerlink" href="#appendix-d-single-value-serialization" title="Permanent link">🔗</a></h2>
<h3 id="binary-single-value-serialization">Binary single-value serialization<a class="headerlink" href="#binary-single-value-serialization" title="Permanent link">🔗</a></h3>
<p>This serialization scheme is for storing single values as individual binary values in the lower and upper bounds maps of manifest files.</p>
<table>
<thead>
<tr>
<th>Type</th>
<th>Binary serialization</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong><code>boolean</code></strong></td>
<td><code>0x00</code> for false, non-zero byte for true</td>
</tr>
<tr>
<td><strong><code>int</code></strong></td>
<td>Stored as 4-byte little-endian</td>
</tr>
<tr>
<td><strong><code>long</code></strong></td>
<td>Stored as 8-byte little-endian</td>
</tr>
<tr>
<td><strong><code>float</code></strong></td>
<td>Stored as 4-byte little-endian</td>
</tr>
<tr>
<td><strong><code>double</code></strong></td>
<td>Stored as 8-byte little-endian</td>
</tr>
<tr>
<td><strong><code>date</code></strong></td>
<td>Stores days from the 1970-01-01 in an 4-byte little-endian int</td>
</tr>
<tr>
<td><strong><code>time</code></strong></td>
<td>Stores microseconds from midnight in an 8-byte little-endian long</td>
</tr>
<tr>
<td><strong><code>timestamp without zone</code></strong></td>
<td>Stores microseconds from 1970-01-01 00:00:00.000000 in an 8-byte little-endian long</td>
</tr>
<tr>
<td><strong><code>timestamp with zone</code></strong></td>
<td>Stores microseconds from 1970-01-01 00:00:00.000000 UTC in an 8-byte little-endian long</td>
</tr>
<tr>
<td><strong><code>string</code></strong></td>
<td>UTF-8 bytes (without length)</td>
</tr>
<tr>
<td><strong><code>uuid</code></strong></td>
<td>16-byte big-endian value, see example in Appendix B</td>
</tr>
<tr>
<td><strong><code>fixed(L)</code></strong></td>
<td>Binary value</td>
</tr>
<tr>
<td><strong><code>binary</code></strong></td>
<td>Binary value (without length)</td>
</tr>
<tr>
<td><strong><code>decimal(P, S)</code></strong></td>
<td>Stores unscaled value as two’s-complement big-endian binary, using the minimum number of bytes for the value</td>
</tr>
<tr>
<td><strong><code>struct</code></strong></td>
<td>Not supported</td>
</tr>
<tr>
<td><strong><code>list</code></strong></td>
<td>Not supported</td>
</tr>
<tr>
<td><strong><code>map</code></strong></td>
<td>Not supported</td>
</tr>
</tbody>
</table>
<h3 id="json-single-value-serialization">JSON single-value serialization<a class="headerlink" href="#json-single-value-serialization" title="Permanent link">🔗</a></h3>
<p>Single values are serialized as JSON by type according to the following table:</p>
<table>
<thead>
<tr>
<th>Type</th>
<th>JSON representation</th>
<th>Example</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong><code>boolean</code></strong></td>
<td><strong><code>JSON boolean</code></strong></td>
<td><code>true</code></td>
<td></td>
</tr>
<tr>
<td><strong><code>int</code></strong></td>
<td><strong><code>JSON int</code></strong></td>
<td><code>34</code></td>
<td></td>
</tr>
<tr>
<td><strong><code>long</code></strong></td>
<td><strong><code>JSON long</code></strong></td>
<td><code>34</code></td>
<td></td>
</tr>
<tr>
<td><strong><code>float</code></strong></td>
<td><strong><code>JSON number</code></strong></td>
<td><code>1.0</code></td>
<td></td>
</tr>
<tr>
<td><strong><code>double</code></strong></td>
<td><strong><code>JSON number</code></strong></td>
<td><code>1.0</code></td>
<td></td>
</tr>
<tr>
<td><strong><code>decimal(P,S)</code></strong></td>
<td><strong><code>JSON string</code></strong></td>
<td><code>"14.20"</code>, <code>"2E+20"</code></td>
<td>Stores the string representation of the decimal value, specifically, for values with a positive scale, the number of digits to the right of the decimal point is used to indicate scale, for values with a negative scale, the scientific notation is used and the exponent must equal the negated scale</td>
</tr>
<tr>
<td><strong><code>date</code></strong></td>
<td><strong><code>JSON string</code></strong></td>
<td><code>"2017-11-16"</code></td>
<td>Stores ISO-8601 standard date</td>
</tr>
<tr>
<td><strong><code>time</code></strong></td>
<td><strong><code>JSON string</code></strong></td>
<td><code>"22:31:08.123456"</code></td>
<td>Stores ISO-8601 standard time with microsecond precision</td>
</tr>
<tr>
<td><strong><code>timestamp</code></strong></td>
<td><strong><code>JSON string</code></strong></td>
<td><code>"2017-11-16T22:31:08.123456"</code></td>
<td>Stores ISO-8601 standard timestamp with microsecond precision; must not include a zone offset</td>
</tr>
<tr>
<td><strong><code>timestamptz</code></strong></td>
<td><strong><code>JSON string</code></strong></td>
<td><code>"2017-11-16T22:31:08.123456+00:00"</code></td>
<td>Stores ISO-8601 standard timestamp with microsecond precision; must include a zone offset and it must be '+00:00'</td>
</tr>
<tr>
<td><strong><code>string</code></strong></td>
<td><strong><code>JSON string</code></strong></td>
<td><code>"iceberg"</code></td>
<td></td>
</tr>
<tr>
<td><strong><code>uuid</code></strong></td>
<td><strong><code>JSON string</code></strong></td>
<td><code>"f79c3e09-677c-4bbd-a479-3f349cb785e7"</code></td>
<td>Stores the lowercase uuid string</td>
</tr>
<tr>
<td><strong><code>fixed(L)</code></strong></td>
<td><strong><code>JSON string</code></strong></td>
<td><code>"000102ff"</code></td>
<td>Stored as a hexadecimal string</td>
</tr>
<tr>
<td><strong><code>binary</code></strong></td>
<td><strong><code>JSON string</code></strong></td>
<td><code>"000102ff"</code></td>
<td>Stored as a hexadecimal string</td>
</tr>
<tr>
<td><strong><code>struct</code></strong></td>
<td><strong><code>JSON object by field ID</code></strong></td>
<td><code>{"1": 1, "2": "bar"}</code></td>
<td>Stores struct fields using the field ID as the JSON field name; field values are stored using this JSON single-value format</td>
</tr>
<tr>
<td><strong><code>list</code></strong></td>
<td><strong><code>JSON array of values</code></strong></td>
<td><code>[1, 2, 3]</code></td>
<td>Stores a JSON array of values that are serialized using this JSON single-value format</td>
</tr>
<tr>
<td><strong><code>map</code></strong></td>
<td><strong><code>JSON object of key and value arrays</code></strong></td>
<td><code>{ "keys": ["a", "b"], "values": [1, 2] }</code></td>
<td>Stores arrays of keys and values; individual keys and values are serialized using this JSON single-value format</td>
</tr>
</tbody>
</table>
<h2 id="appendix-e-format-version-changes">Appendix E: Format version changes<a class="headerlink" href="#appendix-e-format-version-changes" title="Permanent link">🔗</a></h2>
<h3 id="version-3">Version 3<a class="headerlink" href="#version-3" title="Permanent link">🔗</a></h3>
<p>Default values are added to struct fields in v3.
* The <code>write-default</code> is a forward-compatible change because it is only used at write time. Old writers will fail because the field is missing.
* Tables with <code>initial-default</code> will be read correctly by older readers if <code>initial-default</code> is always null for optional fields. Otherwise, old readers will default optional columns with null. Old readers will fail to read required fields which are populated by <code>initial-default</code> because that default is not supported.</p>
<h3 id="version-2">Version 2<a class="headerlink" href="#version-2" title="Permanent link">🔗</a></h3>
<p>Writing v1 metadata:</p>
<ul>
<li>Table metadata field <code>last-sequence-number</code> should not be written</li>
<li>Snapshot field <code>sequence-number</code> should not be written</li>
<li>Manifest list field <code>sequence-number</code> should not be written</li>
<li>Manifest list field <code>min-sequence-number</code> should not be written</li>
<li>Manifest list field <code>content</code> must be 0 (data) or omitted</li>
<li>Manifest entry field <code>sequence_number</code> should not be written</li>
<li>Manifest entry field <code>file_sequence_number</code> should not be written</li>
<li>Data file field <code>content</code> must be 0 (data) or omitted</li>
</ul>
<p>Reading v1 metadata for v2:</p>
<ul>
<li>Table metadata field <code>last-sequence-number</code> must default to 0</li>
<li>Snapshot field <code>sequence-number</code> must default to 0</li>
<li>Manifest list field <code>sequence-number</code> must default to 0</li>
<li>Manifest list field <code>min-sequence-number</code> must default to 0</li>
<li>Manifest list field <code>content</code> must default to 0 (data)</li>
<li>Manifest entry field <code>sequence_number</code> must default to 0</li>
<li>Manifest entry field <code>file_sequence_number</code> must default to 0</li>
<li>Data file field <code>content</code> must default to 0 (data)</li>
</ul>
<p>Writing v2 metadata:</p>
<ul>
<li>Table metadata JSON:<ul>
<li><code>last-sequence-number</code> was added and is required; default to 0 when reading v1 metadata</li>
<li><code>table-uuid</code> is now required</li>
<li><code>current-schema-id</code> is now required</li>
<li><code>schemas</code> is now required</li>
<li><code>partition-specs</code> is now required</li>
<li><code>default-spec-id</code> is now required</li>
<li><code>last-partition-id</code> is now required</li>
<li><code>sort-orders</code> is now required</li>
<li><code>default-sort-order-id</code> is now required</li>
<li><code>schema</code> is no longer required and should be omitted; use <code>schemas</code> and <code>current-schema-id</code> instead</li>
<li><code>partition-spec</code> is no longer required and should be omitted; use <code>partition-specs</code> and <code>default-spec-id</code> instead</li>
</ul>
</li>
<li>Snapshot JSON:<ul>
<li><code>sequence-number</code> was added and is required; default to 0 when reading v1 metadata</li>
<li><code>manifest-list</code> is now required</li>
<li><code>manifests</code> is no longer required and should be omitted; always use <code>manifest-list</code> instead</li>
</ul>
</li>
<li>Manifest list <code>manifest_file</code>:<ul>
<li><code>content</code> was added and is required; 0=data, 1=deletes; default to 0 when reading v1 manifest lists</li>
<li><code>sequence_number</code> was added and is required</li>
<li><code>min_sequence_number</code> was added and is required</li>
<li><code>added_files_count</code> is now required</li>
<li><code>existing_files_count</code> is now required</li>
<li><code>deleted_files_count</code> is now required</li>
<li><code>added_rows_count</code> is now required</li>
<li><code>existing_rows_count</code> is now required</li>
<li><code>deleted_rows_count</code> is now required</li>
</ul>
</li>
<li>Manifest key-value metadata:<ul>
<li><code>schema-id</code> is now required</li>
<li><code>partition-spec-id</code> is now required</li>
<li><code>format-version</code> is now required</li>
<li><code>content</code> was added and is required (must be "data" or "deletes")</li>
</ul>
</li>
<li>Manifest <code>manifest_entry</code>:<ul>
<li><code>snapshot_id</code> is now optional to support inheritance</li>
<li><code>sequence_number</code> was added and is optional, to support inheritance</li>
<li><code>file_sequence_number</code> was added and is optional, to support inheritance</li>
</ul>
</li>
<li>Manifest <code>data_file</code>:<ul>
<li><code>content</code> was added and is required; 0=data, 1=position deletes, 2=equality deletes; default to 0 when reading v1 manifests</li>
<li><code>equality_ids</code> was added, to be used for equality deletes only</li>
<li><code>block_size_in_bytes</code> was removed (breaks v1 reader compatibility)</li>
<li><code>file_ordinal</code> was removed</li>
<li><code>sort_columns</code> was removed</li>
</ul>
</li>
</ul>
<p>Note that these requirements apply when writing data to a v2 table. Tables that are upgraded from v1 may contain metadata that does not follow these requirements. Implementations should remain backward-compatible with v1 metadata requirements.</p>
</article>
</div>
<script>var tabs=__md_get("__tabs");if(Array.isArray(tabs))e:for(var set of document.querySelectorAll(".tabbed-set")){var tab,labels=set.querySelector(".tabbed-labels");for(tab of tabs)for(var label of labels.getElementsByTagName("label"))if(label.innerText.trim()===tab){var input=document.getElementById(label.htmlFor);input.checked=!0;continue e}}</script>
<script>var target=document.getElementById(location.hash.slice(1));target&&target.name&&(target.checked=target.name.startsWith("__tabbed_"))</script>
</div>
<button type="button" class="md-top md-icon" data-md-component="top" hidden>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13 20h-2V8l-5.5 5.5-1.42-1.42L12 4.16l7.92 7.92-1.42 1.42L13 8v12Z"/></svg>
Back to top
</button>
</main>
<footer class="md-footer">
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-copyright">
<div class="md-copyright__highlight">
Apache Iceberg, Iceberg, Apache, the Apache feather logo, and the Apache Iceberg project logo are<br>either registered trademarks or trademarks of The Apache Software Foundation. Copyright © 2023<br>The Apache Software Foundation, Licensed under the <a href="https://www.apache.org/licenses/">Apache License, Version 2.0</a>.<br><br>
</div>
Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
Material for MkDocs
</a>
</div>
</div>
</div>
</footer>
</div>
<div class="md-dialog" data-md-component="dialog">
<div class="md-dialog__inner md-typeset"></div>
</div>
<script id="__config" type="application/json">{"base": "..", "features": ["navigation.tabs", "navigation.tabs.sticky", "navigation.path", "navigation.top", "navigation.tracking", "toc.follow", "offline", "search.suggest", "search.highlight", "content.tabs.link", "content.code.copy", "content.code.annotate"], "search": "../assets/javascripts/workers/search.f886a092.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
<script src="../assets/javascripts/bundle.d7c377c4.min.js"></script>
<script src="../assets/javascript/extra.js"></script>
</body>
</html>