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

Comments

Projects
None yet
2 participants
@cpcloud
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 this to the 0.14 milestone Apr 11, 2018

@cpcloud cpcloud self-assigned this Apr 11, 2018

@xmnlab

This comment has been minimized.

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