You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "geoffreyclaude (via GitHub)" <gi...@apache.org> on 2025/09/03 16:22:49 UTC

Re: [PR] Partially implement MATCH_RECOGNIZE for Advanced Pattern Matching [datafusion]

geoffreyclaude commented on code in PR #16685:
URL: https://github.com/apache/datafusion/pull/16685#discussion_r2319487949


##########
datafusion/sql/src/relation/mod.rs:
##########
@@ -281,3 +796,49 @@ fn optimize_subquery_sort(plan: LogicalPlan) -> Result<Transformed<LogicalPlan>>
     });
     new_plan
 }
+
+/// Helper: determine optional filter predicate based on ROWS PER MATCH
+fn rows_filter(rpm: &Option<RowsPerMatch>) -> Option<Expr> {
+    match rpm {
+        // ONE ROW PER MATCH (default): keep last match row only

Review Comment:
   done



-- 
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: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org