xiangfu0 opened a new pull request, #13176:
URL: https://github.com/apache/pinot/pull/13176

   Support `funnelMaxStep` function to calculate max funnel steps for a giving 
sliding window.
   The syntax is: 
   ```
   FunnelMaxStep(timestampExpression, windowSize, ARRAY[stepExpression, ..])
   ```
   - timestampExpression is `TIMESTAMP` or `LONG` type
   - windowSize is `LONG` which indicate the sliding window size based on the 
value from `timestampExpression`
   - ARRAY[stepExpression, ..] is the steps to match.
   
   Sample query:
   ```
   SELECT 
       userId, 
       FunnelMaxStep(
           timestampCol, 
           '1000', 
           ARRAY[ 
               url = '/product/search',
               url = '/cart/add',
               url = '/checkout/start',
               url = '/checkout/confirmation
           ] ) 
   FROM myTable 
   GROUP BY userId 
   ORDER BY userId
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to