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

Add support for CLASSIFIER() command in MATCH_RECOGNIZE

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.22.0
    • 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

              julian.feinauer Julian Feinauer
              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