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

Comments

Projects
2 participants
@seibs

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 this to the 0.13 milestone Feb 5, 2018

@cpcloud cpcloud added this to To do in BigQuery via automation Feb 5, 2018

@cpcloud

This comment has been minimized.

Member

cpcloud commented Feb 5, 2018

Thanks, will take a look

@cpcloud cpcloud closed this in 780084d Feb 7, 2018

BigQuery automation moved this from To do to Done Feb 7, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment