Skip to content

sql windows functions #1754

@ggrothendieck

Description

@ggrothendieck

For purposes of example suppose we have the csv file

Name,Value
A,1
A,10
B,11
C,12

In SQL one can add sequence numbers by group using windowing functions like this:

select *, row_number() over (partition by Name) as seq from dat

but it seems this does not work on polars or if it does it is not supported by qsv. Would like to be be able to do this using SQL. If polars does not support this would it be feasible to add SQLite from qsv or other database that supports this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions