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

How to go from Unresolved Logical Execution Plan to Resolved Logical Execution Plan

The ULEP basically reflects the structure of an AST. So again, the AST is generated from the user's code implemented either on top of the relational API of DataFrames and Datasets or using SQL, or all three. This AST can be easily transformed into a ULEP. But, of course, a ULEP can't be executed. The first thing that is checked is if the referred relations exist in the catalog. This means all table names and fields expressed in the SQL statement or relational API have to exist. If the table (or relation) exists, the column names are verified. In addition, the column names that are referred to multiple times are given an alias in order to read them only once. This is already a first stage optimization taking place here. Finally, the data types of the columns are determined in order to check if the operations expressed on top of the columns are valid. So for example taking the sum of a string doesn't work and this error is already caught at this stage. The result of this operation is a Resolved Logical Execution Plan (LEP).

主站蜘蛛池模板: 拉萨市| 和平县| 呼玛县| 漾濞| 深圳市| 武鸣县| 海南省| 兰溪市| 东海县| 婺源县| 辽宁省| 青冈县| 泗洪县| 贡嘎县| 绥化市| 邻水| 个旧市| 夏津县| 甘谷县| 松桃| 兴安盟| 泰安市| 咸阳市| 丹寨县| 襄城县| 南投市| 南江县| 北安市| 新郑市| 房产| 隆安县| 井陉县| 仲巴县| 芜湖县| 西峡县| 德化县| 渝中区| 阳原县| 丘北县| 合水县| 中方县|