Opening the Black Boxes in Data Flow Optimization
Authors:
- Fabian HueskeFHFabian Hueske
- Astrid RheinländerARAstrid Rheinländer
- Aljoscha KrettekAKAljoscha Krettek
- Kostas TzoumasKTKostas Tzoumas
Preprint
Abstract
Many systems for big data analytics employ a data flow abstraction to define parallel data processing tasks. In this setting, custom operations expressed as user-defined functions are very common. We address the problem of performing data flow optimization at this level of abstraction, where the semantics of operators are not known. Traditionally, query optimization is applied to queries with known algebraic semantics. In this work, we find that a handful of properties, rather than a full algebraic specification, suffice to establish reordering conditions for data processing operators. We show that these properties can be accurately estimated for black box operators by statically analyzing the general-purpose code of their user-defined functions. We design and implement an optimizer for parallel data flows that does not assume knowledge of semantics or algebraic properties of operators. Our evaluation confirms that the optimizer can apply common rewritings such as selection reordering, bushy join-order enumeration, and limited forms of aggregation push-down, hence yielding similar rewriting power as modern relational DBMS optimizers. Moreover, it can optimize the operator order of non-relational data flows, a unique feature among today's systems.Keywords
All Related Versions
This publication has 10 references indexed in Scilit:
- Profiling, what-if analysis, and cost-based optimization of MapReduce programsProceedings of the VLDB Endowment, 2011
- Tenzing a SQL implementation on the MapReduce frameworkProceedings of the VLDB Endowment, 2011
- Hyracks: A flexible and extensible foundation for data-intensive computing2011
- A new, highly efficient, and easy to implement top-down join enumeration algorithm2011
- Automatic optimization for MapReduce programsProceedings of the VLDB Endowment, 2011
- Next-generation sequencing: adjusting to data overloadNature Methods, 2010
- Dynamic programming strikes back2008
- Designing a multi-petabyte database for LSST2006
- Optimization of queries with user-defined predicatesACM Transactions on Database Systems, 1999
- Optimization techniques for queries with expensive methodsACM Transactions on Database Systems, 1998