-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not create local projection for constant in PlanRemoteProjections
Previously in PlanRemoteProjection, we might create extra assignments for constants. This would cause plan failure in case of dereference. Essentially we might rewrite `DEREFERENCE(expr, 0)` to `DEREFERENCE(expr, expr1)` `expr1 = 0` This was convenient since we didn't need to handle constant differently. However, in RowExpressionInterpreter, it is assumed that the second parameter of DEREFERENCE will be a number, which is no longer true with the change in PlanRemoteProjection. This PR changes the behavior of PlanRemoteProjections to not generate additional projection for constant.
- Loading branch information
Showing
2 changed files
with
41 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters