Project: talenddataquality
Issue TDQ-10032: Drill down not working with custom REGEX
I have created a custom REGEX and added it to a column in a column analysis. When I run the analysis, I get the correct results. However, when I try to drill down (right mouse click) I get a SQL error (see attached screenshot). Here is the SQL that's generated. For some reason, it's adding an extra $' at the end of the REGEX. SELECT * FROM `crm`.`clients` WHERE ( `idState` NOT REGEXP BINARY '^(A[KLRZ]|C[AOT]|D[CE]|FL|GA|HI|I[ADLN]|K[SY]|LA|M[ADEINOST]|N[CDEHJMVY]|O[HKR]|P[AR]|RI|S[CD]|T[NX]|UT|V[AIT]|W[AIVY])$' $' OR `idState` IS NULL ) Here's another custom one that works. No extra $; on this one. SELECT * FROM `crm`.`cust` WHERE ( `Code` NOT REGEXP BINARY '^[A-Za-z]+$' OR `Code` IS NULL ) My REGEX looks correct, so I'm not sure why there is a difference. This is for a POC that I'm having next week. I've attached the custom REGEX. States_check is the one I'm having a problem with.
Story points: 5