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

Access Violation with python 3.9 expressions #1575

Closed
nickroci opened this issue Oct 11, 2021 · 2 comments
Closed

Access Violation with python 3.9 expressions #1575

nickroci opened this issue Oct 11, 2021 · 2 comments
Assignees
Labels
bug Concrete, reproducible bugs C++

Comments

@nickroci
Copy link
Contributor

nickroci commented Oct 11, 2021

from perspective import Table

tbl = Table({"a": [1, 2, 3], "b": ["a", "b", "c"]}, index="a")
tbl.view(expressions=['if("b"==1, 1, 2)']) # fine
tbl.view(expressions=['if("b"==\'a\', 1, 2)']) # segfault

I've only tested this in 3.9 and it seems to work fine on the javascript side

@sc1f sc1f self-assigned this Oct 12, 2021
@sc1f sc1f added bug Concrete, reproducible bugs C++ labels Oct 12, 2021
@sc1f
Copy link
Contributor

sc1f commented Oct 12, 2021

Looking at this now - this seems to be a Python-only bug, and the simplest reduction of the problem is 'a' == 'a', which works fine in Javascript but fails in t_tscalar::operator== in Python.

sc1f added a commit that referenced this issue Oct 12, 2021
@texodus
Copy link
Member

texodus commented Oct 24, 2021

Fix will be in 1.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Concrete, reproducible bugs C++
Projects
None yet
Development

No branches or pull requests

3 participants