"A big headache with data lakes prior to Apache Iceberg was dealing with the need to change the table’s physical optimization. Too often, when your partitioning needs to change, the only choice you have is to rewrite the entire table, and at scale this can get very expensive. The alternative is to just live with the existing partitioning scheme and sacrifice the performance improvements a better partitioning scheme can provide. With Apache Iceberg you can update how the table is partitioned at any time without the need to rewrite the table and all its data. Since partitioning has everything to do with the metadata, the operations needed to make this change to your table’s structure are quick and cheap." (Tomer Shiranet al, "Apache Iceberg: The Definitive Guide Data Lakehouse Functionality, Performance, and Scalability on the Data Lake", 2024)
"A data warehouse or OLAP database is a centralized repository that supports storing large volumes of data ingested from various sources such as operational systems, application databases, and logs. [...] A data warehouse owns all the technical components in a single system. In other words, all the data is stored in its proprietary file and table formats on its proprietary storage system. This data is then managed exclusively by the data warehouse’s storage engine, is registered in its catalog, and can be accessed only by the user or analytical engines through its compute engine." (Tomer Shiranet al, "Apache Iceberg: The Definitive Guide Data Lakehouse Functionality, Performance, and Scalability on the Data Lake", 2024)
"A semantic layer is a virtual abstraction atop your data lakehouse, providing a structured and business-friendly view of the underlying data. It acts as a translation layer, allowing users and applications to interact with data in a way that’s intuitive and meaningful to them without needing to understand the complexities of the data’s storage or schema. This layer enables governance and security by centralizing control over data access, defining fine-grained permissions, and applying data masking and transformation rules. It simplifies data management, ensuring data consistency, quality, and compliance with organizational policies, all while shielding users from the underlying data intricacies. A semantic layer empowers organizations to manage and secure their data lakehouse efficiently." (Tomer Shiranet al, "Apache Iceberg: The Definitive Guide Data Lakehouse Functionality, Performance, and Scalability on the Data Lake", 2024)
"An important capability in the world of databases and data warehouses is the ability to go back in time to a particular state of the table to query historical data (i.e., data that has been changed or deleted). Apache Iceberg brings a similar time-travel capability to a data lakehouse architecture. This can be particularly useful for scenarios such as analyzing your organization’s data from previous quarters, restoring accidentally deleted rows, or reproducing analysis results." (Tomer Shiranet al, "Apache Iceberg: The Definitive Guide Data Lakehouse Functionality, Performance, and Scalability on the Data Lake", 2024)
"Another challenge with traditional partitioning is that since it relied on the physical structure of the files being laid out into subdirectories, changing how the table was partitioned required you to rewrite the entire table. This becomes an inevitable problem as data and query patterns evolve, necessitating that we rethink how we partition and sort the data. Apache Iceberg solves this problem with its metadata-tracked partitioning as well, because the metadata tracks not only partition values but also historical partition schemes, allowing the partition schemes to evolve. So, if the data in two different files were written based on two different partition schemes, the Iceberg metadata would make the engine aware so that it could create a plan with partition scheme A separately from partition scheme B, creating an overall scan plan at the end." (Tomer Shiranet al, "Apache Iceberg: The Definitive Guide Data Lakehouse Functionality, Performance, and Scalability on the Data Lake", 2024)
"Apache Iceberg aims for existing tools to embrace the standard and is designed to take advantage of existing, popular storage solutions and compute engines in the hope that existing options will support working with the standard. The purpose of this approach is to let the ecosystem of existing data tools build out support for Apache Iceberg tables and let Iceberg become the standard for how engines can recognize and work with tables on the data lake. The goal is for Apache Iceberg to become so ubiquitous in the ecosystem that it becomes another implementation detail that many users don’t have to think about." (Tomer Shiranet al, "Apache Iceberg: The Definitive Guide Data Lakehouse Functionality, Performance, and Scalability on the Data Lake", 2024)
"Apache Iceberg handles partitioning quite differently, addressing many [...] pain points when optimizing your tables with partitioning. One resulting feature of this approach is called hidden partitioning. It starts with how Apache Iceberg tracks partitioning. Instead of tracking it by relying on how files are physically laid out, Iceberg tracks the range of partition values at the snapshot and manifest levels, allowing for many levels of new flexibility: Instead of having to generate additional columns to partition based on transform values, you can use built-in transforms that engines and tools can apply when planning queries from the metadata. Since you don’t need an additional column when using these transforms, you store less in your datafiles. Since the metadata allows the engine to be aware of the transform on the original column, you can filter solely on the original column and get the benefit of partitioning." (Tomer Shiranet al, "Apache Iceberg: The Definitive Guide Data Lakehouse Functionality, Performance, and Scalability on the Data Lake", 2024)
"By breaking data into microbatches, Apache Spark gains several advantages. First, it enhances fault tolerance, as any failures can be more easily managed within each batch. Second, it seamlessly integrates with other Spark components, allowing for a unified ecosystem for both batch and real-time processing. Additionally, this approach enables real-time processing capabilities, as the microbatches are processed continuously at a rapid pace. Lastly, it achieves high throughput, efficiently handling large volumes of data. Overall, Apache Spark’s microbatching approach strikes a balance between responsiveness, data volume handling, and resource efficiency, making it a favored choice in the realm of big data and streaming applications." (Tomer Shiranet al, "Apache Iceberg: The Definitive Guide Data Lakehouse Functionality, Performance, and Scalability on the Data Lake", 2024)
"In Iceberg, partitioning occurs in two parts: the column, which physical partitioning should be based on; and an optional transform to that value including functions such as bucket, truncate, year, month, day, and hour. The ability to apply a transform eliminates the need to create new columns just for partitioning. This results in more intuitive queries benefiting from partitioning as consumers will not need to add extra filter predicates to their queries on additional partitioning columns." (Tomer Shiranet al, "Apache Iceberg: The Definitive Guide Data Lakehouse Functionality, Performance, and Scalability on the Data Lake", 2024)
"Maintaining the highest level of data quality is crucial for deriving meaningful insights. If data quality is compromised at any point in a data engineering workflow, it can adversely affect subsequent analyses such as BI and predictive analytics. For example, consider an extract, transform, and load (ETL) process: it takes data from an operational system and transfers it to an analytical system for use in BI reports or ad hoc analyses. If the original data has duplicates or inconsistencies or if such issues are introduced during the ETL process and are not addressed before reaching the production analytics environment, the result can be flawed insights that can lead to incorrect decisions. This highlights the critical importance of data quality in data engineering workflows. It’s essential, not just in theory but as a practical necessity, to ensure that data is accurate, consistent, and reliable." (Tomer Shiranet al, "Apache Iceberg: The Definitive Guide Data Lakehouse Functionality, Performance, and Scalability on the Data Lake", 2024)
"While migrating to Apache Iceberg promises a more streamlined data architecture, the process itself, as with any migration, can be intricate and demanding. The transition involves adapting existing data structures, modifying data ingestion pipelines, and updating data processing workflows. Moreover, organizations may need to refactor existing data models and restructure data storage in Iceberg-compatible formats. Migrating also requires addressing backward-compatibility concerns and ensuring that existing data seamlessly integrates with the new architecture." (Tomer Shiranet al, "Apache Iceberg: The Definitive Guide Data Lakehouse Functionality, Performance, and Scalability on the Data Lake", 2024)
"Multitable transactions are a fundamental concept in databases that support consistency and atomicity of operations spanning multiple tables. In a multitable transaction, multiple operations, possibly involving different tables, are treated as a single atomic unit of work. This means that either all operations in the transaction succeed, or if any operation fails, all the changes made within that transaction are rolled back, thereby leaving the database in a consistent state. The importance of multitable transactions primarily lies in their ability to maintain data consistency, which is a crucial aspect of database management systems." (Tomer Shiranet al, "Apache Iceberg: The Definitive Guide Data Lakehouse Functionality, Performance, and Scalability on the Data Lake", 2024)
"Reading data from Apache Iceberg tables follows a well-defined sequence of actions, seamlessly allowing queries to be transformed into actionable insights. When a read query is initiated, it is sent to the query engine first. The engine leverages the catalog to retrieve the latest metadata file location, which contains critical information about the table’s schema and other metadata files, such as the manifest list that ultimately leads to the actual datafiles. Statistical information about columns is used in this process to limit the number of files being read, which helps improve query performance." (Tomer Shiranet al, "Apache Iceberg: The Definitive Guide Data Lakehouse Functionality, Performance, and Scalability on the Data Lake", 2024)
"Streaming data refers to the continuous generation and processing of data, often coming from various sources. These sources can include logfiles, sensor data, social media feeds, and financial transactions, among others. The data is sent in small sizes (or packets) to allow real-time insights and reactions. The nature of streaming data is that it is in constant motion and does not have a finite beginning or end." (Tomer Shiranet al, "Apache Iceberg: The Definitive Guide Data Lakehouse Functionality, Performance, and Scalability on the Data Lake", 2024)
"Table branching in Apache Iceberg allows you to create independent lineages of snapshots, each with its own lifecycle. A branch is essentially a named reference pointing to a divergent chain of snapshots. Each branch points to the head of the branch, which is the most recent snapshot in the branch’s snapshot history. Each branch also has settings for maximum snapshot age and minimum number of snapshots that should exist in the branch." (Tomer Shiranet al, "Apache Iceberg: The Definitive Guide Data Lakehouse Functionality, Performance, and Scalability on the Data Lake", 2024)
"Tabular is a cloud-native headless warehouse (a layer for storage management decoupled from any particular query engine or compute) and automation platform offering a unified solution for managing analytic data with Apache Iceberg tables. It is a centralized hub for Apache Iceberg data storage and cataloging, focusing on versatility and efficiency. Tabular features an access control framework designed to govern and secure access to platform resources. [...] Tabular adopts an RBAC model, where access privileges are assigned to roles, and roles are subsequently assigned to individuals or other roles." (Tomer Shiranet al, "Apache Iceberg: The Definitive Guide Data Lakehouse Functionality, Performance, and Scalability on the Data Lake", 2024)
"The Apache Iceberg table format provides high-performance queries during reads and writes, allowing you to run online analytical processing (OLAP) workloads directly on the data lake. What facilitates this performance is the way the various components of the Iceberg table format are designed. It is therefore critical to understand the structure of these components so that query engines can effectively use them for faster query planning and execution." (Tomer Shiranet al, "Apache Iceberg: The Definitive Guide Data Lakehouse Functionality, Performance, and Scalability on the Data Lake", 2024)
"The data lakehouse architecture decouples the storage and compute from data lakes and brings in mechanisms that allow for more data warehouse– like functionality (ACID transactions, better performance, consistency, etc.). Enabling this functionality are data lake table formats that eliminate all the previous issues with the Hive table format. You store the data in the same places you would store it with a data lake, you use the query engines you would use with a data lake, and your data is stored in the same formats it would be stored in on a data lake. What truly transforms your world from 'read-only' data to a 'center of my data world' data lakehouse is the table format providing a metadata/abstraction layer between the engine and storage for them to interact more intelligently." (Tomer Shiranet al, "Apache Iceberg: The Definitive Guide Data Lakehouse Functionality, Performance, and Scalability on the Data Lake", 2024)
"The metadata layer in Apache Iceberg consists of three components: metadata files, manifest lists, and manifest files. Each time a query engine writes something to an Iceberg table, a new metadata file is created atomically and is defined as the latest version of the metadata file. This ensures that a linear history of the table commits, and it helps during scenarios such as concurrent writes (i.e., multiple engines writing data simultaneously). Also, during read operations, engines will always see the latest version of the table. Query engines interact with the manifest lists to get information about partition specifications that help them skip the nonrequired manifest files for faster performance. Finally, information from the manifest files, such as upper and lower bounds for a specific column, null value counts, and partition-specific data, is used by the engine for file pruning." (Tomer Shiranet al, "Apache Iceberg: The Definitive Guide Data Lakehouse Functionality, Performance, and Scalability on the Data Lake", 2024)
"The metadata layer is an integral part of an Iceberg table’s architecture and contains all the metadata files for an Iceberg table. It’s a tree structure that tracks the datafiles and metadata about them as well as the operations that resulted in their creation. This tree structure is made up of three file types, all of which are colocated with the datafiles: manifest files, manifest lists, and metadata files. The metadata layer is essential for efficiently managing large datasets and enabling core features such as time travel and schema evolution." (Tomer Shiranet al, "Apache Iceberg: The Definitive Guide Data Lakehouse Functionality, Performance, and Scalability on the Data Lake", 2024)
"The practice of isolating changes to your data in a Git-like branch can be significantly valuable in modern data workflows, which is why more practitioners should begin adopting it. This approach allows for the separation of different lines of work, enabling developers to make changes independently without interfering with other developers’ work or destabilizing the main codebase. It’s akin to having multiple parallel universes, where changes in one universe do not affect the others. You can experiment, make mistakes, and learn without the fear of impacting the broader system." (Tomer Shiranet al, "Apache Iceberg: The Definitive Guide Data Lakehouse Functionality, Performance, and Scalability on the Data Lake", 2024)
"The write process in Apache Iceberg involves a series of steps that enable query engines to efficiently insert and update data. When a write query is initiated, it is sent to the engine for parsing. The catalog is then consulted to ensure consistency and integrity in the data and to write the data as per the defined partition strategies. The datafiles and metadata files are then written based on the query. Finally, the catalog file is updated to reflect the latest metadata, enabling subsequent read operations to access the most up-to-date version of the data." (Tomer Shiranet al, "Apache Iceberg: The Definitive Guide Data Lakehouse Functionality, Performance, and Scalability on the Data Lake", 2024)
"While Apache Iceberg is file format agnostic, in the real world the file format most commonly used is Apache Parquet. Parquet is most common because its columnar structure provides large performance gains for OLAP workloads over row-based file formats, and it has become the de facto standard in the industry, meaning basically every engine and tool supports Parquet. Its columnar structure lays the foundation for performance features such as the ability for a single file to be split multiple ways for increased parallelism, statistics for each of these split points, and increased compression, which provides lower storage volume and higher read throughput." (Tomer Shiranet al, "Apache Iceberg: The Definitive Guide Data Lakehouse Functionality, Performance, and Scalability on the Data Lake", 2024)
"While data warehouses provided a mechanism for running analytics on structured data, they still had several issues: (i) A data warehouse could only store structured data. (ii) Storage in a data warehouse is generally more expensive than on-prem Hadoop clusters or cloud object storage. (iii) Storage and compute in traditional on-prem data warehouses are often commingled and therefore cannot be scaled separately. More storage costs came with more compute costs whether you needed the compute power or not. Addressing these issues required an alternative storage solution that was cheaper and could store all your data without the need to conform to a fixed schema. This alternative solution was the data lake." (Tomer Shiranet al, "Apache Iceberg: The Definitive Guide Data Lakehouse Functionality, Performance, and Scalability on the Data Lake", 2024)
"When it comes to securing your Apache Iceberg tables at the catalog level, several advantages and disadvantages come into play. On the positive side, catalogs offer centralized metadata management, enabling the enforcement of consistent governance policies and metadata-driven security measures. They also support fine-grained access control at this level, granting comprehensive authority over who can access and manipulate tables and databases. Furthermore, catalogs abstract the underlying file structure, simplifying data access for both users and tools. However, there are drawbacks, including the dependency on the catalog for metadata and access control, which means that any catalog issues can impact data access. Additionally, managing intricate access control policies at the catalog level can be challenging depending on the chosen solution. As the catalog grows, handling permissions and metadata can become more intricate, affecting scalability." (Tomer Shiranet al, "Apache Iceberg: The Definitive Guide Data Lakehouse Functionality, Performance, and Scalability on the Data Lake", 2024)
"When securing your Apache Iceberg tables at the semantic layer level, there are advantages and disadvantages to consider. On the positive side, this layer offers unified access to data, serving as a consistent entry point for queries and enabling standardized data governance and security policies. It also provides data abstraction, simplifying the data view for end users and tools, thus facilitating easier querying and analysis. However, there are drawbacks, including the risk of a single point of failure when relying solely on the semantic layer, potentially impacting query availability." (Tomer Shiranet al, "Apache Iceberg: The Definitive Guide Data Lakehouse Functionality, Performance, and Scalability on the Data Lake", 2024)
"You can optimize the table’s row-level update patterns to take one of two forms: copy-on-write (COW) or merge-on-read (MOR). When using COW, for a change of any row in a given datafile, the entire file is rewritten (with the row-level change made in the new file) even if a single record in it is updated. When using MOR, for any row-level updates, only a new file that contains the changes to the affected row that is reconciled on reads is written. This gives flexibility to speed up heavy update and delete workloads." (Tomer Shiranet al, "Apache Iceberg: The Definitive Guide Data Lakehouse Functionality, Performance, and Scalability on the Data Lake", 2024)