<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/pinterest-cuts-spark-oom-failures-by-96-snowflake-gets-event-driven-etl-without-an-orchestrator-wfzzsjayw" -->

---
title: Pinterest cuts Spark OOM failures by 96%, Snowflake gets...
description: A curated roundup of data engineering news and patterns. Pinterest reduced Spark out-of-memory failures by 96% using auto memory retries, adaptive query...
canonical: https://daily.dev/posts/pinterest-cuts-spark-oom-failures-by-96-snowflake-gets-event-driven-etl-without-an-orchestrator-wfzzsjayw
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Pinterest cuts Spark OOM failures by 96%, Snowflake gets event-driven ETL without an orchestrator | daily.dev
og:description: A curated roundup of data engineering news and patterns. Pinterest reduced Spark out-of-memory failures by 96% using auto memory retries, adaptive query...
og:url: https://daily.dev/posts/pinterest-cuts-spark-oom-failures-by-96-snowflake-gets-event-driven-etl-without-an-orchestrator-wfzzsjayw
og:image: https://api.daily.dev/og/posts/WfZzsjAYW.png
og:image:alt: Pinterest cuts Spark OOM failures by 96%, Snowflake gets event-driven ETL without an orchestrator
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Pinterest cuts Spark OOM failures by 96%, Snowflake gets event-driven ETL without an orchestrator

