我读过这个问题,其中 OP 试图转换这个逻辑计划:
Aggregate [sum(inc(vals#4L)) AS sum(inc(vals))#7L]
+- LocalRelation [vals#4L]
对此:
Aggregate [sum(inc_val#6L) AS sum(inc(vals))#7L]
+- Project [inc(vals#4L) AS inc_val#6L]
+- LocalRelation [vals#4L]
我有一些问题:
- 为什么他想要项目操作员?它有什么好处?
- 据我所知,Project 是表示 SELECT 语句的运算符,那么计划怎么可能不包含 Project 运算符?