Closed onderkalaci closed 7 years ago
Also, @mtuncer noted that we should check what happens when WHERE clause entry includes more than one column references.
@onderkalaci -- This issue looks related to #804. @mtuncer / @marcocitus -- would you agree?
The problem is that the logical planner/optimizer plan for relational algebra and random() > 0.5
doesn't have any relations. Ideally, we'd track non-relational filters in a separate select clause list and not use them during logical planning (only refer to them during physical planning). For the examples you've provided however, we may need to take it one step further and evaluate them at a later stage.
@mtuncer / @onderkalaci -- We earlier said that FALSE
clauses are the only non-relational filters. It looks like there are more. What's our current behavior for these clauses? If we're crashing, should we at least error out?
This was fixed by #804
I hit the issue while playing with #741.
The issue is that SelectClauseTableIdList() function assumes that all
WHERE
clause entries should refer to a column. However, that is not always the case.Here are the steps to reprdouce the issue: