ibis-bigquery
ibis-bigquery copied to clipboard
BQ: Rewrite lead/lag with negative offsets into lag/lead with positive offsets
expr.column.lag(-1) is invalid
BadRequest: 400 POST https://www.googleapis.com/bigquery/v2/projects/<project>/queries: Argument 2 to LAG must be at least LAG; got 0.
I think we actually want to rewrite lead/lag with negative offsets into lag/lead with positive offsets.
Marking for 0.14