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: Unable to add column based on a scalar parameter #1331

Closed
seibs opened this issue Feb 5, 2018 · 1 comment
Closed

BUG: Unable to add column based on a scalar parameter #1331

seibs opened this issue Feb 5, 2018 · 1 comment
Assignees
Labels
bug Incorrect behavior inside of ibis
Milestone

Comments

@seibs
Copy link

seibs commented Feb 5, 2018

If I first cast the parameter to a different type, the expression compiles.

For example, this works

param = ibis.param('timestamp', name='param')
table.mutate(param=param.cast('date')).compile(params={param: '2017-02-01'})

but, this fails

param = ibis.param('timestamp', name='param')
table.mutate(param=param).compile(params={param: '2017-02-01'})
@cpcloud cpcloud self-assigned this Feb 5, 2018
@cpcloud cpcloud added bug Incorrect behavior inside of ibis bigquery labels Feb 5, 2018
@cpcloud cpcloud added this to the 0.13 milestone Feb 5, 2018
@cpcloud
Copy link
Member

cpcloud commented Feb 5, 2018

Thanks, will take a look

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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants