Characterizing the Effectiveness of Query Optimizer in Spark

Zujie Ren, Na Yun, Weisong Shi, Youhuizi Li, Jian Wan, Lihua Yu, Xinxin Fan · 2018

In the big data community, Spark has been widely used for processing interactive queries. Spark employs a query optimizer, called Catalyst, to provides a set of optimization rules and supports Cost-Based Optimization (CBO). In this paper, we investigated the effectiveness of the optimization rules and cost-based optimization in Catalyst. We conducted comprehensive validation experiments by varying the data volume and cluster scale, and found that the execution time of most TPC-H queries were reduced slightly even when query optimizations are applied. We derived some interesting observations on Catalyst, which can help the community better understand and improve the query optimizer of Spark in future.

Read the paper · More papers on PaperTik