Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logic AND is case sensitive. #1351

Closed
1 of 2 tasks
xzdandy opened this issue Nov 11, 2023 · 0 comments · Fixed by #1352
Closed
1 of 2 tasks

Logic AND is case sensitive. #1351

xzdandy opened this issue Nov 11, 2023 · 0 comments · Fixed by #1352
Assignees
Labels
Bug 🐞 EVA is not working as expected
Milestone

Comments

@xzdandy
Copy link
Collaborator

xzdandy commented Nov 11, 2023

Search before asking

  • I have searched the EvaDB issues and found no similar bug report.

Bug

SELECT * FROM postgres_data.home_rentals where neighborhood='downtown' and number_of_rooms=2 crashed with the following error message:

11-11-2023 20:25:59 ERROR [plan_executor:plan_executor.py:execute_plan:0179] local variable 'mask' referenced before assignment
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/evadb/executor/plan_executor.py", line 175, in execute_plan
    yield from output
  File "/usr/local/lib/python3.10/dist-packages/evadb/executor/project_executor.py", line 48, in exec
    for batch in child_executor.exec(**kwargs):
  File "/usr/local/lib/python3.10/dist-packages/evadb/executor/predicate_executor.py", line 37, in exec
    batch = apply_predicate(batch, self.predicate)
  File "/usr/local/lib/python3.10/dist-packages/evadb/executor/executor_utils.py", line 77, in apply_predicate
    outcomes = predicate.evaluate(batch)
  File "/usr/local/lib/python3.10/dist-packages/evadb/expression/logical_expression.py", line 52, in evaluate
    pushdown_batch = batch[mask]
UnboundLocalError: local variable 'mask' referenced before assignment

Meanwhile, SELECT * FROM postgres_data.home_rentals where neighborhood='downtown' AND number_of_rooms=2 works as expected.

Environment

From Slack cummunity: https://evadb.slack.com/archives/C047S6Z0V40/p1699376705485419

Are you willing to submit a PR?

  • Yes I'd like to help by submitting a PR!
@xzdandy xzdandy added the Bug 🐞 EVA is not working as expected label Nov 11, 2023
@xzdandy xzdandy moved this from ToDo to In Progress in EVA Public Roadmap ⚡🚀 Nov 13, 2023
@xzdandy xzdandy self-assigned this Nov 13, 2023
@xzdandy xzdandy linked a pull request Nov 13, 2023 that will close this issue
@github-project-automation github-project-automation bot moved this from In Progress to Done in EVA Public Roadmap ⚡🚀 Nov 14, 2023
@xzdandy xzdandy added this to the v0.3.9 milestone Nov 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🐞 EVA is not working as expected
Projects
Development

Successfully merging a pull request may close this issue.

1 participant