01 December 2015

🪙Business Intelligence: Partitioning (Just the Quotes)

"One of the limitations of data management solutions today is how we have attempted to manage its unwieldy complexity, how we have decomposed an ever-growing monolithic data platform and team to smaller partitions. We have chosen the path of least resistance, a technical partitioning." (Zhamak Dehghani, "Data Mesh: Delivering Data-Driven Value at Scale", 2021)

"When changing clustered columns, liquid clustering does not require the entire table to be rewritten. This clustering evolution is due to the dynamic data layout feature of liquid clustering and offers a significant advantage over partition features mentioned earlier in the chapter. Traditional partitioning is a fixed data layout and does not support changing how a table is partitioned without having to rewrite the entire table. This clustering evolution can be essential as query patterns for a table can often change over time, and this allows you to dynamically adapt to new query patterns without any significant overhead or challenges." (Bennie Haelen & Dan Davis, "Delta Lake: Up and Running - Modern Data Lakehouse Architectures with Delta Lake", 2023)

"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)

"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 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)

"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)

"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)

"Partitioning can significantly enhance the performance of large Delta tables by facilitating efficient data retrieval. However, it’s important to note that for small to medium-sized tables, the benefits of partition may be negligible or outweighed by drawbacks. One significant drawback is the potential emergence of what is known as the 'small files problem'. This problem arises when data partitioning results in the creation of numerous small files, each containing a relatively small amount of data. While partitioning aims to improve query performance by reducing the amount of data scanned, the presence of many small files can prevent file compaction and efficiency in data skipping. In general, partitioning should be selectively applied based on the size and nature of the data." (Derar Alhussein, "Databricks Certified Data Engineer Associate Study Guide", 2025)

"Iceberg stands out for its metadata design and query planning. Its snapshot-based architecture supports time travel, so you can query a table as it existed at a specific time. This lets you audit changes, debug data problems, or roll back to earlier versions without maintaining separate copies. Iceberg also offers a more flexible approach to partitioning, which is handy as data-sets grow and change. Traditional table formats use static partition schemes that are hard to adjust once data is written. Iceberg supports partition evolution, so you can update your partition strategy over time without rewriting existing data. It also supports hidden partitioning, where you define partition logic with transforms instead of exposed partition columns. This means you don’t have to add and maintain fields like day or month in your queries, but the engine can still prune data efficiently during query planning." (Alex Merced, "Architecting an Apache Iceberg Lakehouse A scalable, open source data platform", 2026)

"Modern data warehouses employ several techniques to deliver performance at scale. Columnar storage organizes data by column rather than row, dramatically improving efficiency for queries that analyze specific attributes across many records. Massively parallel processing (MPP) distributes queries across many computers, enabling analysis of enormous datasets. Intelligent partitioning and indexing strategies optimize data access based on common query patterns." (Michael J Peña, "Azure Data Fundamentals: A Guide to DP-900 Certification and Beyond", 2026)

No comments:

Related Posts Plugin for WordPress, Blogger...

About Me

My photo
Koeln, NRW, Germany
IT Professional with more than 25 years experience in IT in the area of full life-cycle of Web/Desktop/Database Applications Development, Software Engineering, Consultancy, Data Management, Data Quality, Data Migrations, Reporting, ERP implementations & support, Team/Project/IT Management, etc.