BlackMagic: Automatic Inlining of Scalar UDFs into SQL Queries with Froid
Summary: Froid automatically translates imperative, multistatement scalar UDFs into equivalent relational algebra, exposing them to SQL optimization. This eliminates black-box, iterative execution in favor of set-oriented parallel plans, yielding orders-of-magnitude speedups and powering SQL Server 2019 UDF inlining. (summarized by gpt-5.6-luna on Jul 24 2026)
Incoming Non-self Citations Over Time
Authors
- 1. Karthik Ramachandra (Microsoft)
- 2. Kwanghyun Park (Microsoft)
BibTeX Citation
@article{ramachandra_vldb19,
title = {{BlackMagic: Automatic Inlining of Scalar UDFs into SQL Queries with Froid}},
author = {Ramachandra, Karthik and Park, Kwanghyun},
journal = {PVLDB},
series = {{VLDB} '19},
volume = {12},
number = {12},
pages = {1810--1813},
doi = {10.14778/3352063.3352072},
url = {https://doi.org/10.14778/3352063.3352072},
year = {2019}
}
Incoming Citations (Sorted by Pagerank)
Showing 9 of 9 citing papers.
| Rank | Citing Paper | Year | Venue | Pagerank |
|---|---|---|---|---|
| 3,257 | One WITH RECURSIVE is Worth Many GOTOs | 2021 | SIGMOD | 7.590651e-05 |
| 5,567 | iTurboGraph: Scaling and Automating Incremental Graph Analytics | 2021 | SIGMOD | 6.1709411e-05 |
| 6,328 | Functional-Style SQL UDFs With a Capital 'F' | 2020 | SIGMOD | 5.9113895e-05 |
| 8,211 | MONSOON: Multi-Step Optimization and Execution of Queries with Partially Obscured Predicates | 2020 | SIGMOD | 5.4658735e-05 |
| 9,315 | ProcAnalyzer: Effective Code Analyzer for Tuning Imperative Programs in SAP HANA | 2020 | SIGMOD | 5.289545e-05 |
| 9,456 | QURE: AI-Assisted and Automatically Verified UDF Inlining | 2025 | SIGMOD | 5.2643416e-05 |
| 10,040 | SQL Engines Excel at the Execution of Imperative Programs | 2024 | VLDB | 5.1723558e-05 |
| 10,232 | EncoderForge: Generating Efficient SQL for Encoders in Machine Learning Inference Pipelines | 2026 | SIGMOD | 5.093636e-05 |
| 11,275 | Hardware-Efficient Data Imputation through DBMS Extensibility | 2024 | VLDB | 5.093636e-05 |
Previous
Page 1 / 1
Next
Outgoing Citations (Sorted by Pagerank)
Showing 3 of 3 cited papers.
Citations counted here include only citations to other VLDB/SIGMOD/CIDR/PODS papers in this database.
| Rank | Cited Paper | Year | Venue | Pagerank |
|---|---|---|---|---|
| 543 | Orthogonal Optimization of Subqueries and Aggregation | 2001 | SIGMOD | 0.0001682612 |
| 894 | Froid: Optimization of Imperative Programs in a Relational Database | 2018 | VLDB | 0.00013367658 |
| 1,362 | Execution Strategies for SQL Subqueries | 2007 | SIGMOD | 0.00011032204 |
Previous
Page 1 / 1
Next
Semantically Similar Papers
| # | Overall Rank | Paper | Year | Venue |
|---|---|---|---|---|
| 1 | 4,273 | User-Defined Operators: Efficiently Integrating Custom Algorithms into Modern Databases | 2022 | VLDB |
| 2 | 3,945 | Exploiting Correlations for Expensive Predicate Evaluation | 2015 | SIGMOD |
| 3 | 5,791 | Accelerating Python UDFs in Vectorized Query Execution | 2022 | CIDR |
| 4 | 6,328 | Functional-Style SQL UDFs With a Capital 'F' | 2020 | SIGMOD |
| 5 | 10,740 | UDFBench: A Tool for Benchmarking UDF Queries on SQL Engines | 2025 | SIGMOD |
| 6 | 9,917 | The UDFBench Benchmark for General-purpose UDF Queries | 2025 | VLDB |
| 7 | 6,015 | Dear User-Defined Functions, Inlining isn't working out so great for us. Let's try batching to make our relationship work. Sincerely, SQL | 2024 | CIDR |
| 8 | 8,096 | Efficient Execution of User-Defined Functions in SQL Queries | 2023 | VLDB |
| 9 | 9,415 | The Key to Effective UDF Optimization: Before Inlining, First Perform Outlining | 2025 | VLDB |
| 10 | 894 | Froid: Optimization of Imperative Programs in a Relational Database | 2018 | VLDB |