ibis icon indicating copy to clipboard operation
ibis copied to clipboard

feat(polars): support lag and lead

Open GLeurquin opened this issue 9 months ago • 3 comments

Description of changes

Add support for polars Lag and Lead operations

GLeurquin avatar Feb 28 '25 09:02 GLeurquin

I don't quite know where to add tests for this, if you guide me I can modify the PR to add them

GLeurquin avatar Feb 28 '25 10:02 GLeurquin

This requires a lot more work. Because of the way Ibis models window functions, a backend that wants to support them must support compiling ops.WindowFunction first, and then implement support for the individual functions.

cpcloud avatar Mar 03 '25 15:03 cpcloud

You are right, I forgot about it. I'm using the following code in my project to implement the window in polars.

GLeurquin avatar Mar 03 '25 16:03 GLeurquin