官术网_书友最值得收藏!

Physical Execution Plan generation and selection

The Resolved and Optimized LEP is used to generate a large set of PEP candidates. PEPs are execution plans that have been completely resolved. This means that a PEP contains detailed instructions to generate the desired result. They are generated by so-called strategies. Strategies are used to optimize selection of join algorithms based on statistics. In addition, rules are executed for example to pipeline multiple operations on an RDD into a single, more complex operation. After a set of PEPs has been generated - they all will return the exact same result - the best one is chosen based on heuristics in order to minimize execution time.

In case the data source supports it, operations are pushed down to the source, namely for filtering (predicate) or selection of attributes (projection). This concept is explained in very detail on Chapter 2, Apache Spark SQL, in the section called Predicate push-down on smart data sources.

The main idea of predicate push-down is that parts of the AST are not executed by Apache Spark but by the data source itself. So for example filtering rows on column names can be done much more efficient by a relational or NoSQL database since it sits closer to the data and therefore can avoid data transfers between the database and Apache Spark. Also, the removal of unnecessary columns is a job done more effectively by the database.

主站蜘蛛池模板: 石河子市| 休宁县| 仁布县| 和林格尔县| 武川县| 屏南县| 黄龙县| 定陶县| 安岳县| 麟游县| 东乌| 龙江县| 绥滨县| 泰宁县| 赤壁市| 衡山县| 莱芜市| 南澳县| 红安县| 滨州市| 海林市| 涿鹿县| 股票| 吉木乃县| 平湖市| 兰坪| 旬阳县| 临汾市| 华阴市| 德化县| 乌什县| 南川市| 曲阳县| 株洲市| 阿克陶县| 祁阳县| 泾源县| 建阳市| 监利县| 宜良县| 安远县|