<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Moshe Derri on Medium]]></title>
        <description><![CDATA[Stories by Moshe Derri on Medium]]></description>
        <link>https://medium.com/@moshederri?source=rss-9b12a3bc6a07------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*jXIgiTNH_eMPGNKaVyuUrw.jpeg</url>
            <title>Stories by Moshe Derri on Medium</title>
            <link>https://medium.com/@moshederri?source=rss-9b12a3bc6a07------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 07:47:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@moshederri/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Replacements for Parquet? Anyone?]]></title>
            <link>https://medium.com/@moshederri/replacements-for-parquet-anyone-c66c28cf300e?source=rss-9b12a3bc6a07------2</link>
            <guid isPermaLink="false">https://medium.com/p/c66c28cf300e</guid>
            <category><![CDATA[parquet]]></category>
            <category><![CDATA[duckdb]]></category>
            <category><![CDATA[vortex]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[apache-arrow]]></category>
            <dc:creator><![CDATA[Moshe Derri]]></dc:creator>
            <pubDate>Thu, 04 Dec 2025 09:31:33 GMT</pubDate>
            <atom:updated>2025-12-04T09:31:33.422Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rTROQOu9DdT6BL6dyqx2-g.png" /></figure><p>For years Apache Parquet has been a loyal servant, a columnar format that did wonders to the world of analytics, being good friends to its fellow engines and catalogs and performing extremely well under analytical pressures.</p><p>So, what changed? Well, in 2 letters — AI.</p><p>Parquet is more of a “frenemy” to AI than a best friend. That’s why I decided to go on a scavenger hunt to find the right fit. Before we go on, let me be clear: I use and will continue to use Parquet. But for high-performance AI workloads, the era of “Parquet for everything” is over.</p><p>Here’s why.</p><p>I won’t dive into Parquet internals — there’s plenty of great material out there. Instead, I want to focus on three specific cases where Parquet simply breaks down under modern AI demands.</p><h4>The Read Everything Problem</h4><p>Parquet was built for OLAP workloads where you scan massive amounts of data — computing a SUM or AVG over millions of rows. But AI workloads are different: they rely on random sampling, not full-table scans.</p><p>When you train a model, you shuffle the dataset. You jump to Row 10, then Row 50,000, then Row 3 — over and over.</p><p>And our friend Parquet hates this.</p><p>To fetch Row 50,000, Parquet usually has to decode an entire 10,000-row page just to throw 9,999 rows away. This is classic read amplification — and it means your very expensive GPU is waiting for your storage system to decompress data it doesn’t even need (there are solutions out there that improve GPU utilization, like <a href="https://github.com/uber/petastorm">PetaStorm</a> and <a href="https://github.com/NVIDIA/DALI">NVIDIA DALI</a>, which is backed by our close friend Arrow).</p><h4>The One-Fits-All Compression Problem</h4><p>When Parquet compresses a column, you must choose a single (supported) codec (Snappy, Zstd) for the entire page. For AI workloads, which often deal with sparse or irregular data, this rigidity wastes CPU cycles on decompression (keeping the GPU waiting) when lighter encoding would have sufficed.</p><h4>The Fat Footer Problem</h4><p>Modern Feature Stores are wide — sometimes 10,000+ columns wide. Parquet stores all metadata (statistics, offsets, min/max) in a single file footer. On very wide tables (common in AI workloads), you could spend a few seconds and gigabytes of RAM penalty. It’s a monolithic design in a modular world.</p><p>So, I went looking for the “Parquet for AI” and found three main players:</p><ul><li><strong>Lance</strong> (by LanceDB)</li><li><strong>Nimble</strong> (by Meta)</li><li><strong>Vortex</strong> (by Spiral)</li></ul><p>This isn’t a comparison post — each solves the issues above in different ways. <strong>Lance</strong> is the cool kid in the GenAI block. It didn’t just fix random access; it embedded a vector index inside the file format. If your workload is RAG or vector search, Lance is your friend. <strong>Nimble</strong> is Meta’s internal heavy lifter. They realized Parquet was bottlenecking their recommendation models, so they built Nimble to treat columns as independent “streams” to saturate GPU clusters.</p><h4>Why I Chose Vortex</h4><p>I focused on Vortex because it feels less specialized than Lance and more like a universal building block.</p><ul><li>It feels “like the <a href="https://datafusion.apache.org/"><strong>DataFusion</strong></a> of file formats” (and if you haven’t heard of DataFusion — it’s time 🙂)</li><li>It’s <strong>Zero-Copy</strong> by design (<strong>Arrow</strong> ❤)</li><li>It integrates well with my stack</li><li>It has a clear <a href="https://dl.acm.org/doi/pdf/10.1145/3749163">manifesto</a> for the future of file formats</li></ul><p>In addition, Vortex introduces Cascading Compression. Parquet forces you to pick one codec for the whole column. Vortex is smarter. It looks at a chunk and decides: <em>“This part looks like integers? Use Frame-of-Reference encoding. This next part is sparse? Switch to RLE.”</em> It adapts the physical layout to the data recursively.</p><p>It also separates the Logical from the Physical. This allows for Lazy Loading of metadata. In that 10,000-column table I mentioned? Vortex can jump straight to Column 500 without parsing the other 9,999.</p><p>Now, before diving deep into a very simple code example, few words about how Vortex actually pull this off.</p><p>Unlike Parquet, which dictates a strict on-disk layout, Vortex calls itself a <strong>Layout Engine</strong>. Instead of storing bytes in a fixed pattern, Vortex stores a “program” describing how to reconstruct the data.</p><p>It uses <a href="https://github.com/google/flatbuffers">FlatBuffers</a> for metadata (lightning-fast serialization used by many high-performance systems). Instead of parsing a heavy footer, Vortex simply memory-maps the metadata and jumps directly to the needed byte.</p><p>Its architecture is recursive: each column is a tree of layouts. One chunk may be Delta-encoded, another bit-packed, another raw bytes. To disk, this is an optimized puzzle; to you, it appears as a standard Arrow array ready for memory-mapping.</p><p>Let’s see some Vortex in action! No complex ETL, no heavy Spark cluster. Just duckdb, the vortex extension, at arrow speed.</p><p>The goal: Read a Vortex file, query it with DuckDB, and pass the result to PyTorch without the CPU ever deserializing a single JSON object.</p><pre>import duckdb<br>import pyarrow as pa<br>import torch<br><br># 1. Setup DuckDB with the Vortex extension<br># (Note: This runs locally, no server needed)<br># https://duckdb.org/docs/stable/core_extensions/vortex<br>con = duckdb.connect()<br>con.install_extension(&quot;vortex&quot;)<br>con.load_extension(&quot;vortex&quot;)<br><br># 2. The &quot;Virtual&quot; View<br># We don&#39;t read the whole file. We just map it.<br># DuckDB treats the Vortex file like a native table.<br>query = &quot;&quot;&quot;<br>    SELECT <br>        feature_1, <br>        feature_2, <br>        label <br>    FROM read_vortex(&#39;my_huge_dataset.vortex&#39;)<br>    WHERE label = 1<br>&quot;&quot;&quot;<br><br># 3. The Zero-Copy Handshake<br># .arrow() is the magic method here. <br># It passes the memory pointers directly from DuckDB&#39;s engine to PyArrow.<br>arrow_table = con.sql(query).arrow()<br><br># 4. Straight to Tensor (Zero-Copy again if types align)<br># We convert the Arrow column directly to a PyTorch Tensor.<br>features = torch.tensor(arrow_table[&#39;feature_1&#39;].to_numpy())<br>print(f&quot;Loaded {len(features)} rows instantly.&quot;)</pre><h3>And Now, For The Caveat</h3><p>I may have painted a perfect picture, but there’s one big missing piece: <strong>Governance.</strong></p><p>Today, Vortex is a naked format. In the Enterprise world, we rely on Table formats (Iceberg, Delta Lake, Hudi,…) and Catalogs (Polaris, Unity, Ducklake, LakeKeeper, Gravitino,…) to tell us which files are valid, which are deleted, and how the table has evolved over time. Currently, and unfortunately, there is no support for format=&#39;vortex&#39; .</p><p>This puts us in a tricky spot. If you use Vortex today, you are essentially managing files manually (or building your own manifest system). It works for a research project or if you want to (god forbid) replicate your data.</p><p>Fear not though, it’s in the making. <a href="https://spiraldb.com/">Spiral</a>, the team behind Vortex, has been <a href="https://spiraldb.com/post/vortex-on-ice">working</a> on bringing Vortex to Iceberg (<a href="https://github.com/apache/iceberg/pull/12298">PR</a>), with early results showing up to 4× speedups for <em>some</em> workloads.</p><p>Personally, I hope to see native support in DuckLake as well.</p><p>Oh, and if 2024/5 was the era of Catalog Wars, 2025/6 might be the year of the File Formats.</p><p>Have a good one!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c66c28cf300e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Apache Arrow: The Engine Behind Modern Data Performance]]></title>
            <link>https://medium.com/@moshederri/understanding-apache-arrow-the-engine-behind-modern-data-performance-2a53bd1d1054?source=rss-9b12a3bc6a07------2</link>
            <guid isPermaLink="false">https://medium.com/p/2a53bd1d1054</guid>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[duckdb]]></category>
            <category><![CDATA[performance]]></category>
            <category><![CDATA[apache-arrow]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[Moshe Derri]]></dc:creator>
            <pubDate>Tue, 02 Dec 2025 13:12:41 GMT</pubDate>
            <atom:updated>2025-12-02T14:09:25.525Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ywjs8IXKG7S5HyjdAeOmMQ.png" /></figure><p>As a data engineer, you’ve probably heard the term “Arrow” flying around, whether as part of a technology you adopted or simply as the buzzword appearing in the release notes of your favorite data tools. If you’ve heard of it but haven’t found the time to dive deeper, you came to the right place.</p><p>Since Arrow is a massive topic, I have decided to split it to multiple posts, where the first one focuses on the Arrow bits and bytes, and the future ones will focus on how solutions out there are utilizing Arrow for faster analytics.</p><p>By the end of this, you’ll understand exactly how Arrow stores, packages, and moves data — and why it’s transforming modern analytics.</p><h3><strong>So, What Apache Arrow Actually Is?</strong></h3><p>At its simplest, Apache Arrow was created to solve a major performance bottleneck that engines hit when executing commands over data, whether on disk or in memory.</p><p>Back in the day, data was loaded into memory as rows. This forced the CPU to jump around memory, skipping over irrelevant data just to find specific values to answer a specific analytical question.</p><p>Furthermore — and I consider this the game changer — before Arrow, every tool (Python, R, Spark, Java) had its own internal way of storing data in memory. If you wanted to move data from Spark to Python, you had to <strong>serialize</strong> the data (convert it to bytes) and then <strong>deserialize</strong> it on the other side. This process is slow, expensive, and wastes massive amounts of CPU cycles.</p><p>Then came Arrow.</p><p>It focused on two things:</p><ol><li>Efficiently persisting data in memory in a <strong>columnar format</strong> for extremely fast analytics.</li><li>Defining a standardized way to support <strong>interoperability</strong> between different processes.</li></ol><p>We’ll start by understanding how Arrow is built, explore its internal data layout, and then show how it moves data efficiently between systems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eWX9_Ts6_bYI9f7U8-PjDg.png" /></figure><h3>Arrow’s Architecture</h3><p>To understand why Arrow is so efficient, we have to stop visualizing data as a “spreadsheet” and start seeing it as a map of memory addresses.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ahEQRRRRBGBTQ7ctS0_xkg.png" /></figure><h4>Logical vs. Physical</h4><p>On the left, you see the <strong>Logical Table</strong>. This is how we think: a list of rows containing Josh, Alex, and Lisa. But if we tried to store the data exactly like this in memory (row by row), the CPU would have to hop around to process it. Arrow flips this script. Instead of grouping data by Rows, it groups it by Columns.</p><h4>Metadata Is Key</h4><p>In the center of the diagram, you see the <strong>RecordBatch</strong>. This is the most important object in the Arrow ecosystem. Think of the RecordBatch as the brain. Notice that the RecordBatch itself doesn’t hold the heavy data. Instead, it holds <strong>Metadata</strong> and <strong>Pointers</strong>:</p><ul><li><strong>Schema:</strong> It knows that “ID” is an Integer and “Name” is a String.</li><li><strong>Row Count:</strong> It knows this specific batch contains rows 100 to 500.</li><li><strong>Addresses:</strong> Crucially, it holds the memory addresses (pointers) to where the actual data lives in the Heap.</li></ul><h4>The Serialized Data</h4><p>The heap section represents your RAM. Arrow allocates each column as its own independent, contiguous block of memory.</p><ul><li>The <strong>ID Column</strong> is stored at address 0x500.</li><li>The <strong>Name Column</strong> is stored way over at address 0x800.</li><li>The <strong>Score Column</strong> is at 0xB00.</li></ul><p>They don’t need to be next to each other. Because the RecordBatch holds the specific address for each column, Arrow can manage these buffers independently. This allows for efficient memory management without needing to defragment or copy huge blobs of data just to organize them.</p><h4>The Secret Sauces</h4><p>On the far right, we see the consumers, such as <strong>DuckDB</strong> and <strong>PyArrow</strong>. This is where the magic happens.</p><p><strong>The “Zero-Copy” Revolution</strong> When you want to pass this data from your Python script to the DuckDB engine, you don’t copy the data buffers. You simply hand over the <strong>RecordBatch</strong>. DuckDB reads the address 0x500, looks directly at that location in your RAM, and starts reading. You just moved data between languages in nanoseconds.</p><p><strong>SIMD (Single Instruction, Multiple Data)</strong> Another key optimization made possible by the columnar format is SIMD. Take the ID Column Buffer: because it contains only integers packed tightly together, the CPU can load a vector of IDs and process 8 or 16 of them in a single clock cycle. If this were row-based data, the CPU would have to skip over the “Names” and “Scores” to find the next ID, breaking the vectorization.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AQANQwC3J6PDBySCF-SrOA.png" /></figure><h3>Data Representation</h3><p>With the high-level concepts in place, we can now focus on how Arrow implements its buffers — focusing only on primitives, strings, and lists (but there are many more).</p><h4>The Anatomy of a Buffer</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_CZHsSeTfzJPvpF1IJNj6g.png" /></figure><p>I’ve mentioned the term Buffer a few times already, so it’s time to understand what it actually is. Before diving in, it is important to align with Arrow’s terminology because it can get quite confusing:</p><p>A <strong>RecordBatch</strong> maintains information about columns and a schema. Each column is called an <strong>Array</strong>. Every Array is made of one or more contiguous memory <strong>Buffers</strong>.</p><p>At its core, a Buffer is just a contiguous, raw block of physical memory containing bytes. It is the lowest-level building block in Arrow. What those bytes actually represent depends entirely on the type of Array they belong to.</p><p>An Array typically requires a combination of different buffers working together to fully define its data. Depending on the complexity of the data type, these buffers may contain the actual data values, offsets indicating the start and end points of variable-length data like strings, or crucial metadata indicating missing values.</p><p>Now, let’s start with the first type of buffer.</p><h4>Validity Bitmap Buffers</h4><p>The first part of the Buffer puzzle is the validity bitmap buffer. It is used to represents NULLs using a validity bitmap (where <strong>1 = valid</strong> and <strong>0 = null</strong>). Bitmaps are read right-to-left because Arrow uses LSB (Least Significant Bit) ordering. The bitmap is always stored in full bytes, so if the number of values doesn’t fit into 8 bits, the unused upper bits are simply padding and ignored.</p><h4>Value Buffers</h4><p>These buffers are the ones maintaining the actual data. In order to understand how they work, let’s look at how Arrow represents primitive fixed-width types (e.g. int, float, etc):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H8EwOQvYAp5lztW97zz13g.png" /></figure><p>In this example, we have an int64 column, consisting of a fixed size (8 bytes per value) and a single null value. The bitmap marks every value with 1, except the single null, marking it as 0. The values are laid out one by one, including the null (represented by insignificant bytes).</p><h4>Offset Buffers</h4><p>These buffers serve as pointers to data (could be characters, elements in a list, etc).</p><p>Here are two examples for how Arrow uses offset buffers:</p><p><strong>Example 1 — Variable-Length Data (Strings)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aFaZ0TJ5e0YbNd0lzlvmJg.png" /></figure><p>Strings are a bit different, as we do not know their length in advance. In this case, the validity bitmap marks the first, third and fourth elements as 1s, while others are 0s (to represent NULL and padding to 8 bits).</p><ul><li><strong>Offsets:</strong> Represent the starting point of characters for each string.</li><li><strong>Values:</strong> A single buffer containing the concatenation of the entire column’s text data.</li></ul><p><strong>Example 2— Lists</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xonGVU8RetaM69yVrcjA2w.png" /></figure><p>In this example, we see two usages of the validity bitmap: one for the list itself and the other for the child elements. The offset data represents the element count (e.g., three elements for the first item, none for the second, two for the third). The child validity bitmap represents if there are nulls within the child elements themselves, whereas the values buffer concatenates all the elements together.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_rsIWDCrj4qLIIZ2neheiQ.png" /></figure><h3>Write Once, Read Many</h3><p>In other words, Arrow’s internal layout gives us the foundation — now we need a way to package it, transport it, and consume it.</p><p>If you reached this section, you now have a solid understanding of how Arrow organizes data in memory (Buffers) and how the RecordBatch keeps everything together. The key idea is simple: once the data is laid out this way, the smartest thing we can do is <strong>avoid touching it again</strong>.</p><p>So this raises the question — <em>how do we actually move these RecordBatches around?</em></p><p>In this final part, we’ll look at how Arrow packages its buffers for transport (IPC), how it moves them across machines at high speed (Arrow Flight), and how other tools can consume them through a modern connectivity layer (ADBC).</p><h4>Arrow IPC — The Packing Part</h4><p>Arrow IPC is the lightweight wire format that allows Arrow data to move between processes without serialization by simply wrapping the existing buffers and schema into a small, structured envelope. The receiver then reconstructs the Arrow Arrays by mapping the same buffers back into memory. This is why Python → Rust → Java can all exchange data in microseconds: no copying, no decoding, no transformation — just pointers, metadata, and the original Arrow layout.</p><h4>Arrow Flight — The Transport Part</h4><p>Arrow Flight builds on the IPC format and adds a high-performance, gRPC-based transport layer designed for large analytical datasets. Instead of streaming rows one by one (like JDBC/ODBC), Flight transfers entire Arrow RecordBatches in parallel chunks, keeping everything columnar from end to end. This enables dramatically higher throughput, near-zero CPU overhead, and true zero-copy reads on both sides. Many modern systems use Flight to bypass bottlenecks in existing APIs and unlock network speeds that match columnar data processing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qdnMq1s4AOG8xsKT8LeQpQ.png" /></figure><h4>ADBC — The Connectivity Part</h4><p>ADBC sits above Flight (i.e. ADBC ≠ Arrow Flight) and provides a standardized way for applications to connect to databases using Arrow as the default result format. It plays the same role as JDBC or ODBC — but modern and columnar-first. Engines like DuckDB, DataFusion, and Polars can use ADBC to issue queries and receive Arrow RecordBatches directly, without any row conversion or serialization. ADBC doesn’t move the data itself; instead, it defines the driver API, while Flight (or any transport) handles delivery. The result is a simple, unified interface for fast, cross-language, Arrow-native connectivity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Lu1S0NPtUdKwtMBEG-T6JQ.png" /></figure><h3>Bringing It All Together</h3><p>At this point, you’ve seen how Arrow stores data, how it represents every major type, and how it avoids unnecessary copying. The final piece is seeing how these layers come together in practice.</p><p>Right before wrapping it all up, I want to share a practical example of <a href="https://duckdb.org/2021/12/03/duck-arrow">the power of Arrow &amp; DuckDB</a>. This combination is often faster than Pandas alone. But since I love both tools — and assuming I have some complicated code written in Pandas that I don’t have the capacity to translate into SQL — I was wondering — Why can’t I just use both?</p><pre>import duckdb<br>import pyarrow.parquet as pq<br>from some_complicated_codebase import some_complicated_function<br><br># 1. THE SETUP: Read data into an Arrow Table<br># We use PyArrow to read the file. This creates an Arrow Table in RAM.<br># Unlike Pandas, this preserves the columnar layout and types perfectly.<br>arrow_table = pq.read_table(&#39;sales_data.parquet&#39;)<br><br># 2. THE HEAVY LIFTER: DuckDB queries the Arrow Table directly<br># We don&#39;t need to &quot;load&quot; data into DuckDB. <br># DuckDB can see the &#39;arrow_table&#39; variable and query it directly!<br># Unlike Pandas, we don&#39;t read the entire dataset into RAM.<br>con = duckdb.connect()<br><br># Note how we select FROM the python variable &#39;arrow_table&#39;<br># Here we utilize the columnar separation of Arrow<br># DuckDB utilizes projection &amp; predicate pushdowns to reduce scans<br>query = &quot;&quot;&quot;<br>SELECT <br>    date,<br>    price<br>FROM arrow_table<br>WHERE region = &#39;US-East&#39; <br>  AND date &gt;= &#39;2024-01-01&#39;<br>&quot;&quot;&quot;<br><br># 3. THE HANDOVER: Zero-Copy<br># DuckDB filters the data in-place and hands a smaller result to Pandas.<br>df = con.execute(query).df()<br><br># 4. PANDAS: The &quot;Fine-Tuner&quot;<br># Now we are back in familiar territory for the complex logic.<br>res = some_complicated_function(df)</pre><p><em>If you want to explore more hands-on examples and deep dives into columnar systems, you can check out </em><a href="http://columnar.tech/"><em>columnar.tech</em></a><em> — a resource dedicated to modern data processing and columnar architectures.</em></p><p><strong>Whew! We made it!</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*odLzq2nHYEieyixtxzV1qg.png" /></figure><p>After walking through buffers, bitmaps, layouts, IPC, Flight, and ADBC, you now understand Arrow far beyond the buzzword level. Let’s tie it all together.</p><p>Apache Arrow is not just a columnar format. It is a foundation for how tomorrow’s analytical systems will store, move, and process data:</p><ul><li><strong>Array layout</strong> → Efficient in-memory analytics</li><li><strong>Buffers + metadata</strong> → Zero-copy interoperability</li><li><strong>Arrow IPC</strong> → Lightweight, serialization-free wire format</li><li><strong>Arrow Flight</strong> → High-throughput, columnar-by-design network transport</li><li><strong>ADBC</strong> → Modern, Arrow-native connectivity layer across tools</li></ul><p>Together, these components remove the unnecessary friction that has slowed down analytical systems for decades.</p><p>Next up: Part 2 — a deep dive into the tools, engines, and systems that adopted Arrow and why they’re faster because of it.</p><p>I really hope this post shed some light on this amazing project and if i had missed anything, please let me know!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2a53bd1d1054" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Team Lead to Director: 8 Lessons That Changed How I Lead]]></title>
            <link>https://medium.com/@moshederri/from-team-lead-to-director-8-lessons-that-changed-how-i-lead-01053b580d8a?source=rss-9b12a3bc6a07------2</link>
            <guid isPermaLink="false">https://medium.com/p/01053b580d8a</guid>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[directors]]></category>
            <category><![CDATA[lessons]]></category>
            <category><![CDATA[team-leader]]></category>
            <dc:creator><![CDATA[Moshe Derri]]></dc:creator>
            <pubDate>Thu, 27 Nov 2025 15:08:09 GMT</pubDate>
            <atom:updated>2025-11-27T15:08:09.499Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QeSodGiYbTcZKZ_LvBdPpw.png" /></figure><p>Becoming a director wasn’t a promotion — it was a transformation.</p><p>Nobody handed me a group and said, ‘Congratulations, you’re now a director.’ Instead, I accidentally built one — one fire, one failure, and one radical decision at a time. It took three years, and honestly, I had no idea what I was doing for most of it.</p><p>And here’s what I learned.</p><p>It all started when I decided to leave the company I was working for at the time. They say you don’t leave a company, you leave a manager, and it was just one of those times. It wasn’t burnout. It was the slow, painful realization that I was shrinking instead of growing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xb5J0DGaCFL1JoU6EnlRiA.png" /></figure><p><strong>Tip #1: The majority of your decision about where to work should rely on your direct manager. A good manager will change your life.</strong></p><p>A good manager believes in you, pushes you to your limits, and takes you places you didn’t think you could reach.</p><p>At the time, that’s all I wanted. I quit my job in search of a manager I could truly trust — someone who would challenge me and have my back. After all, I’d seen first hand what bad management looks like: the toxicity, the loss of motivation, and how easily it poisons the people around you.</p><p>Do your <em>due diligence</em> on your future manager just as they do theirs on you.<br> Trust your intuition, reach out to people in their circle, and prepare sharp questions — those are critical data points in deciding where to work.</p><p>To give you some timeline, I joined my previous company as a data infrastructure team lead, still being hands-on while also leading a team of amazing talent, not really thinking about what my next step would be.</p><p>My first task was to build and advocate for a new self-service data pipeline solution, one that aimed to sunset the old one. The solution was still in development and had some early adopters, but not the happy kind…</p><p>Getting internal customers onboard was brutal. They had their own problems to deal with, countless product demands, never-ending bugs and issues, which placed me at the same priority as the bug that no one wants to take.</p><p><strong>Tip #2: There are many good ideas worth pushing, but the ones that matter most are the ones that move the business forward. Translate your idea into business impact, articulate it, and push it forward.</strong></p><p>Remember, your teams (and you) are probably the only ones who care about the tech in your infrastructure and/or that a new streaming solution was just released and you REALLY want to try it out. What worked for me when trying to push an idea was to answer 2 simple questions:</p><p><strong>What is the current focus of the business?</strong></p><p>This is a very important question and probably the hardest one to answer, as it really depends on the culture of your company. The prerequisite is to find the focus areas and use them as a base.</p><p>The next step is to find the methodology that would work for you and your company. I found OKRs to be the best framework that reflects focus, is impact-driven, and endorses collaboration (between different teams/departments/etc.). Needless to say that the absence of business focus areas means incorrect prioritization, which means insignificant impact to the business.</p><p><strong>Can you find a correlation between the business’s focus and the areas you want to invest in?</strong></p><p>If the answer is no, then it should be scoped out. If the answer is yes, add it to the pile of ideas while making sure to measure its complexity and impact. Those two measures will help you prioritize and reason about the final plan for the next planning cycle.</p><p>Fast forward one year in, the self-service data pipeline tool was gaining adoption and good feedback from the users, and something I didn’t expect happened — I was given the opportunity to lead an additional team and by doing so, become a group leader. The transition was not simple and imposed many challenges: absence of processes, delivery delays, unclear priorities, interface trust issues, and the biggest one — how this addition would play out with the existing team I was managing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kGbnktkR7jU_fw2N3iEpHg.png" /></figure><p><strong>Tip #3: Use well known frameworks in order to truly analyze, understand and solve big/critical problems.</strong></p><p>The first thing I remember doing (for myself only, which might have been a mistake) was to execute a S.W.O.T (strengths, weaknesses, opportunities, and threats) analysis. Frameworks force you to slow down, detach from emotion, and see the system instead of the symptoms. I talked with the team, its interfaces, inspected how things were operating on a daily and monthly basis, and eventually shaped a three-step recovery plan:</p><ul><li><strong>The team</strong> — Transiting them to a more fitting role, in order to broaden their technical scope.</li><li><strong>The rituals &amp; processes</strong> — Move to proper Agile, reduce context switches, rebuild processes.</li><li><strong>The interfaces</strong> — Rebuild trust across departments and highlight the team’s strategic importance.</li></ul><p>The first two bullets were less of a challenge for me — I had done them countless times — but the last one was an enigma. How can I make hundreds of developers, analysts, and product managers acknowledge the importance of my data teams and ensure they’re taken into account in everyday development (and never as an afterthought)?</p><p><strong>Tip #4: Do not fear making big changes (never give in to the status quo because it’s easy). Create multi-step plans, get buy-in from key personas, and gradually deploy while continuously measuring and refining.</strong></p><p>Some say the first idea is usually the right one. For me, it absolutely wasn’t. For me, it was the second one.</p><p>I had tried solving the problem of trust, interfaces, and alignment using the champion model, exposing my team to the data producers, teaching them how to properly design a data pipeline while fully supporting them in the development phase. If you&#39;ve never tried a champion model before, the main challenge you&#39;ll face is that it works well on paper but in reality, it feels enforced. I remember talking to multiple companies, and only a small subset of them fully mastered this model, but it came with a heavy price.</p><p>Having failed to deploy this model in the company, a more radical approach was my next option—something like: no one creates data pipelines except us (not even the data producers).</p><p>Sounds extreme, right? well, it was.</p><p>But once:</p><ul><li>You have the right people with you (i.e., tip #1)</li><li>You connect the problem with the business’s critical path to success (i.e., tip #2)</li><li>You come up with a well-thought-out solution (i.e., tip #3)</li><li>You provide them with confidence that you are the right person for the job (i.e., tip #4)</li></ul><p>…you might have paved the way to success. And so we did.</p><p>At the time, deploying the change was hard and time-consuming, having to talk with multiple interfaces and convince them to trust us. But with perseverance and results, time did its thing, and we succeeded.</p><p>I was happy because I had time to focus on different parts of my role, and decided to tackle an area I was neglecting for quite some time due to the constant firefighting. That one thing, which I find extremely important and crucial to my group, was a clear, easy-to-understand and articulate group purpose.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1NVxm151_RwsDZqPmt6hfw.png" /></figure><p><strong>Tip #5: Invest in a long-term vision to give your people confidence that what they are building matters (to the business) and is properly thought out.</strong></p><p>Forging a vision can be done in many ways, but for me it had to include:</p><ul><li><strong>Business context</strong> — Who are we, why are we here, what problems are we solving for our customers, and most importantly, where is the business currently headed?</li><li><strong>Current state</strong> — Deep understanding of the current solutions (could be technical as well as product)</li><li><strong>External variances</strong> — Every external piece of information that can assist you in crafting the vision, e.g., what our competitors do, where the data industry is moving, and what’s worth exploring</li></ul><p>After gathering all the above, I decided to include the group as much as possible and not hand it over to them on a silver platter, mainly because the more involved they are, the more engaged they become. Even when I was a team lead, I rarely made decisions alone. I always aimed to build a team that makes decisions on their own, and my purpose is to set the stage, enforce the right culture, provide context, and most importantly, invest a ridiculous amount of time recruiting the right people.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i75dw8UssgSSdSKCIz2tQA.png" /></figure><p><strong>Tip #6: Never compromise on talent. Compromising on talent means you are setting your team up for failure.</strong></p><p>Hiring is where groups are made or destroyed. It is never “just filling a role.” If I had to measure where I spend my time the most, I would probably guess it falls under hiring. During my career, I have come across many talented people who taught me how to identify talent. For the process to be successful, you need to spend a lot of time understanding exactly what you are looking for and how to get it:</p><ul><li><strong>Break down the persona you are looking for into key success factors</strong> — i.e., what the candidate must have to succeed in the role</li><li><strong>Attach those keys to every single interview</strong> the candidate goes through, making sure you don’t miss out on the important things</li><li><strong>Work closely with the recruitment team</strong> — be active in sourcing, posting, and reaching out to candidates (sometimes even more than them)</li><li><strong>In addition to the formal interviews, make sure the candidate meets as many people as possible</strong> (not necessarily in a formal meeting — could be coffee or lunch). Talented people don’t only choose the company because of salary and interesting technologies, but also because of the people</li></ul><p>Following those guidelines, I managed to recruit dozens of engineers with nearly zero misses. Again, the key here is to be patient and persistent. No shortcuts. No compromises.</p><p>During that time, my calendar was fully booked, having to manage ~12 people directly, and every day I faced the same challenge: what meeting should I join when I had many double (and sometimes triple) bookings? That’s where I took tips #5 and #6 into practice and decided to focus on recruiting my managerial leadership.</p><p>And yes, I should have done it sooner.</p><p>Recruiting a manager is much more complicated than recruiting an IC. There are many questions you as the recruiting manager need to answer:</p><ul><li>Does the candidate have what it takes for the team to succeed (culture, growth mindset, solving complex challenges, setting up good processes, etc.)?</li><li>How will the candidate fit into the leadership team (will the candidate&#39;s addition make it better)?</li><li>How well is the candidate connected to the business (does the business take an active role in the candidate&#39;s decision-making)?</li><li>Do you feel that you can trust the candidate to do a good job (push a big change? receive feedback? and can you guide them toward their next career aspirations)?</li></ul><p>Those are just a small subset of the questions I had when recruiting my managers. What wasn’t clear to me at the time was just how long that process would take. Even though it took a lot of time (8+ months), I stayed focused, allocated as much time as needed (sometimes even having 3 interviews in the same day), made mistakes (missing out on candidates) but I never stopped.</p><p><strong>Tip #7: Invest in a strong leadership team. Make sure every leader knows exactly how they are measured, as well as their role and its responsibilities.</strong></p><p>When building a group, right after establishing trust comes commitment and accountability. As a group leader, I had to invest time to craft accurate R&amp;Rs (Roles &amp; Responsibilities) for each role I managed. As you probably assumed by now, this process was done with my managers and not by me alone. Some R&amp;Rs were straightforward while others were trickier.</p><p>For example, the process of crafting the R&amp;R for the data product manager (DPM) was not trivial, as we never had that role before. The DPM and I spent time raising concerns and questions, reached out to similar-sized companies who had that role, summarized every piece of information, and came up with a well-defined R&amp;R.</p><p>I found that there are many benefits to having proper R&amp;Rs:</p><ul><li>It’s clear what the role (e.g., manager, product, IC) is measured on</li><li>It can be easily refined as the role evolves (which was already done by the director who replaced me, introducing an architect role to the team)</li><li>It can be referenced if a conflict arises</li></ul><p>One (last) tip that made the cut (where many others didn’t):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AhOf7vS3wr3wCvmkc7l0sA.png" /></figure><p><strong>Tip #8: Lead your managers by example. Give them enough autonomy to succeed (and celebrate together) or fail (and learn together) while guiding them toward their goal aspirations.</strong></p><p>Invest in proper communication and regular sync meetings with the leadership (together and one-on-one). Make sure to continuously provide business context and company updates to the leaders so they can make good decisions. Invest time creating collaborations between the teams, as they are stronger together. Make sure your opinion is heard and taken into account, but always provide your managers with autonomy to make decisions — whether they succeed or fail — and be there to guide them to become great leaders. Leadership is rarely about being right — it’s about creating an environment where others can be.</p><p>I know I said it was the last tip, but one semi-tip is to not be a stranger to the ICs. Occasionally meet with every single one of them, even if it’s just a casual talk about… uhm… basketball.</p><p>Completing this article raises a smile on my face — probably just a sense of achievement from hitting a critical milestone in my career, one that I have many to thank for. Starting from my direct managers who gave me the autonomy to run fast and backed me up (almost) every time. To the upper management who taught me the importance of the business, decisions, and priorities. And last, but should never be least — my A-M-A-Z-I-N-G group. I truly cherish every single one of them and know they will continue doing magic!</p><p>I’m starting a new chapter, and I only hope it will be as meaningful and impactful as these unforgettable last three years.</p><p>More to come :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=01053b580d8a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[10 Tips I Wish I Had Known Before Becoming A Team Lead]]></title>
            <link>https://medium.com/@moshederri/10-tips-i-wish-i-had-known-before-becoming-a-team-lead-a435b39c6fb9?source=rss-9b12a3bc6a07------2</link>
            <guid isPermaLink="false">https://medium.com/p/a435b39c6fb9</guid>
            <category><![CDATA[team-building]]></category>
            <category><![CDATA[team]]></category>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[team-management]]></category>
            <category><![CDATA[team-collaboration]]></category>
            <dc:creator><![CDATA[Moshe Derri]]></dc:creator>
            <pubDate>Tue, 17 May 2022 06:56:22 GMT</pubDate>
            <atom:updated>2022-05-17T06:56:22.151Z</atom:updated>
            <content:encoded><![CDATA[<p>The thought of writing a story was always on my mind, ever since I started my career in the tech world. Every time I thought of a topic or experience I would like to share, it slowly faded away either due to lack of time or just that my experience is not unique enough for sharing.</p><p>And now, on an airplane for a small weekend vacation, with no internet, xbox or any distraction, have decided to write whatever pops into my head and see what comes out, and hopefully help at least one person on the way. and if not, then at least I can scratch one item off my bucket list.</p><p>So, as my title suggests, I decided to focus on my managerial experience in this story, and hopefully share some technical ones later on.</p><p>I will start off by saying that succeeding in a leading role is hard, at least for me. A decade of being an individual contributor did not prepare me for the journey I was embarking on. At some point in my career, after doing more of the same with some versatility (backend, some frontend and a lot of big data), I asked myself the biggest question — what do you want to be when you grow up? Remain an individual contributor, become an architect or do something as crazy as becoming a team lead. My first pick was to stay in my comfort zone and become an architect. And after becoming one, I felt the satisfaction of playing with technology, somewhat like a little kid who just received a lego box with unlimited time on his hands. but something was missing and I wasn’t quite sure what it was. I then decided to roll back to being an individual contributor, but in a different company and take my time for self-reflection.</p><p>Not long after I joined the new company, I realized that I’d rather lead technical projects than actually develop them. I also liked creating an atmosphere of importance amongst the project’s members, and also establish a good connection with the interfaces involved.</p><p>At that time, I was managed by an amazing visionary individual. I was constantly amazed by his approach to problem solving, as if he had a textbook in his pocket with all the solutions to all of our problems. I felt so inspired at every meeting that he participated in, listening carefully, making sure to write interesting bullets on my phone for later reading. With that in mind, I felt like something was missing.</p><p>A team.</p><p>Fortunately (or not), he decided to become a horizontal contributor and with that, created a void in what used to be a data platform team. With sadness of saying goodbye to my dear visionary friend, I was faced with this horrible decision once again, only this time i decided to challenge myself and take the lead position. Not knowing what to expect, which book to read, what to talk about in my first team meeting and even how to do one-on-ones, i relied on that one thing that has helped me throughout my career, which is my gut feeling. And boy, was I wrong.</p><p>The first team meeting was a complete disaster. I had this great speech prepared, a killer presentation, and a clear vision and response to every possible question that the team might throw at me. The hour came and we headed towards the meeting room. I was leading the way, trying to look calm and at ease. Then it started. I remember telling them I was a bit excited as it was my first team meeting with the hope of some empathy, and dove right in. After every slide, I asked if there were any questions, and of course, I got none. Once the presentation was over, I remember patting myself on the back, thinking I had crafted this perfect alignment amongst the team and we can finally start making wonders together. However two years later, I know it was just the opposite.</p><p>Disclaimer: I believe that in order to really become a great leader, you must have the platform to make mistakes, and most importantly, follow the cycle of retrospection, learning and adjusting along the way.</p><p>So, what were the mistakes I made?</p><p>First of all, it was all about me. I crafted the vision, decided on the team’s procedures, created 6 months of backlog, talked about my values and words like bottom up culture without really knowing what it means, to just name a few of my mistakes.</p><p>In addition, when I became a team lead, no one prepared me for what I would have to give up on. For me it was as simple as managing a project and allocate just enough time in my calendar to still stay hands-on, as I was not willing to give that up.</p><p>Right before sharing my top 10 tips, I believe that in order to succeed in a leading role, you need to realize that:</p><ul><li>You are not an individual contributor anymore (this reality takes time to process)</li><li>When the team succeed, the credit goes to them, but when they fail, the blame is on you</li><li>You need to really care about the people just as much as you care about the business and the success of the company</li><li>Although it might seem trivial and tempting, try not to consider your team as your family because then decisions will just be harder</li><li>You will rarely receive feedback from the team, which creates some kind of a blindspot</li></ul><p>With that off my back, here are my tips (and of course there are more):</p><ul><li><strong>start by building trust </strong>— this is the first and most important point of all. You must have trust within your team. Trust doesn’t mean holding them if they fall but it means providing a safe place for them to voice their thoughts without being judged. This takes time to achieve, but it’s an essential building block for what comes next. One thing that worked really well for me is sharing failures, because when doing so, the team quickly realize that no one is perfect. Another idea was to start the team meeting with 10 minutes of blowing steam, in which everyone could talk about their lousy week, without any blocker. A great reference I could give you is an amazing book i’ve read called <a href="https://www.amazon.com/Five-Dysfunctions-Team-Leadership-Fable/dp/0787960756">the five dysfunction of a team.</a></li><li><strong>talk less and have them talk more</strong>— make sure the team takes an active part in decisions, like team definition, vision, procedures, backlog, etc. If you find yourself constantly approached for making a decision for the team, I believe you are doing something wrong. The idea here is to just be a facilitator in most meetings or discussions. Asking questions rather than giving answers is the key for empowerment, engagement and commitment.</li><li><strong>your opinion must be heard last, if ever</strong> — no matter how you twist it, you are still in the lead position and have the authority. Most likely your opinion will have more weight and will affect the direction your team will take.</li><li><strong>create an environment where it’s ok to fail</strong> — I believe we learn the best when making mistakes. With this in mind, if the team wants to go in a different direction than what you had in mind, you must give them the ability to do so. This could lead to one of the following two scenarios: on failure, retrospect, learn and adjust, but on success, celebrate and even share a small ego-less comment like “I was so sure that we shouldn’t have taken the decision we took, and man was i wrong. I am happy to have such a team i can learn from”.</li><li><strong>don’t give up one-on-one with your team —</strong> for me a team is a collection of people who share the same purpose and constantly form and maintain connections. I believe that a weekly meeting with your team members is a must, and the duration is totally up to you. What works for me is having a shared document, in which each of us fills in items we would like to discuss (prior to the meeting). And if the agenda is empty, use the time to talk about issues that are unrelated to work. Another thing I’ve recently added was writing at the top of the document in big bolded font, the long term goals of the team member, while revisiting it once in awhile. I participated in an amazing workshop in which the facilitator said to treat your one-on-one meeting as if it is a meeting with the CEO, and she is absolutely right. A thing that works well for me but might not fit all, is to conduct the one-on-one meetings with all team members on the same day, and right after the weekend. Doing so, you will deepen your connection with the team because the first item you will most likely talk about is personal weekend experiences, and later on, work related ones.</li><li><strong>give feedback as soon as possible and as much as possible — </strong>learning to give effective feedback has been one of the hardest part of being a team leader for me, and if it doesn’t come naturally to you too, don’t worry, with practice it becomes easier. The idea is to really mean it, because fake feedback is easily spotted and once giving it out can create trust issues. When giving effective feedback, try to do it face to face, and if you have to do it on Zoom, do it with your camera on. Sometimes, consider sharing positive feedback in front of the rest of the team. Also, keep in mind that small feedback is just as important as big feedback. One thing I learned from a workshop I participated in is the importance of being as explicit as possible when giving feedback. Refrain from giving feedback such as: “I want you to be more engaged”, because your perception of engagement might be different and therefore make this feedback useless and unclear. Consider instead saying something like “I know you have a lot of knowledge in our domain and I would like to see you share it with the team so they can learn from you”.</li><li><strong>learn to receive feedback as well — </strong>as I mentioned above, getting negative feedback is never easy. It triggers our ego and for emotional people, it could be disastrous. What works for me (still W.I.P) is once I recognize that I am receiving one, I listen to it thoroughly, appreciate it and reflect on it alone later on. It’s up to you to decide whether to act on it or simply discard it.</li><li><strong>have the capacity to be hated</strong> — it is human nature to want to be liked, so why should we put ourselves in the position to be hated? well, a part of your job is to say no too, and by saying no, you let somebody down which might lead to that person hating you for awhile. I know, hate is a strong word but sometimes it just happens. The trick here is the way you say no, and I’ve found that the best way is by sharing as much context as possible and make it a dialog, while trying to get to the reason no is being said, together.</li><li><strong>avoid knowledge silos —</strong> I believe that teams work well if every team member can perform any task (unless its a multi-disciplinary team by definition, and if so, then it’s only 9 tips for you :) ). The way I have succeeded to avoid knowledge silos is by taking members constantly out of their comfort zone while guiding them in selection of tasks. If you believe it will impact delivery (i.e. tasks will take longer) — don’t worry, it will pay off in the future eventually. In addition, schedule internal knowledge sharing meetings every sprint, just with the team, to have members elaborate on the tasks they worked on. We try to make these meetings as interactive as possible by asking many questions, thinking about how to optimize related flows and brainstorming whatever else we can learn moving forward. As a result, the team is exposed to tasks which are not their own and gather more context in the team’s domains.</li><li><strong>know your clients —</strong> we are a very technical team. we develop and provide service to our R&amp;D, so by definition our interaction with them is mostly a one-way street, i.e. either when something breaks or when a certain feature is requested. However, I strongly believe that it’s not enough. It is critical to form a good connection with your clients and interfaces, learn their pain and even their customers’ pain. Also, I recommend working together on a shared task or just sitting with them for a day or two. Only then you can make product that matters and not product that you think matters.</li></ul><p>As the pilot prepares for landing and politely asks us to turn off our electric devices, I would like to sum up. Leading is hard, and it gets even harder going up the chain. It’s a muscle you need to practice every day and it becomes easier when you look back, learn and adjust. I really hope this article helps someone out there, and even if it just sparks a different idea, that’s also great!</p><p>You know from one of my tips above how positively I value feedback, so know that your feedback is most appreciated. It will help me continue to improve and grow as a team lead, and it may even lead to the topic of a future blog article that I write.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a435b39c6fb9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>