Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
In MATCH_RECOGNIZE, validator must ensure that arguments to a user-defined aggregate function (UDAF) come from a single pattern variable.
Query:
SELECT *
FROM Ticker
MATCH_RECOGNIZE (
ORDER BY proctime
MEASURES
udagg(A.price + B.tax) AS taxedPrice
PATTERN (A B)
DEFINE
A AS A.symbol = 'a'
) AS T
should fail with ValidationException, because udagg is applied to different pattern variables.