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

Add support for row_number() #4

Open
hongooi73 opened this issue May 23, 2019 · 1 comment
Open

Add support for row_number() #4

hongooi73 opened this issue May 23, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@hongooi73
Copy link
Collaborator

No description provided.

@hongooi73 hongooi73 added the enhancement New feature or request label May 23, 2019
@alexkyllo
Copy link
Member

alexkyllo commented Aug 1, 2019

There's a good workaround for this, you can express it using the Kusto syntax within a mutate expression

mutate(rn = row_number(1, prev(group) != group))

gets translated to

| extend ['rn'] = row_number(1, prev(['group']) != ['group'])

You just have to make sure to do this after an arrange call because row_number in Kusto only works on sorted data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants