DySkew: Dynamic Data Redistribution for Skew-Resilient Snowpark UDF Execution

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Xie, Chenwei, Shrestha, Urjeet, McElhanney, Corbin, Lorimer, Lukas, V, Gopal, Ye, Zihao, Pan, Yi, Crouch, Nic, Brossard, Elliott, Funke, Florian, He, Yuxiong
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910129556815872
author Xie, Chenwei
Shrestha, Urjeet
McElhanney, Corbin
Lorimer, Lukas
V, Gopal
Ye, Zihao
Pan, Yi
Crouch, Nic
Brossard, Elliott
Funke, Florian
He, Yuxiong
author_facet Xie, Chenwei
Shrestha, Urjeet
McElhanney, Corbin
Lorimer, Lukas
V, Gopal
Ye, Zihao
Pan, Yi
Crouch, Nic
Brossard, Elliott
Funke, Florian
He, Yuxiong
contents Snowflake revolutionized data warehousing with an elastic architecture that decouples compute and storage, enabling scalable solutions for diverse data analytics needs. Building on this foundation, Snowflake has advanced its AI Data Cloud vision by introducing Snowpark, a managed turnkey solution that supports data engineering and AI/ML workloads using Python and other programming languages. While Snowpark's User-Defined Function (UDF) execution model offers high throughput, it is highly vulnerable to performance degradation from data skew, where uneven data partitioning causes straggler tasks and unpredictable latency. The non-uniform computational cost of arbitrary user code further exacerbates this classic challenge. This paper presents DySkew, a novel, data-skew-aware execution strategy for Snowpark UDFs. Built upon Snowflake's new generalized skew handling solution, an adaptive data distribution mechanism utilizing per-link state machines. DySkew addresses the unique challenges of user-defined logic with goals of fine-grained per-row mitigation, dynamic runtime adaptation, and low-overhead, cost-aware redistribution. Specifically, for Snowpark, we introduce crucial optimizations, including an eager redistribution strategy and a Row Size Model to dynamically manage overhead for extremely large rows. This dynamic approach replaces the limitations of the previous static round-robin method. We detail the architecture of this framework and showcase its effectiveness through performance evaluations and real-world case studies, demonstrating significant improvements in the execution time and resource utilization for large-scale Snowpark UDF workloads.
format Preprint
id arxiv_https___arxiv_org_abs_2604_13034
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle DySkew: Dynamic Data Redistribution for Skew-Resilient Snowpark UDF Execution
Xie, Chenwei
Shrestha, Urjeet
McElhanney, Corbin
Lorimer, Lukas
V, Gopal
Ye, Zihao
Pan, Yi
Crouch, Nic
Brossard, Elliott
Funke, Florian
He, Yuxiong
Distributed, Parallel, and Cluster Computing
Databases
Snowflake revolutionized data warehousing with an elastic architecture that decouples compute and storage, enabling scalable solutions for diverse data analytics needs. Building on this foundation, Snowflake has advanced its AI Data Cloud vision by introducing Snowpark, a managed turnkey solution that supports data engineering and AI/ML workloads using Python and other programming languages. While Snowpark's User-Defined Function (UDF) execution model offers high throughput, it is highly vulnerable to performance degradation from data skew, where uneven data partitioning causes straggler tasks and unpredictable latency. The non-uniform computational cost of arbitrary user code further exacerbates this classic challenge. This paper presents DySkew, a novel, data-skew-aware execution strategy for Snowpark UDFs. Built upon Snowflake's new generalized skew handling solution, an adaptive data distribution mechanism utilizing per-link state machines. DySkew addresses the unique challenges of user-defined logic with goals of fine-grained per-row mitigation, dynamic runtime adaptation, and low-overhead, cost-aware redistribution. Specifically, for Snowpark, we introduce crucial optimizations, including an eager redistribution strategy and a Row Size Model to dynamically manage overhead for extremely large rows. This dynamic approach replaces the limitations of the previous static round-robin method. We detail the architecture of this framework and showcase its effectiveness through performance evaluations and real-world case studies, demonstrating significant improvements in the execution time and resource utilization for large-scale Snowpark UDF workloads.
title DySkew: Dynamic Data Redistribution for Skew-Resilient Snowpark UDF Execution
topic Distributed, Parallel, and Cluster Computing
Databases
url https://arxiv.org/abs/2604.13034