{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,5]],"date-time":"2026-09-05T01:09:46Z","timestamp":1788570586351,"version":"build-2803163510"},"reference-count":75,"publisher":"Association for Computing Machinery (ACM)","issue":"2","license":[{"start":{"date-parts":[[2023,6,13]],"date-time":"2023-06-13T00:00:00Z","timestamp":1686614400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.acm.org\/publications\/policies\/copyright_policy#Background"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Proc. ACM Manag. Data"],"published-print":{"date-parts":[[2023,6,13]]},"abstract":"<jats:p>Predicate pushdown is a widely adopted query optimization. Existing systems and prior work mostly use pattern-matching rules to decide when a predicate can be pushed through certain operators like join or groupby. However, challenges arise in optimizing for data science pipelines due to the widely used non-relational operators and user-defined functions (UDF) that existing rules would fail to cover. In this paper, we present MagicPush, which decides predicate pushdown using a search-verification approach.MagicPush searches for candidate predicates on pipeline input, which is often not the same as the predicate to be pushed down, and verifies that the pushdown does not change pipeline output with full correctness guarantees. Our evaluation on TPC-H queries and 200 real-world pipelines sampled from GitHub Notebooks shows that MagicPush substantially outperforms a strong baseline that uses a union of rules from prior work - it is able to discover new pushdown opportunities and better optimize 42 real-world pipelines with up to 99% reduction in running time, while discovering all pushdown opportunities found by the existing baseline on remaining cases.<\/jats:p>","DOI":"10.1145\/3589281","type":"journal-article","created":{"date-parts":[[2023,6,20]],"date-time":"2023-06-20T16:26:45Z","timestamp":1687278405000},"page":"1-28","source":"Crossref","is-referenced-by-count":17,"title":["Predicate Pushdown for Data Science Pipelines"],"prefix":"10.1145","volume":"1","author":[{"ORCID":"https:\/\/orcid.org\/0009-0001-3596-4083","authenticated-orcid":false,"given":"Cong","family":"Yan","sequence":"first","affiliation":[{"name":"Microsoft Research, Redmond, WA, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-6609-5706","authenticated-orcid":false,"given":"Yin","family":"Lin","sequence":"additional","affiliation":[{"name":"Microsoft Research, Ann Arbor, MI, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-2824-5299","authenticated-orcid":false,"given":"Yeye","family":"He","sequence":"additional","affiliation":[{"name":"Microsoft Research, Redmond, WA, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2023,6,20]]},"reference":[{"key":"e_1_2_2_1_1","unstructured":"[n. d.]. The Coq Proof Assistant. https:\/\/coq.inria.fr\/."},{"key":"e_1_2_2_2_1","unstructured":"[n. d.]. Dask: a flexible library for parallel computing in Python. https:\/\/docs.dask.org\/en\/stable\/."},{"key":"e_1_2_2_3_1","unstructured":"[n. d.]. Ibis: expressive analytics in Python at any scale. https:\/\/ibis-project.org\/docs\/3.2.0\/."},{"key":"e_1_2_2_4_1","unstructured":"[n. d.]. Koalas: pandas api on apache spark. https:\/\/koalas.readthedocs.io\/en\/latest\/."},{"key":"e_1_2_2_5_1","unstructured":"[n. d.]. Pandas apply API. https:\/\/pandas.pydata.org\/docs\/reference\/api\/pandas.DataFrame.apply.html."},{"key":"e_1_2_2_6_1","unstructured":"[n. d.]. Pandas apply API with lambda function as parameter. https:\/\/pandas.pydata.org\/docs\/reference\/api\/pandas.DataFrame.apply.html."},{"key":"e_1_2_2_7_1","unstructured":"[n. d.]. Pandas: data analysis and manipulation library in Python. https:\/\/pandas.pydata.org\/."},{"key":"e_1_2_2_8_1","unstructured":"[n. d.]. Pandas explode API convert one row to multiple rows. https:\/\/pandas.pydata.org\/pandas-docs\/stable\/reference\/api\/pandas.DataFrame.explode.html."},{"key":"e_1_2_2_9_1","unstructured":"[n. d.]. Pandas get_dummies API convert a column to one-hot encoding. https:\/\/pandas.pydata.org\/docs\/reference\/api\/pandas.get_dummies.html."},{"key":"e_1_2_2_10_1","unstructured":"[n. d.]. Pivot and Unpivot operator. https:\/\/learn.microsoft.com\/en-us\/sql\/t-sql\/queries\/from-using-pivot-and-unpivot?view=sql-server-ver16."},{"key":"e_1_2_2_11_1","unstructured":"[n. d.]. PostgreSQL query optimizer. https:\/\/www.postgresql.org\/docs\/current\/planner-optimizer.html."},{"key":"e_1_2_2_12_1","unstructured":"[n. d.]. Power Query data flow. https:\/\/learn.microsoft.com\/en-us\/connectors\/dataflows\/."},{"key":"e_1_2_2_13_1","unstructured":"[n. d.]. Proof for pushdown correctness and SMP of pre-condition in Coq. https:\/\/github.com\/predicate-udf\/pushdown-smp-proof."},{"key":"e_1_2_2_14_1","unstructured":"[n. d.]. Python built-in functions. https:\/\/docs.python.org\/3\/library\/functions.html."},{"key":"e_1_2_2_15_1","unstructured":"[n. d.]. Python core statements. https:\/\/docs.python.org\/3\/reference\/grammar.html."},{"key":"e_1_2_2_16_1","unstructured":"[n. d.]. Tableu: build and organize your flow. https:\/\/help.tableau.com\/current\/prep\/en-us\/prep_build_flow.htm."},{"key":"e_1_2_2_17_1","unstructured":"[n. d.]. TPC-H benchmark. https:\/\/www.tpc.org\/tpch\/."},{"key":"e_1_2_2_18_1","unstructured":"[n. d.]. Trifacta data pipeline. https:\/\/www.trifacta.com\/blog\/orchestrate-data-pipelines-on-trifacta-using-plans\/."},{"key":"e_1_2_2_19_1","unstructured":"[n. d.]. Uninterpreted functions in Z3. https:\/\/microsoft.github.io\/z3guide\/docs\/logic\/Uninterpreted-functions-and-constants\/."},{"key":"e_1_2_2_20_1","unstructured":"[n. d.]. The Z3 theorem prover. https:\/\/github.com\/Z3Prover\/z3."},{"key":"e_1_2_2_21_1","doi-asserted-by":"publisher","DOI":"10.5555\/2228298.2228327"},{"key":"e_1_2_2_22_1","doi-asserted-by":"publisher","DOI":"10.1145\/3183713.3196891"},{"key":"e_1_2_2_23_1","volume-title":"Proceedings of the 32nd International Conference on Very Large Data Bases (VLDB). 1026--1036","author":"Ahmed Rafi","year":"2006","unstructured":"Rafi Ahmed, Allison Lee, Andrew Witkowski, Dinesh Das, Hong Su, Mohamed Zait, and Thierry Cruanes. 2006. Cost-Based Query Transformation in Oracle. In Proceedings of the 32nd International Conference on Very Large Data Bases (VLDB). 1026--1036. https:\/\/dl.acm.org\/doi\/10.5555\/1182635.1164215"},{"key":"e_1_2_2_24_1","doi-asserted-by":"publisher","DOI":"10.1145\/2723372.2742797"},{"key":"e_1_2_2_25_1","doi-asserted-by":"publisher","DOI":"10.1145\/153850.153856"},{"key":"e_1_2_2_26_1","doi-asserted-by":"publisher","DOI":"10.1145\/2491956.2462180"},{"key":"e_1_2_2_27_1","volume-title":"Demonstration of the Cosette Automated SQL Prover. In 8th Biennial Conference on Innovative Data Systems Research (CIDR).","author":"Chu Shumo","year":"2017","unstructured":"Shumo Chu, Chenglong, Konstantin Weitz, and Alvin Cheung. 2017. Demonstration of the Cosette Automated SQL Prover. In 8th Biennial Conference on Innovative Data Systems Research (CIDR)."},{"key":"e_1_2_2_28_1","doi-asserted-by":"publisher","DOI":"10.1145\/3062341.3062348"},{"key":"e_1_2_2_29_1","doi-asserted-by":"publisher","DOI":"10.1007\/s00778-008-0122-1"},{"key":"e_1_2_2_30_1","doi-asserted-by":"publisher","DOI":"10.1145\/1219092.1219093"},{"key":"e_1_2_2_31_1","first-page":"998","article-title":"PIVOT and UNPIVOT: Optimization and Execution Strategies in an RDBMS","volume":"30","author":"Cunningham Conor","year":"2004","unstructured":"Conor Cunningham, C\u00e9sar Galindo-Legaria, and Goetz Graefe. 2004. PIVOT and UNPIVOT: Optimization and Execution Strategies in an RDBMS. Proc. VLDB Endow. 30 (2004), 998--1009. https:\/\/dl.acm.org\/doi\/abs\/10.5555\/1316689.1316775","journal-title":"Proc. VLDB Endow."},{"key":"e_1_2_2_32_1","doi-asserted-by":"publisher","DOI":"10.14778\/3389133.3389138"},{"key":"e_1_2_2_33_1","doi-asserted-by":"publisher","DOI":"10.14778\/3476249.3476292"},{"key":"e_1_2_2_34_1","volume-title":"PolyBase Revealed","author":"Feasel Kevin","unstructured":"Kevin Feasel. 2020. Using Predicate Pushdown to Enhance Query Performance. In PolyBase Revealed. Springer, 95--125. https:\/\/link.springer.com\/chapter\/10.1007\/978--1--4842--5461--5_4"},{"key":"e_1_2_2_35_1","doi-asserted-by":"publisher","DOI":"10.14778\/2732977.2733002"},{"key":"e_1_2_2_36_1","doi-asserted-by":"publisher","DOI":"10.14778\/3547305.3547328"},{"key":"e_1_2_2_37_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-63390-9_15"},{"key":"e_1_2_2_38_1","doi-asserted-by":"publisher","DOI":"10.5555\/2387880.2387893"},{"key":"e_1_2_2_39_1","doi-asserted-by":"publisher","DOI":"10.1145\/3318464.3389736"},{"key":"e_1_2_2_40_1","first-page":"2","article-title":"Predicate Migration","volume":"22","author":"Hellerstein Joseph M.","year":"1993","unstructured":"Joseph M. Hellerstein and Michael Stonebraker. 1993. Predicate Migration: Optimizing Queries with Expensive Predicates. SIGMOD Rec. 22, 2 (jun 1993), 267--276.","journal-title":"Optimizing Queries with Expensive Predicates. SIGMOD Rec."},{"key":"e_1_2_2_41_1","volume-title":"Conference on Innovative Data Systems Research (CIDR","author":"Jindal Alekh","year":"2021","unstructured":"Alekh Jindal, K. Venkatesh Emani, Maureen Daum, Olga Poppe, Brandon Haynes, Anna Pavlenko, Ayushi Gupta, Karthik Ramachandra, Carlo Curino, Andreas C. M\u00fcller, Wentao Wu, and Hiren Patel. 2021. Magpie: Python at Speed and Scale using Cloud Backends. In Conference on Innovative Data Systems Research (CIDR 2021)."},{"key":"e_1_2_2_42_1","doi-asserted-by":"publisher","DOI":"10.14778\/3368289.3368292"},{"key":"e_1_2_2_43_1","doi-asserted-by":"publisher","DOI":"10.14778\/3368289.3368299"},{"key":"e_1_2_2_44_1","doi-asserted-by":"publisher","DOI":"10.5555\/645920.672839"},{"key":"e_1_2_2_45_1","doi-asserted-by":"publisher","DOI":"10.14778\/3115404.3115416"},{"key":"e_1_2_2_46_1","doi-asserted-by":"publisher","DOI":"10.1145\/3180155.3180211"},{"key":"e_1_2_2_47_1","doi-asserted-by":"publisher","DOI":"10.1145\/2980983.2908122"},{"key":"e_1_2_2_48_1","doi-asserted-by":"publisher","DOI":"10.14778\/3503585.3503601"},{"key":"e_1_2_2_49_1","doi-asserted-by":"publisher","DOI":"10.1145\/191839.191860"},{"key":"e_1_2_2_50_1","doi-asserted-by":"crossref","unstructured":"Kai Pan Xintao Wu and Tao Xie. 2013. Automatic Test Generation for Mutation Testing on Database Applications. In ASE. 111--117. https:\/\/dl.acm.org\/doi\/10.5555\/2662413.2662439","DOI":"10.1109\/IWAST.2013.6595801"},{"key":"e_1_2_2_51_1","doi-asserted-by":"publisher","DOI":"10.1145\/2491529"},{"key":"e_1_2_2_52_1","doi-asserted-by":"publisher","DOI":"10.14778\/3407790.3407807"},{"key":"e_1_2_2_53_1","doi-asserted-by":"publisher","DOI":"10.14778\/3494124.3494152"},{"key":"e_1_2_2_54_1","volume-title":"The small model property: How small can it be? Information and computation 178, 1","author":"Pnueli Amir","year":"2002","unstructured":"Amir Pnueli, Yoav Rodeh, Ofer Strichman, and Michael Siegel. 2002. The small model property: How small can it be? Information and computation 178, 1 (2002), 279--293. https:\/\/dl.acm.org\/doi\/abs\/10.1016\/S0890--5401%2802%2993175--5"},{"key":"e_1_2_2_55_1","doi-asserted-by":"publisher","DOI":"10.1145\/3186728.3164140"},{"key":"e_1_2_2_56_1","doi-asserted-by":"publisher","DOI":"10.1145\/3132747.3132773"},{"key":"e_1_2_2_57_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICDE.2013.6544909"},{"key":"e_1_2_2_58_1","doi-asserted-by":"publisher","DOI":"10.1145\/3448016.3457244"},{"key":"e_1_2_2_59_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICSE.2015.231"},{"key":"e_1_2_2_60_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-10373-5_3"},{"key":"e_1_2_2_61_1","doi-asserted-by":"publisher","DOI":"10.5555\/1939141.1939165"},{"key":"e_1_2_2_62_1","doi-asserted-by":"publisher","DOI":"10.1145\/3276527"},{"key":"e_1_2_2_63_1","doi-asserted-by":"publisher","DOI":"10.1145\/3158144"},{"key":"e_1_2_2_64_1","doi-asserted-by":"publisher","DOI":"10.1145\/3514221.3517827"},{"key":"e_1_2_2_65_1","doi-asserted-by":"publisher","DOI":"10.1145\/3514221.3526125"},{"key":"e_1_2_2_66_1","doi-asserted-by":"publisher","DOI":"10.14778\/3342263.3342630"},{"key":"e_1_2_2_67_1","doi-asserted-by":"publisher","DOI":"10.1145\/3318464.3389738"},{"key":"e_1_2_2_68_1","doi-asserted-by":"publisher","DOI":"10.14778\/3476249.3476265"},{"key":"e_1_2_2_69_1","doi-asserted-by":"publisher","DOI":"10.1145\/3318464.3389770"},{"key":"e_1_2_2_70_1","doi-asserted-by":"publisher","DOI":"10.14778\/3352063.3352124"},{"key":"e_1_2_2_71_1","doi-asserted-by":"publisher","DOI":"10.1145\/3485489"},{"key":"e_1_2_2_72_1","doi-asserted-by":"publisher","DOI":"10.5555\/2228298.2228328"},{"key":"e_1_2_2_73_1","doi-asserted-by":"publisher","unstructured":"Qi Zhou Joy Arulraj Shamkant Navathe William Harris and Wu Jinpeng. 2020. A Symbolic Approach to Proving Query Equivalence Under Bag Semantics. (2020). https:\/\/doi.org\/10.48550\/arXiv.2004.00481 arXiv:arXiv:2004.00481","DOI":"10.48550\/arXiv.2004.00481"},{"key":"e_1_2_2_74_1","doi-asserted-by":"publisher","DOI":"10.1145\/3448016.3457262"},{"key":"e_1_2_2_75_1","doi-asserted-by":"publisher","DOI":"10.14778\/3342263.3342267"}],"container-title":["Proceedings of the ACM on Management of Data"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3589281","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3589281","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,17]],"date-time":"2025-06-17T13:48:54Z","timestamp":1750168134000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3589281"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2023,6,13]]},"references-count":75,"journal-issue":{"issue":"2","published-print":{"date-parts":[[2023,6,13]]}},"alternative-id":["10.1145\/3589281"],"URL":"https:\/\/doi.org\/10.1145\/3589281","relation":{},"ISSN":["2836-6573"],"issn-type":[{"value":"2836-6573","type":"electronic"}],"subject":[],"published":{"date-parts":[[2023,6,13]]}}}