In this use case, the overall pattern for breaching capacity is A followed by B, or B followed by A when the capacity goes above or below 100 ... for ...
In this use case, the overall pattern for breaching capacity is A followed by B, or B followed by A when the capacity goes above or below 100 ... for ...
I need help with one task I'm trying to finish. I need to join my data into the smallest possible date ranges and retrieve MIN(P_MIN) and SUM(P_MAX) o ...
I'm following the tutorial for match_recognize found here: create or replace temporary table stock_price_history (company text, price_date date, pric ...
Sample query: Considering I have a table and I want to locate consecutive rows which follow the pattern as defined. But for the above example, I am ...
I have this table and I would like to extract, by partition of split, the rows that have a part P1 in their PART column and have a row of PART='P2' in ...
I'm trying to use Snowflake's match_recognize tool to match a particular pattern across rows. The pattern consists of any sequence of a's and b's, pro ...
I have problem with divide dates into correct periods. Here's an example: id count code date_from date_to ...
We are analyzing the streaming twitter data to find users who are posting similar (almost same) tweets over and over. I am using MATCH_RECOGNIZE for t ...
I have tried to resolve this issue : Could not execute SQL statement. Reason: org.apache.flink.table.api.TableException: Match Recognize doesn't supp ...
I have the transaction audit history as following. All audits start with a INIT and may have a REVERSAL and a MODIFICATION. I need to find all the aud ...
I'm trying to find sessions that contain 3 specific events, they need to be ordered, meaning that event_1 happens first, then event_2, then event_3, b ...
I have the following events ordered by the time they happened: How should I write PATTERN part of MATCH_RECOGNIZE to match record if e2 event happe ...
This post is for learning and educational purpose only Structure of table, insert statements and SQL query are updated in below db fiddle link to kee ...
I'm trying to catch events in pattern described below: Start event = SalePackageA event (Customer A purchasing PackageA) 2-nd event = PackageUsa ...
I am using MATCH_RECOGNIZE function in a query with a few CTEs. When I run the query, I got the following error: SQL compilation error: MATCH_RECO ...
When I try to use MATCH_RECOGNIZE in my SQL queries with Python UDFs, I get the error Python Function can not be used in MATCH_RECOGNIZE for now. For ...
To understand a business process with several statuses, I want to get the rows with the following rules based on created_at column: First row of ...
I have data of users performing different tasks. I would like to group this data per userid and task id to get the start and end times per task. When ...
I am working on building a query to track the life cycle of an user through the platform via events. The table EVENTS has 3 columns USER_ID, DATE_TIME ...
I am using flink 1.11 and trying nested query where match_recognize is inside, as shown below : And I am getting an error as : org.apache.calcite.s ...