Fix the panic when rollup() meets subplan.
For GPDB, to use the general plan tree walker/mutator, structure plan_tree_base_prefix needs to be prefixed with in the context structure and initialized appropriately. It is needed by function plan_tree_walker to recur into the subplan in case of visiting a SubPlan node. However, context structure SubqueryScanWalkerContext fails to do that. So when we are trying to recurse through a plan tree to find a subquery scan node, if there is a subplan there, we will crash. This patch fixes that. Also it fixes github issue #8342 as well as the panic in github issue #7279.
Showing
想要评论请 注册 或 登录