Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-3302

Add support for CLASSIFIER() command in MATCH_RECOGNIZE

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.22.0
    • Component/s: None

      Description

      The CLASSIFIER() command simply returns the defined pattern classifier that was matched for the respective column.

      A very simple test case which could be added to match.iq is

      select *
      from "hr"."emps" match_recognize (
          order by "empid" desc
          measures "commission" as c,
          "empid" as empid,
          CLASSIFIER() as cl
          pattern (s up)
          define up as up."commission" < prev(up."commission"));
      
      C    EMPID CL
      ---- ----- --
      1000   100 S
       500   200 UP
      
      !ok
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                julian.feinauer Julian Feinauer
                Reporter:
                julian.feinauer Julian Feinauer
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 3.5h
                  3.5h