**[Databases Digest](https://daily.dev/sources/databases_digest)** · 4 min read · 0 upvotes · 0 comments

## Summary

A curated roundup of data engineering news and patterns. Pinterest reduced Spark out-of-memory failures by 96% using auto memory retries, adaptive query execution, and executor-level memory observability across tens of thousands of daily jobs. A Snowflake team eliminated a polling anti-pattern by replacing it with a native event chain using Snowpipe, Streams, and Tasks, saving 240 compute credits monthly. Dremio Cloud shipped Apache Iceberg V3 support including deletion vectors, a VARIANT type for JSON, and interoperability with Spark, Flink, Trino, and DuckDB via Apache Polaris. Popsink released a CDC connector for replicating IBM i DB2 (AS/400) into Snowflake, handling proprietary journaling that breaks most standard replication tools. Also covered: PostgreSQL tooling (pGenie, TigerFS), Snowflake AI_CLASSIFY for SQL-based text classification, Vercel dashboard SQL tabs, PlanetScale traffic control patterns in Go, Appwrite 1.9.0 with MongoDB support, DynamoDB-backed sequence services, and a list of free PostgreSQL providers.

## Content

**TLDR:** Pinterest Engineering published a detailed breakdown of how they eliminated most Spark out-of-memory failures across tens of thousands of daily jobs using auto memory retries and better observability. A separate post shows a Snowflake team replacing a polling anti-pattern with a fully native event chain, saving 240 compute credits a month. Dremio shipped full Apache Iceberg V3 support in Dremio Cloud, adding deletion vectors and a VARIANT type for JSON. Popsink released a connector for replicating IBM i DB2 into Snowflake via CDC, which is notable because AS/400 journaling is incompatible with most standard replication tooling.

---

## Pinterest's 96% reduction in Spark OOM failures

Pinterest tackled Spark OOM failures at scale with three things working together: executor-level memory metrics to find skewed partitions, Spark config tuning including adaptive query execution, and Auto Memory Retries that automatically restart failed jobs with higher memory allocations. The rollout went staged from ad hoc to scheduled jobs, with dashboards tracking recovered jobs and cost impact. Two things worth noting from their write-up: scheduler performance degraded on large TaskSets, and Apache Gluten compatibility required special handling. Their next target is proactive memory increases for high-risk stages before they fail, which is the right direction.

## Replacing Snowflake polling with a native event chain

A data team was burning 240 compute credits per month polling a logging table every 10 minutes to detect job completion. The fix is clean: source system drops a CSV to S3, Snowpipe ingests it, a Snowflake Stream detects the new row, a Task fires the ETL procedure. No external orchestrator, no wasted warehouse warm-ups. This is a good pattern to have in your back pocket if you're running scheduled Snowflake workloads that depend on upstream signals.

## Dremio adds Apache Iceberg V3 support

Dremio Cloud now supports Iceberg V3, which brings the VARIANT type for semi-structured JSON, deletion vectors for faster CDC, and improved schema evolution. The open catalog runs on Apache Polaris and supports interoperability with Spark, Flink, Trino, and DuckDB. Dremio also co-created Apache Arrow and Apache Polaris, so this isn't just a feature announcement — they have real skin in the Iceberg ecosystem.

## IBM i DB2 to Snowflake via CDC

Popsink released a Snowflake Native Application that replicates from IBM i (AS/400) DB2 into Snowflake using CDC. The hard part here is that IBM i uses proprietary journaling instead of WAL or binary logs, which breaks most generic replication tools. The connector reads those journals directly, runs entirely inside your Snowflake account using External Access Integration, and supports sync intervals down to 20 seconds. If you're dealing with AS/400 data, this is worth a look.

---

## Also notable

- **pGenie for PostgreSQL:** SQL-first tooling that validates queries, manages indexes, and generates type-safe client SDKs from plain SQL migrations — catches sequential scans and nullability issues at generation time, not runtime.
- **Snowflake AI_CLASSIFY:** Practical guide to using Snowflake's Cortex AI_CLASSIFY function for text classification directly in SQL, including few-shot examples and building dynamic category arrays with ARRAY_AGG and CTEs.
- **Vercel dashboard SQL:** Vercel added Query, Data Editor, and Schema tabs to marketplace database integrations, supporting AWS Aurora Postgres, Neon, Prisma, and Supabase — useful for quick inspection without leaving the dashboard.
- **PlanetScale traffic control patterns:** Walkthrough of Go patterns for attaching resource budgets to Postgres traffic using SQLCommenter tags, covering per-service isolation, feature flag tagging, and graceful degradation on SQLSTATE 53000.
- **TigerFS:** Experimental filesystem that mounts a PostgreSQL database as a directory, letting you use ls, cat, find, and grep against database-stored files instead of APIs.
- **Appwrite 1.9.0:** Adds MongoDB as an alternative backend to MariaDB for self-hosted deployments — the choice is permanent at install time via a new web wizard.
- **NoSQL migration ID generation:** InfoQ piece on building a sequence service backed by DynamoDB with a 2-tier caching architecture to handle distributed unique ID assignment after moving off a relational database.
- **Free PostgreSQL providers 2026:** Curated list of 10 free-tier Postgres hosts including Supabase, Neon, Railway, Render, and Aiven, with free tier limits and ideal use cases for each.

## Similar posts on daily.dev

- [Pinterest’s CDC-Powered Ingestion Slashes Database Latency from 24 Hours to 15 Minutes](https://daily.dev/posts/pinterest-s-cdc-powered-ingestion-slashes-database-latency-from-24-hours-to-15-minutes-yxa7rq7qv) · InfoQ · 5 upvotes · 0 comments
- [The Battle for Compute: Unlocked by Iceberg V3 and Snowflake Interoperability](https://daily.dev/posts/the-battle-for-compute-unlocked-by-iceberg-v3-and-snowflake-interoperability-o4erztdpv) · Snowflake Community · 0 upvotes · 0 comments
- [9 Apache Spark Alternatives You Should Know in 2026](https://daily.dev/posts/9-apache-spark-alternatives-you-should-know-in-2026-eo0oaq4kc) · ITNEXT · 1 upvotes · 0 comments

---

Tags: [#postgresql](https://daily.dev/tags/postgresql), [#data-engineering](https://daily.dev/tags/data-engineering), [#apache-spark](https://daily.dev/tags/apache-spark), [#snowflake](https://daily.dev/tags/snowflake), [#apache-iceberg](https://daily.dev/tags/apache-iceberg)

[View this post on daily.dev](https://daily.dev/posts/pinterest-cuts-spark-oom-failures-by-96-snowflake-gets-event-driven-etl-without-an-orchestrator-wfzzsjayw)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/pinterest-cuts-spark-oom-failures-by-96-snowflake-gets-event-driven-etl-without-an-orchestrator-wfzzsjayw","headline":"Pinterest cuts Spark OOM failures by 96%, Snowflake gets event-driven ETL without an orchestrator","text":"A curated roundup of data engineering news and patterns. Pinterest reduced Spark out-of-memory failures by 96% using auto memory retries, adaptive query execution, and executor-level memory observability across tens of thousands of daily jobs. A Snowflake team eliminated a polling anti-pattern by replacing it with a native event chain using Snowpipe, Streams, and Tasks, saving 240 compute credits monthly. Dremio Cloud shipped Apache Iceberg V3 support including deletion vectors, a VARIANT type for JSON, and interoperability with Spark, Flink, Trino, and DuckDB via Apache Polaris. Popsink released a CDC connector for replicating IBM i DB2 (AS/400) into Snowflake, handling proprietary journaling that breaks most standard replication tools. Also covered: PostgreSQL tooling (pGenie, TigerFS), Snowflake AI_CLASSIFY for SQL-based text classification, Vercel dashboard SQL tabs, PlanetScale traffic control patterns in Go, Appwrite 1.9.0 with MongoDB support, DynamoDB-backed sequence services, and a list of free PostgreSQL providers.","url":"https://daily.dev/posts/pinterest-cuts-spark-oom-failures-by-96-snowflake-gets-event-driven-etl-without-an-orchestrator-wfzzsjayw","datePublished":"2026-04-07T04:18:34.948Z","dateModified":"2026-04-07T04:19:04.345Z","author":{"@type":"Organization","name":"Databases Digest","logo":"https://media.daily.dev/image/upload/s--ir1hdV8b--/f_auto,q_auto/v1773839400/logos/databases_digest?_a=BAMAMiiu0","url":"https://daily.dev/sources/databases_digest"},"interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/sources/databases_digest","name":"Databases Digest"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Databases Digest","item":"https://daily.dev/sources/databases_digest"},{"@type":"ListItem","position":3,"name":"Pinterest cuts Spark OOM failures by 96%, Snowflake gets event-driven ETL without an orchestrator"}]}
```

