Hou YunQing created GRIFFIN-370:
-----------------------------------

             Summary: The regular expression of Profiling cannot be submit to 
service correctly through UI
                 Key: GRIFFIN-370
                 URL: https://issues.apache.org/jira/browse/GRIFFIN-370
             Project: Griffin
          Issue Type: Bug
          Components: Frontend Module
    Affects Versions: 0.6.0
         Environment: Ubuntu 18
            Reporter: Hou YunQing
         Attachments: 微信截图_20220119140503.png

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.

 

 



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to