Speed Up Your Spark Jobs: The Hidden Trap in Union Operations

The Problem: Union function isn鈥檛 as Simple as it Seems Picture this: You have a large dataset that you need to process in different ways, so you: Split it into smaller pieces Transform each piece differently Put them back together using union Sounds straightforward, right? Well, there鈥檚 a catch that most developers don鈥檛 know about. The Hidden Performance Killer 馃悓 Here鈥檚 what鈥檚 actually happening behind the scenes when you use union:...

November 29, 2024 路 4 min 路 844 words 路 Vesko Vujovic

DuckDB Inside Postgres: The Unlikely Duo Supercharging Analytics

DuckDB Inside Postgres: The Unlikely Duo Supercharging Analytics If you work in data engineering, you know that the field moves at a dizzying pace. New tools and technologies seem to pop up daily, each promising to revolutionize how we store, process, and analyze data. Amidst this constant change, two names have remained stalwarts: Postgres, the tried-and-true relational database, and DuckDB, the talented new kid on the block for analytics workloads....

October 30, 2024 路 9 min 路 1730 words 路 Vesko Vujovic

Apache Spark: Beware of Column Ordering and Data Types When Using Apache Spark's Union Function

Introduction In this blog post, we鈥檒l zoom into the details of how column ordering and data types can cause issues when using the union function in Apache Spark to combine two dataframes. We鈥檒l explore real-world examples that illustrate the problem and provide practical solutions to overcome these challenges. By the end of this post, you鈥檒l have a better understanding of how to use union effectively and avoid common pitfalls that can lead to job failures....

October 6, 2024 路 5 min 路 1038 words 路 Vesko Vujovic

Apache Spark: Why JSON isn't ideal format for your spark job

Introduction Hi there 馃憢! In this blog post, we will explore why JSON is not suitable as a big data file format. We鈥檒l compare it to the widely used Parquet format and dig deep to demonstrate, through examples, how the JSON format can significantly degrade the performance of your data processing jobs. JSON (JavaScript Object Notation) is a popular and versatile data format, but it has limitations when dealing with large-scale data operations....

September 9, 2024 路 5 min 路 924 words 路 Vesko Vujovic