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

Pattern to match with the start of a partition #272

Open
dakotahNorth opened this issue Feb 7, 2023 · 0 comments
Open

Pattern to match with the start of a partition #272

dakotahNorth opened this issue Feb 7, 2023 · 0 comments

Comments

@dakotahNorth
Copy link

dakotahNorth commented Feb 7, 2023

There is no way with match_recognize in Esper to stay match with the start of the partition.

Would be fantastic to have the ability, like the ^ in snowflake, to match with the start of the partition.

The following pattern matches a stock with a price greater than 75.00 at the beginning of the partition:

pattern (^ gt75)
define
    gt75 as price > 75.00

In PATTERN (^ GT75), the first row (not the second row) must have a price greater than 75.00.

Example from
https://docs.snowflake.com/en/user-guide/match-recognize-introduction.html#label-match-recognize-introduction-search-start-or-end-partition

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

No branches or pull requests

2 participants