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

BUG: Precedence computation of case statements fails #1412

Closed
cpcloud opened this issue Apr 11, 2018 · 1 comment
Closed

BUG: Precedence computation of case statements fails #1412

cpcloud opened this issue Apr 11, 2018 · 1 comment
Assignees
Labels
bug Incorrect behavior inside of ibis expressions Issues or PRs related to the expression API
Milestone

Comments

@cpcloud
Copy link
Member

cpcloud commented Apr 11, 2018

Taken from this comment from @xmnlab: #93 (comment)

t0 = ibis.table(
    [('one', 'string'),
     ('two', 'double'),
     ('three', 'int32')], 'my_data')

expr = (
    t0.three
        .case()
        .when(0, 'low')
        .when(1, 'high')
        .else_('null')
        .end()
        .name('label')
)

print(t0[expr].limit(10).compile())
@cpcloud cpcloud added bug Incorrect behavior inside of ibis expressions Issues or PRs related to the expression API labels Apr 11, 2018
@cpcloud cpcloud added this to the 0.14 milestone Apr 11, 2018
@cpcloud cpcloud self-assigned this Apr 11, 2018
@xmnlab
Copy link
Contributor

xmnlab commented Apr 11, 2018

@cpcloud

i can help with this issue .. I just need some orientations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Incorrect behavior inside of ibis expressions Issues or PRs related to the expression API
Projects
None yet
Development

No branches or pull requests

2 participants