Uploaded image for project: 'Griffin'
  1. Griffin
  2. GRIFFIN-370

The regular expression of Profiling cannot be submit to service correctly through UI

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.6.0
    • None
    • Frontend Module
    • Ubuntu 18

    Description

      Dear developers:

      I'm sorry that my English level is not very good, maybe this letter does not conform to English writing habits.  I am writing this message to you because maybe I found a frontend bug of griffin.

      The version of griffin I am using is 0.6.0.Here are the phenomenon.

      When I trying to create new profiling which including a "Regular Expression Detection Count",I typed my regular expression(^(10|[1-9])$) and submit it successful.

      Then I checked the rule just submitted but the regular expression was changed to '^[0-9]

      {4}$',the full expression is as shown bottom,obviously not my wish.
      [
      {
      "id": 560,
      "rule": "count(source.desc) AS `desc_regexcount` WHERE source.desc RLIKE '^[0-9]{4}

      $'",
      "dsl.type": "griffin-dsl",
      "dq.type": "PROFILING",
      "out.dataframe.name": "desc_regexcount"
      },
      {
      "id": 561,
      "rule": "count(source.age) AS `age_nullcount` WHERE source.age IS NULL",
      "dsl.type": "griffin-dsl",
      "dq.type": "PROFILING",
      "out.dataframe.name": "age_nullcount"
      },
      {
      "id": 562,
      "rule": "approx_count_distinct(source.id) AS `id_distcount`",
      "dsl.type": "griffin-dsl",
      "dq.type": "PROFILING"
      }
      ]
       

      I read the code of frontend module and hold the opinion that it is a frontend bug.

      In the file https://github.com/apache/griffin/blob/master/ui/angular/src/app/measure/create-measure/pr/pr.component.ts at line 312,the regulation expression is written to a "constant" not the one I typed.

       

      Thank you for your attention.

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            yoonching Hou YunQing
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

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